summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndrew Gregory2015-06-12 14:40:45 -0400
committerAndrew Gregory2015-06-12 14:40:45 -0400
commit374c1d35fbcb147419de9e38286ef9199914cbcc (patch)
tree1a51072b2d1f5935a0124f5038c6469bbd93a55d /PKGBUILD
downloadaur-374c1d35fbcb147419de9e38286ef9199914cbcc.tar.gz
add openrc v0.16.4
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3d70377e37b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Andrew Gregory <andrew.gregory.8@gmail.com>
+# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+
+pkgname=openrc
+pkgver=0.16.4
+pkgrel=1
+pkgdesc='Dependency based init system that works with sysvinit.'
+arch=('i686' 'x86_64')
+url='http://www.gentoo.org/proj/en/base/openrc/'
+license=('BSD')
+depends=('openrc-sysvinit' 'pam' 'sh')
+optdepends=('openrc-arch-services-git: collection of services for Arch'
+ 'net-tools: for network service support')
+backup=(etc/openrc/inittab
+ etc/openrc/rc.conf
+ etc/openrc/conf.d/{bootmisc,consolefont,devfs,dmesg,fsck,hostname,hwclock,keymaps}
+ etc/openrc/conf.d/{killprocs,localmount,modules,netmount,network,staticroute}
+ etc/openrc/conf.d/{tmpfiles,urandom})
+source=(http://dev.gentoo.org/~williamh/dist/$pkgname-$pkgver.tar.bz2
+ $pkgname.logrotate)
+md5sums=('99ebfca306184cae36b77ceaeaf1fa76'
+ 'ede356beae529d1b16b769c9da70ad52')
+
+_makeargs=(BRANDING='Arch Linux')
+_makeargs+=(MKPAM=pam)
+_makeargs+=(MKSELINUX=no)
+_makeargs+=(MKTERMCAP=ncurses)
+_makeargs+=(PKG_PREFIX="")
+_makeargs+=(LIBDIR=/usr/lib)
+_makeargs+=(LIBMODE=0644) # enable binary stripping by makepkg
+_makeargs+=(SHLIBDIR=/usr/lib)
+_makeargs+=(LIBEXECDIR=/usr/libexec/rc)
+_makeargs+=(BINDIR=/usr/bin)
+_makeargs+=(SBINDIR=/usr/bin)
+_makeargs+=(SYSCONFDIR=/etc/openrc) # avoid conflict with initscripts
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make "${_makeargs[@]}"
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" "${_makeargs[@]}" install
+
+ # default path to inittab conflicts with initscripts
+ #install -m 644 support/sysvinit/inittab "$pkgdir"/etc/inittab
+
+ # avoid initscripts conflict, requires openrc-sysvinit
+ install -m 644 support/sysvinit/inittab "$pkgdir/etc/openrc/inittab"
+
+ # rotate boot log
+ install -Dm0644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
+}