From 9b6e518d995a05ff90866b7e25d744adcbad0703 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 Oct 2011 17:48:23 +0200 Subject: [PATCH] rsyslog: added a virtualpkg.d plist file. --- srcpkgs/rsyslog/files/rsyslog.virtualpkgd | 13 +++++++++++++ srcpkgs/rsyslog/template | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/rsyslog/files/rsyslog.virtualpkgd diff --git a/srcpkgs/rsyslog/files/rsyslog.virtualpkgd b/srcpkgs/rsyslog/files/rsyslog.virtualpkgd new file mode 100644 index 00000000000..3ee0488e45c --- /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 5e5492f02db..b0f80fedb02 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} . }