rsyslog: added a virtualpkg.d plist file.

This commit is contained in:
Juan RP 2011-10-20 17:48:23 +02:00
parent 79368469c7
commit 9b6e518d99
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- This dictionary sets that we _always_ want
the "rsyslog" package to be the default syslog-daemon
package, over other alternatives. -->
<key>virtual-pkgver</key>
<string>syslog-daemon-0</string>
<key>target-pkgpattern</key>
<string>rsyslog>=0</string>
</dict>
</plist>

View File

@ -1,7 +1,7 @@
# Template file for 'rsyslog'
pkgname=rsyslog
version=5.8.5
revision=4
revision=5
homepage="http://www.rsyslog.com"
distfiles="${homepage}/files/download/rsyslog/$pkgname-$version.tar.gz"
build_style=gnu_configure
@ -41,4 +41,10 @@ post_install()
install -d ${DESTDIR}/usr/share/doc/rsyslog/html
install -m644 ${wrksrc}/doc/*.{html,png} \
${DESTDIR}/usr/share/doc/rsyslog/html
vmkdir etc/xbps/virtualpkg.d.wants
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname}
cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \
ln -sf ../virtualpkg.d/${pkgname} .
}