void-packages/srcpkgs/OpenRC/template
Juan RP 85cc462e1d Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
2009-11-22 08:31:44 +01:00

52 lines
1.8 KiB
Text

# Template file for 'OpenRC'
pkgname=OpenRC
version=0.5.2
revision=1
wrksrc=openrc-${version}
distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2"
build_style=gnu_makefile
short_desc="Universal init system"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=0633f5cc8c0f055a292722b36108cebbe1925f164df8c0d2688dd376e6f0e18c
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."
keep_empty_dirs=yes
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/locale
/etc/conf.d/localmount /etc/conf.d/modules /etc/conf.d/network
/etc/conf.d/urandom /etc/conf.d/staticroute /etc/inittab"
Add_dependency full glibc
Add_dependency full psmisc
Add_dependency full sysvinit
pre_build()
{
# Install the "locale" service
cp ${FILESDIR}/locale.rc ${wrksrc}/init.d/locale.in
# Fix path for kbd stuff.
for f in init.d/consolefont.in conf.d/consolefont; do
sed -i -e "s|/usr/share|/lib/kbd|g" ${wrksrc}/${f}
done
}
post_install()
{
install -D -m755 ${wrksrc}/support/sysvinit/inittab \
${DESTDIR}/etc/inittab
install -D -m644 ${FILESDIR}/$pkgname.logrotate \
${DESTDIR}/etc/logrotate.d/OpenRC
install -D -m644 ${FILESDIR}/locale.confd \
${DESTDIR}/etc/conf.d/locale
install -d ${DESTDIR}/etc/default
mv ${DESTDIR}/etc/rc.conf ${DESTDIR}/etc/default
install -m 644 ${FILESDIR}/rc.conf ${DESTDIR}/etc
}