From ecf3a885a8da36e3d64c4f148ff03b4ebad3a75c Mon Sep 17 00:00:00 2001 From: megadrivers Date: Sat, 8 Aug 2015 20:08:31 +0200 Subject: [PATCH] Initial import --- .SRCINFO | 13 +++++++++++++ PKGBUILD | 19 +++++++++++++++++++ rc-local.service | 11 +++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 rc-local.service diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..7bca865 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = rc-local + pkgdesc = Support for legacy rc.local scripts + pkgver = 1 + pkgrel = 1 + url = https://aur.archlinux.org/packages/rc-local/ + arch = any + license = BSD + depends = bash + source = rc-local.service + md5sums = bb2cfecf3c6d99c6e6ee9eb58bcde75d + +pkgname = rc-local + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..46e01d2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,19 @@ +# Maintainer: megadriver +# Contributor: $pooky Hunter + +pkgname=rc-local +pkgver=1 +pkgrel=1 +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') + +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 +} diff --git a/rc-local.service b/rc-local.service new file mode 100644 index 0000000..c56106f --- /dev/null +++ b/rc-local.service @@ -0,0 +1,11 @@ +[Unit] +Description=/etc/rc.local compatibility +After=network.target + +[Service] +Type=oneshot +ExecStart=/etc/rc.local +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target