2009-05-02 23:03:32 +02:00
|
|
|
# Template file for 'OpenRC'
|
|
|
|
pkgname=OpenRC
|
2010-01-09 13:13:28 +01:00
|
|
|
version=0.6.0
|
2009-06-20 08:18:13 +02:00
|
|
|
wrksrc=openrc-${version}
|
|
|
|
distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2"
|
2009-05-02 23:03:32 +02:00
|
|
|
build_style=gnu_makefile
|
|
|
|
short_desc="Universal init system"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-01-09 13:13:28 +01:00
|
|
|
checksum=1b302ef12b1c144ae4260d442bd9fa5dd6176c9601d9c1f609ef49f14a1b0728
|
2009-05-02 23:03:32 +02: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 03:12:48 +02:00
|
|
|
keep_empty_dirs=yes
|
2009-05-02 23:03:32 +02: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
|
2009-10-10 08:39:39 +02:00
|
|
|
/etc/conf.d/keymaps /etc/conf.d/local /etc/conf.d/locale
|
|
|
|
/etc/conf.d/localmount /etc/conf.d/modules /etc/conf.d/network
|
2009-10-21 14:08:44 +02:00
|
|
|
/etc/conf.d/urandom /etc/conf.d/staticroute /etc/inittab"
|
2009-12-05 03:37:44 +01:00
|
|
|
subpackages="$pkgname-devel"
|
2009-05-02 23:03:32 +02:00
|
|
|
|
|
|
|
Add_dependency full glibc
|
|
|
|
Add_dependency full psmisc
|
2009-05-05 01:09:01 +02:00
|
|
|
Add_dependency full sysvinit
|
2009-05-02 23:34:49 +02:00
|
|
|
|
2009-10-21 11:26:13 +02:00
|
|
|
pre_build()
|
2009-05-02 23:34:49 +02:00
|
|
|
{
|
2009-05-07 18:09:01 +02:00
|
|
|
# Install the "locale" service
|
|
|
|
cp ${FILESDIR}/locale.rc ${wrksrc}/init.d/locale.in
|
|
|
|
|
2009-05-02 23:46:06 +02:00
|
|
|
# Fix path for kbd stuff.
|
|
|
|
for f in init.d/consolefont.in conf.d/consolefont; do
|
2009-10-05 18:20:40 +02:00
|
|
|
sed -i -e "s|/usr/share|/lib/kbd|g" ${wrksrc}/${f}
|
2009-05-02 23:46:06 +02:00
|
|
|
done
|
2009-05-02 23:34:49 +02:00
|
|
|
}
|
2009-05-05 01:09:01 +02:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2009-05-07 14:08:56 +02:00
|
|
|
install -D -m755 ${wrksrc}/support/sysvinit/inittab \
|
|
|
|
${DESTDIR}/etc/inittab
|
2009-10-05 18:20:40 +02:00
|
|
|
install -D -m644 ${FILESDIR}/$pkgname.logrotate \
|
|
|
|
${DESTDIR}/etc/logrotate.d/OpenRC
|
2009-10-10 08:39:39 +02:00
|
|
|
install -D -m644 ${FILESDIR}/locale.confd \
|
|
|
|
${DESTDIR}/etc/conf.d/locale
|
2009-11-27 03:35:43 +01: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
|
2009-05-05 01:09:01 +02:00
|
|
|
}
|