diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/openrc/PKGBUILD | 71 |
1 files changed, 32 insertions, 39 deletions
diff --git a/pcr/openrc/PKGBUILD b/pcr/openrc/PKGBUILD index 15a101e25..f7b7cb078 100644 --- a/pcr/openrc/PKGBUILD +++ b/pcr/openrc/PKGBUILD @@ -5,81 +5,74 @@ _url="https://github.com/OpenRC/openrc/archive" pkgname=openrc -pkgver=0.27.2 +pkgver=0.28 pkgrel=1.parabola1 pkgdesc="Gentoo's universal init system" arch=('i686' 'x86_64' 'armv7h') url="http://www.gentoo.org/proj/en/base/openrc/" license=('BSD2') -depends=('psmisc' 'sysvinit' 'pam') +depends=('psmisc' 'pam') optdepends=('netifrc: Network Interface Management Scripts' - 'networkmanager-openrc: NetworkManager' - 'connman-openrc: connman') -conflicts=('systemd-sysvcompat' 'openrc-core' 'openrc-sysvinit') -replaces=('openrc-core' 'openrc-sysvinit') + 'networkmanager-openrc: NetworkManager') +conflicts=('systemd-sysvcompat' 'sysvinit') +replaces=('sysvinit') install=${pkgname}.install backup=('etc/rc.conf' 'etc/conf.d/consolefont' 'etc/conf.d/keymaps' 'etc/conf.d/hostname' 'etc/conf.d/modules' - 'etc/conf.d/hwclock' - 'etc/inittab') -#options=('emptydirs') + 'etc/conf.d/hwclock') +options=('!emptydirs') source=("${pkgname}-${pkgver}.tar.gz::${_url}/${pkgver}.tar.gz" - "${pkgname}.logrotate" - 'openrc-install.hook' - 'openrc-remove.hook') -sha256sums=('4e9c12c77c101b6ea255f1a9291c4c4d228c7ddc8b8ef4aa8d5d6f6900958ea5' + "${pkgname}.logrotate" + 'openrc-install.hook' + 'openrc-remove.hook') +sha256sums=('9548b03ffc164f75887d810469f0535a16c5c8c2e615e250d5753a16e66cf317' '0b44210db9770588bd491cd6c0ac9412d99124c6be4c9d3f7d31ec8746072f5c' '1d4d31a7275660e7b23778e6fceb0714cab8ed2793b04aa004b01d8e7bcd43bd' 'cbb4d00262a55a508114cb31e3903350be2cff748a4fb5e120dc745292e3987e') _args=(SYSCONFDIR=/etc) -# _args+=(PREFIX=/usr) -# _args+=(SBINDIR=/usr/bin) +_args+=(PREFIX=/usr) +_args+=(SBINDIR=/usr/bin) _args+=(LIBEXECDIR=/usr/lib/rc) _args+=(MKSELINUX=no) _args+=(MKPAM=pam) _args+=(MKTERMCAP=ncurses) _args+=(MKNET=no) +_args+=(MKSYSVINIT=yes) _args+=(BRANDING='Parabola') prepare(){ - cd "${srcdir}/${pkgname}-${pkgver}" - sed -e "s|/sbin|/usr/bin|g" -i support/sysvinit/inittab - sed -i 's:0444:0644:' mk/sys.mk + cd "${srcdir}/${pkgname}-${pkgver}" + sed -e "s|/sbin|/usr/bin|g" -i support/sysvinit/inittab + sed -i 's:0444:0644:' mk/sys.mk } build(){ - cd "${srcdir}/${pkgname}-${pkgver}" - make "${_args[@]}" + cd "${srcdir}/${pkgname}-${pkgver}" + make "${_args[@]}" } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${pkgname}-${pkgver}" - mkdir -pv "${pkgdir}"/usr/{bin,lib} - ln -sv usr/bin "${pkgdir}/bin" - ln -sv usr/bin "${pkgdir}/sbin" - ln -sv usr/lib "${pkgdir}/lib" + make DESTDIR="${pkgdir}" "${_args[@]}" install - make DESTDIR="${pkgdir}" "${_args[@]}" install + install -Dm644 "${srcdir}/${pkgname}.logrotate" "${pkgdir}/etc/logrotate.d/${pkgname}" - install -m644 "${srcdir}/${pkgname}-${pkgver}/support/sysvinit/inittab" "${pkgdir}/etc/inittab" - install -Dm644 "${srcdir}/${pkgname}.logrotate" "${pkgdir}/etc/logrotate.d/${pkgname}" + sed -e 's/#unicode="NO"/unicode="YES"/' \ + -e 's/#rc_logger="NO"/rc_logger="YES"/' \ + -i "${pkgdir}/etc/rc.conf" - sed -e 's/#unicode="NO"/unicode="YES"/' \ - -e 's/#rc_logger="YES"/rc_logger="YES"/' \ - -i "${pkgdir}/etc/rc.conf" + install -d ${pkgdir}/usr/lib/rc/cache - install -d ${pkgdir}/usr/lib/rc/cache + # alpm hooks + for h in openrc-{install,remove}.hook;do + install -Dm644 ${srcdir}/$h ${pkgdir}/usr/share/libalpm/hooks/$h + done - install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" - - for f in openrc-{install,remove}.hook;do - install -Dm644 ${srcdir}/$f ${pkgdir}/usr/share/libalpm/hooks/$f - done - - rm "${pkgdir}"/{bin,sbin,lib} + # license + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" } |