2009-05-02 21:03:32 +00:00
|
|
|
# Template file for 'OpenRC'
|
|
|
|
pkgname=OpenRC
|
2009-06-20 06:18:13 +00:00
|
|
|
version=0.5.0
|
2009-10-05 16:20:40 +00:00
|
|
|
revision=3
|
2009-06-20 06:18:13 +00:00
|
|
|
wrksrc=openrc-${version}
|
2009-05-07 16:09:01 +00:00
|
|
|
patch_files="xbps-locale-service.diff"
|
2009-06-20 06:18:13 +00:00
|
|
|
distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2"
|
2009-05-02 21:03:32 +00:00
|
|
|
build_style=gnu_makefile
|
|
|
|
short_desc="Universal init system"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2009-06-20 06:18:13 +00:00
|
|
|
checksum=168a19c38572e8f822137676eeae6233b507c8b8efcf19421cdc8675fc22e4c1
|
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."
|
|
|
|
|
|
|
|
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/local /etc/conf.d/localmount
|
2009-05-04 23:09:01 +00:00
|
|
|
/etc/conf.d/modules /etc/conf.d/network /etc/conf.d/urandom
|
|
|
|
/etc/inittab"
|
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
|
2009-05-02 21:34:49 +00:00
|
|
|
|
|
|
|
pre_configure()
|
|
|
|
{
|
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
|
2009-05-02 21:34:49 +00:00
|
|
|
}
|
2009-05-04 23:09:01 +00:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
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-05-04 23:09:01 +00:00
|
|
|
}
|