diff options
author | David Phillips <david@sighup.nz> | 2017-09-17 17:45:40 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-09-17 17:45:40 +1200 |
commit | 7d6cdf39b4a02b6ef36d5d3bc7263b5b5112eabe (patch) | |
tree | c33e2f71f142caa2e74879fcfe731c8a5661be9a | |
parent | 3c7ccf8270815b18bd3cd1019ea66aed6babed3d (diff) | |
download | archlinux-openrc-7d6cdf39b4a02b6ef36d5d3bc7263b5b5112eabe.tar.xz |
Add openrc-0.31.1
-rw-r--r-- | openrc/PKGBUILD | 60 | ||||
-rw-r--r-- | openrc/openrc.logrotate | 7 |
2 files changed, 67 insertions, 0 deletions
diff --git a/openrc/PKGBUILD b/openrc/PKGBUILD new file mode 100644 index 0000000..999d540 --- /dev/null +++ b/openrc/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer : David Phillips <david sighup d.t nz> +# Contributor: Andrew Gregory <andrew.gregory.8@gmail.com> +# Contributor: Lone_Wolf <lonewolf at xs4all dot nl> +# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> + +pkgname=openrc +pkgver=0.31.1 +pkgrel=1 +pkgdesc='Dependency-based init system that works with sysvinit.' +arch=('i686' 'x86_64') +url='https://github.com/OpenRC/openrc/' +license=('BSD') +depends=('openrc-sysvinit' 'pam' 'sh') +optdepends=('openrc-arch-services-git: collection of services for Arch' + 'net-tools: for network service support' + 'opentmpfiles: adds support for systemd-style tmpfiles.d') +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} + ) +source=("$pkgname-$pkgver::https://github.com/OpenRC/$pkgname/archive/$pkgver.tar.gz" + "$pkgname.logrotate") +sha512sums=('98001e05896d113e20fad27ba100e2db5588262cb9c0b52c2800b38fd320b9baf4a99302044ef4045ba3a746d685d0cc27f8fdb42dccbc0574e32c6db9e6d3d2' + '690612fddfb2c4cf8f6b5ba7239b9faf29eb3d9b152ab4dcf62694aa2852780440d08cee56d98a9597607f446b3697c911269562821a8402bb5747cbbae34bd9') + + +# LIBMODE to enable binary stripping by makepkg +MAKEFLAGS="BRANDING='Arch Linux'\ + MKPAM=pam \ + MKSELINUX=no \ + MKTERMCAP=ncurses \ + PKG_PREFIX="" \ + LIBDIR=/usr/lib \ + LIBMODE=0644 \ + SHLIBDIR=/usr/lib \ + LIBEXECDIR=/usr/lib/openrc \ + BINDIR=/usr/bin \ + SBINDIR=/usr/bin \ + SYSCONFDIR=/etc/openrc" + +build() { + cd "${pkgname}-${pkgver}" + make +} + +package() { + + cd "${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + # 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}" + + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${srcdir}/${pkgname}-${pkgver}/AUTHORS" "${pkgdir}/usr/share/licenses/${pkgname}/" +} diff --git a/openrc/openrc.logrotate b/openrc/openrc.logrotate new file mode 100644 index 0000000..a168f23 --- /dev/null +++ b/openrc/openrc.logrotate @@ -0,0 +1,7 @@ +/var/log/rc.log { + compress + rotate 4 + weekly + missingok + notifempty +} |