From e8f6999c1b3eea007da83a6e4388deb0e3bf03fb Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Sun, 7 Feb 2010 20:34:20 +0000 Subject: 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) --- graphics/sane-backends/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'graphics/sane-backends/Makefile') 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 @@ -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 -- cgit v1.2.3