From 41c9477833639083884dbc54ec3277af3b4043db Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sun, 20 Jan 2013 08:44:16 +0000 Subject: [PATCH] Install a /var/db/hp/hplip.state file to simulate we have the plugins installed; these are Linux specific and proprietary so there is not point in getting them. idea from "gjones" --- print/hplip/Makefile | 6 ++++-- print/hplip/files/hplip.state | 5 +++++ print/hplip/pkg/PLIST-main | 5 +++-- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 print/hplip/files/hplip.state diff --git a/print/hplip/Makefile b/print/hplip/Makefile index f146210af6b..3cc4baea2fc 100644 --- a/print/hplip/Makefile +++ b/print/hplip/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.62 2013/01/20 07:32:08 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.63 2013/01/20 08:44:16 ajacoutot Exp $ SHARED_ONLY= Yes @@ -17,7 +17,7 @@ PKGNAME-hpcups= hpcups-${V} PKGNAME-libs= hplip-libs-${V} PKGNAME-gui= hplip-gui-${V} -REVISION-main= 1 +REVISION-main= 2 REVISION-libs= 0 REVISION-gui= 0 REVISION-hpcups=1 @@ -179,6 +179,8 @@ pre-configure: ${WRKSRC}/ui/nodevicesform.py post-install: + ${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/hplip.state \ + ${PREFIX}/share/examples/hplip/db/hplip.state ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \ ${PREFIX}/share/hplip rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/*.la diff --git a/print/hplip/files/hplip.state b/print/hplip/files/hplip.state new file mode 100644 index 00000000000..9bd5414a9c1 --- /dev/null +++ b/print/hplip/files/hplip.state @@ -0,0 +1,5 @@ +[plugin] +installed = 1 +eula = 1 +version = ${V} + diff --git a/print/hplip/pkg/PLIST-main b/print/hplip/pkg/PLIST-main index 57614cdf1d4..a6721064b94 100644 --- a/print/hplip/pkg/PLIST-main +++ b/print/hplip/pkg/PLIST-main @@ -1,9 +1,8 @@ -@comment $OpenBSD: PLIST-main,v 1.17 2013/01/20 07:32:08 ajacoutot Exp $ +@comment $OpenBSD: PLIST-main,v 1.18 2013/01/20 08:44:16 ajacoutot Exp $ @conflict hplip-docs-* @conflict hplip-gui-<3.11.3p0 @extraunexec rm -rf /var/log/hp/tmp/* @extraunexec rm -f /var/log/hp/* -@extra /var/db/hp/hplip.state bin/hp-check bin/hp-clean bin/hp-config_usb_printer @@ -75,6 +74,8 @@ share/examples/hplip/cups/pstotiff.types @sample ${SYSCONFDIR}/cups/pstotiff.types share/examples/hplip/db/ @sample /var/db/hp/ +share/examples/hplip/db/hplip.state +@sample /var/db/hp/hplip.state share/examples/hplip/dbus-1/ share/examples/hplip/dbus-1/system.d/ share/examples/hplip/dbus-1/system.d/com.hp.hplip.conf