aboutsummaryrefslogtreecommitdiff
path: root/graphics/sane-backends/Makefile
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2010-02-07 20:34:20 +0000
committerBruce M Simpson <bms@FreeBSD.org>2010-02-07 20:34:20 +0000
commite8f6999c1b3eea007da83a6e4388deb0e3bf03fb (patch)
treea62cfc6bce657b426d86d5694ed89685d5734b53 /graphics/sane-backends/Makefile
parent2f886f4efb083c9c04e0436f4f685170949d67af (diff)
downloadports-e8f6999c1b3eea007da83a6e4388deb0e3bf03fb.tar.gz
ports-e8f6999c1b3eea007da83a6e4388deb0e3bf03fb.zip
Add an RC script for saned, and borrow machinery for creating
a dedicated sandbox user account from the nullmailer port. Also add a pkg-message which describes how to tie down a USB scanner to this sandbox using devd(8) in FreeBSD 8, as well as describing what config files likely need editing. Note: This text probably belongs in the FreeBSD Handbook. Bump PORTREVISION. Reviewed by: dougb (with edits to saned.in)
Notes
Notes: svn path=/head/; revision=249398
Diffstat (limited to 'graphics/sane-backends/Makefile')
-rw-r--r--graphics/sane-backends/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/graphics/sane-backends/Makefile b/graphics/sane-backends/Makefile
index eec1c3ff5435..3dc93def7684 100644
--- a/graphics/sane-backends/Makefile
+++ b/graphics/sane-backends/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sane-backends
PORTVERSION= 1.0.20
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= http://alioth.debian.org/frs/download.php/3026/ \
ftp://ftp.sane-project.org/pub/sane/%SUBDIR%/ \
@@ -43,6 +43,9 @@ CONFIGURE_ARGS= --with-docdir=${DOCSDIR} \
MAKE_ENV= NOPORTDOCS=${NOPORTDOCS}
USE_LDCONFIG= yes
+USE_RC_SUBR= saned
+SUB_FILES+= pkg-install pkg-message
+
.include "Makefile.man"
.include <bsd.port.pre.mk>
@@ -93,4 +96,11 @@ post-patch:
s|} -D_REENT|} ${PTHREAD_CFLAGS} -D_REENT|g ; \
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+# Pass BATCH to pkg-install for Evil Things(tm)
+pre-install:
+ @BATCH="${BATCH}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.post.mk>