diff --git a/srcpkgs/rsyslog/files/rsyslog.virtualpkgd b/srcpkgs/rsyslog/files/rsyslog.virtualpkgd new file mode 100644 index 0000000000..3ee0488e45 --- /dev/null +++ b/srcpkgs/rsyslog/files/rsyslog.virtualpkgd @@ -0,0 +1,13 @@ + + + + + + virtual-pkgver + syslog-daemon-0 + target-pkgpattern + rsyslog>=0 + + diff --git a/srcpkgs/rsyslog/template b/srcpkgs/rsyslog/template index 5e5492f02d..b0f80fedb0 100644 --- a/srcpkgs/rsyslog/template +++ b/srcpkgs/rsyslog/template @@ -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} . }