2009-05-02 21:03:32 +00:00
|
|
|
# Template file for 'OpenRC'
|
|
|
|
pkgname=OpenRC
|
2011-02-11 10:51:08 +00:00
|
|
|
version=20110211
|
2011-07-16 23:20:05 +00:00
|
|
|
revision=13
|
2009-06-20 06:18:13 +00:00
|
|
|
wrksrc=openrc-${version}
|
2011-02-11 10:51:08 +00:00
|
|
|
distfiles="http://xbps.nopcode.org/distfiles/openrc-$version.tar.bz2"
|
2011-01-16 11:54:35 +00:00
|
|
|
build_style=custom-install
|
2009-05-02 21:03:32 +00:00
|
|
|
short_desc="Universal init system"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-29 14:17:32 +00:00
|
|
|
homepage="http://roy.marples.name/projects/openrc"
|
|
|
|
license="BSD"
|
2011-02-11 10:51:08 +00:00
|
|
|
checksum=16840a9635648e501e2f94464f6cf1c26b6bbdbbc7e3d9a1f8466117271885e1
|
2009-05-02 21:03:32 +00:00
|
|
|
long_desc="
|
|
|
|
OpenRC is a dependency based init system that works with the system
|
|
|
|
provided init program, normally /sbin/init. It is not a replacement for
|
|
|
|
/sbin/init. OpenRC is 100% compatible with Gentoo init scripts, which
|
|
|
|
means you can probably find one for the daemons you want to start in the
|
|
|
|
Gentoo Portage Tree. OpenRC also provides an init script that runs BSD
|
|
|
|
rc.d style scripts too, making it easy to port your BSD system to OpenRC."
|
|
|
|
|
2009-10-17 01:12:48 +00:00
|
|
|
keep_empty_dirs=yes
|
2011-02-11 10:58:42 +00:00
|
|
|
conf_files="
|
|
|
|
/etc/rc.conf
|
|
|
|
/etc/conf.d/bootmisc
|
|
|
|
/etc/conf.d/consolefont
|
|
|
|
/etc/conf.d/dmesg
|
|
|
|
/etc/conf.d/fsck
|
|
|
|
/etc/conf.d/hostname
|
|
|
|
/etc/conf.d/hwclock
|
|
|
|
/etc/conf.d/keymaps
|
|
|
|
/etc/conf.d/locale
|
|
|
|
/etc/conf.d/network
|
|
|
|
/etc/conf.d/localmount
|
|
|
|
/etc/conf.d/modules
|
|
|
|
/etc/conf.d/staticroute
|
|
|
|
/etc/conf.d/urandom
|
|
|
|
/etc/inittab"
|
|
|
|
|
2009-12-05 02:37:44 +00:00
|
|
|
subpackages="$pkgname-devel"
|
2009-05-02 21:03:32 +00:00
|
|
|
|
|
|
|
Add_dependency full glibc
|
|
|
|
Add_dependency full psmisc
|
2009-05-04 23:09:01 +00:00
|
|
|
Add_dependency full sysvinit
|
2010-04-22 10:53:52 +00:00
|
|
|
Add_dependency build diffutils
|
2009-05-02 21:34:49 +00:00
|
|
|
|
2011-05-20 12:26:10 +00:00
|
|
|
_version="0.7.0-${version} #${revision}"
|
2011-07-16 23:20:05 +00:00
|
|
|
_branding="Void GNU/Linux"
|
2011-01-16 16:20:05 +00:00
|
|
|
|
2011-01-16 11:54:35 +00:00
|
|
|
do_build()
|
2009-05-02 21:34:49 +00:00
|
|
|
{
|
2009-05-07 16:09:01 +00:00
|
|
|
# Install the "locale" service
|
|
|
|
cp ${FILESDIR}/locale.rc ${wrksrc}/init.d/locale.in
|
|
|
|
|
2009-05-02 21:46:06 +00:00
|
|
|
# Fix path for kbd stuff.
|
|
|
|
for f in init.d/consolefont.in conf.d/consolefont; do
|
2009-10-05 16:20:40 +00:00
|
|
|
sed -i -e "s|/usr/share|/lib/kbd|g" ${wrksrc}/${f}
|
2009-05-02 21:46:06 +00:00
|
|
|
done
|
2011-01-16 11:54:35 +00:00
|
|
|
|
2011-05-20 12:26:10 +00:00
|
|
|
make ${makejobs} VERSION="${_version}" BRANDING="${_branding}"
|
2009-05-02 21:34:49 +00:00
|
|
|
}
|
2009-05-04 23:09:01 +00:00
|
|
|
|
2011-01-16 11:54:35 +00:00
|
|
|
do_install()
|
2009-05-04 23:09:01 +00:00
|
|
|
{
|
2011-05-20 12:26:10 +00:00
|
|
|
make DESTDIR=${DESTDIR} VERSION="${_version}" \
|
|
|
|
BRANDING="${_branding}" install
|
2011-01-16 11:54:35 +00:00
|
|
|
|
2009-05-07 12:08:56 +00:00
|
|
|
install -D -m755 ${wrksrc}/support/sysvinit/inittab \
|
|
|
|
${DESTDIR}/etc/inittab
|
2009-10-05 16:20:40 +00:00
|
|
|
install -D -m644 ${FILESDIR}/$pkgname.logrotate \
|
|
|
|
${DESTDIR}/etc/logrotate.d/OpenRC
|
2009-10-10 06:39:39 +00:00
|
|
|
install -D -m644 ${FILESDIR}/locale.confd \
|
|
|
|
${DESTDIR}/etc/conf.d/locale
|
2009-11-27 02:35:43 +00:00
|
|
|
#
|
|
|
|
# Create a fake rc.d directory with links to mimic old sysvinit
|
|
|
|
# runlevel stuff.
|
|
|
|
install -d ${DESTDIR}/etc/init.d/fake-rc.d
|
|
|
|
for f in 0 1 2 3 4 5 6; do
|
|
|
|
cd ${DESTDIR}/etc/init.d && ln -s fake-rc.d rc${f}.d
|
|
|
|
done
|
2010-04-22 10:53:52 +00:00
|
|
|
|
|
|
|
chmod 755 ${DESTDIR}/lib/lib*
|
|
|
|
chmod 755 ${DESTDIR}/usr/lib/lib*
|
2011-05-04 11:11:19 +00:00
|
|
|
rmdir ${DESTDIR}/lib/rc/init.d
|
2009-05-04 23:09:01 +00:00
|
|
|
}
|