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"
This commit is contained in:
ajacoutot 2013-01-20 08:44:16 +00:00
parent 63a5ba9eb2
commit 41c9477833
3 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
[plugin]
installed = 1
eula = 1
version = ${V}

View File

@ -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