Version 1.1

This commit is contained in:
Manuel Hüsers 2015-09-21 15:00:04 +02:00
parent ecf3a885a8
commit 82c4480c47
5 changed files with 69 additions and 21 deletions

View file

@ -1,13 +1,17 @@
pkgbase = rc-local
pkgdesc = Support for legacy rc.local scripts
pkgver = 1
pkgver = 1.1
pkgrel = 1
url = https://aur.archlinux.org/packages/rc-local/
url = https://aur.archlinux.org/packages/rc-local
install = rc-local.install
arch = any
license = BSD
depends = bash
license = LGPL2.1
depends = systemd
backup = etc/rc.local
source = rc.local
source = rc-local.service
md5sums = bb2cfecf3c6d99c6e6ee9eb58bcde75d
sha256sums = 8aa661c15cf9a35c32c79055bf69ab2d16354128ddd67a1bce0a7e48fe26f2e3
sha256sums = 7ac3eae0aee580448acbe386a3a2954990510790c42f2b9a0df293078d22dc14
pkgname = rc-local

View file

@ -1,19 +1,23 @@
# Maintainer: megadriver <megadriver at gmx dot com>
# Maintainer: Manuel Hüsers <manuel.huesers@uni-ol.de>
# Contributor: megadriver <megadriver at gmx dot com>
# Contributor: $pooky Hunter <spookyh+arch@gmail.org>
pkgname=rc-local
pkgver=1
pkgver=1.1
pkgrel=1
pkgdesc="Support for legacy rc.local scripts"
url=("https://aur.archlinux.org/packages/rc-local/")
pkgdesc='Support for legacy rc.local scripts'
url=('https://aur.archlinux.org/packages/rc-local')
arch=('any')
license=('BSD')
depends=('bash')
source=(rc-local.service)
md5sums=('bb2cfecf3c6d99c6e6ee9eb58bcde75d')
license=('LGPL2.1')
install="${pkgname}.install"
depends=('systemd')
backup=('etc/rc.local')
source=('rc.local'
'rc-local.service')
sha256sums=('8aa661c15cf9a35c32c79055bf69ab2d16354128ddd67a1bce0a7e48fe26f2e3'
'7ac3eae0aee580448acbe386a3a2954990510790c42f2b9a0df293078d22dc14')
package() {
echo "#!/bin/bash" > rc.local
install -D -m 0755 rc.local $pkgdir/etc/rc.local
install -D -m 0644 rc-local.service $pkgdir/usr/lib/systemd/system/rc-local.service
install -Dm755 'rc.local' "${pkgdir}/etc/rc.local"
install -Dm644 'rc-local.service' "${pkgdir}/usr/lib/systemd/system/rc-local.service"
}

16
rc-local.install Normal file
View file

@ -0,0 +1,16 @@
_update() {
systemctl daemon-reload
}
post_install() {
_update
systemctl enable rc-local.service
}
post_upgrade() {
_update
}
post_remove() {
_update
}

View file

@ -1,11 +1,21 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=/etc/rc.local compatibility
After=network.target
Description=/etc/rc.local Compatibility
ConditionFileIsExecutable=/etc/rc.local
[Service]
Type=oneshot
ExecStart=/etc/rc.local
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target

14
rc.local Normal file
View file

@ -0,0 +1,14 @@
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
exit 0