vp-build/templates/OpenRC/template
Juan RP 6af47b83fb OpenRC: merge some local changes.
* Move all patches to xbps-changes.diff.
* Provide /etc/conf.d/locale and set "en_US" by default.
* Move rc.conf to /etc/default/rc.conf. Set unicode, rc_shell
  and rc_logger by default.
* Explain in keymaps that keyboard layout must also be specified,
  like "qwerty/es"; otherwise lodkeys will fail to use the correct
  keymap if there exists duplicate keymaps with the same name.

Bump revision.

--HG--
extra : convert_revision : 0b99d27c67cb0d7d055e769bb9a0c6b640adfe87
2009-10-10 08:39:39 +02:00

53 lines
1.8 KiB
Plaintext

# Template file for 'OpenRC'
pkgname=OpenRC
version=0.5.0
revision=4
wrksrc=openrc-${version}
patch_files="xbps-changes.diff"
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=168a19c38572e8f822137676eeae6233b507c8b8efcf19421cdc8675fc22e4c1
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/locale
/etc/conf.d/localmount /etc/conf.d/modules /etc/conf.d/network
/etc/conf.d/urandom /etc/inittab"
Add_dependency full glibc
Add_dependency full psmisc
Add_dependency full sysvinit
pre_configure()
{
# 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
}