From bcc7ae0315cbac701884fe916867b16194fd8392 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 Oct 2011 18:14:29 +0200 Subject: [PATCH] xbps-devel: enable virtualpkg by default. --- srcpkgs/xbps-devel/template | 7 +++++-- srcpkgs/xbps-devel/xbps-devel-static.template | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/srcpkgs/xbps-devel/template b/srcpkgs/xbps-devel/template index 3837c1f4221..650e06b51d5 100644 --- a/srcpkgs/xbps-devel/template +++ b/srcpkgs/xbps-devel/template @@ -1,6 +1,6 @@ # Template file for 'xbps' pkgname=xbps-devel -version="$(date +%Y%m%d)" +version="1.$(date +%Y%m%d)" build_style=configure configure_args="--prefix=/ --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --with-pie" @@ -43,6 +43,9 @@ do_fetch() { } post_install() { - vinstall ${FILESDIR}/virtualpkg.d/xbps-devel.plist \ + vinstall ${FILESDIR}/virtualpkg.d/${pkgname}.plist \ 644 etc/xbps/virtualpkg.d + vmkdir etc/xbps/virtualpkg.d.wants + cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \ + ln -sf ../virtualpkg.d/${pkgname}.plist . } diff --git a/srcpkgs/xbps-devel/xbps-devel-static.template b/srcpkgs/xbps-devel/xbps-devel-static.template index d7f97f9aced..a92e2ae47bf 100644 --- a/srcpkgs/xbps-devel/xbps-devel-static.template +++ b/srcpkgs/xbps-devel/xbps-devel-static.template @@ -16,6 +16,9 @@ do_install() vmove usr/include usr vmove "sbin/*.static" sbin vmove "lib/*.a" usr/lib - vinstall ${FILESDIR}/virtualpkg.d/xbps-devel-static.plist \ + vinstall ${FILESDIR}/virtualpkg.d/${pkgname}.plist \ 644 etc/xbps/virtualpkg.d + vmkdir etc/xbps/virtualpkg.d.wants + cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \ + ln -sf ../virtualpkg.d/${pkgname}.plist . }