blob: b9db4747e58456147507b443a8f3f0246b28f303 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
PORTNAME= scanbd
DISTVERSION= 1.5.1
PORTREVISION= 4
CATEGORIES= sysutils
MAINTAINER= trueos@norwegianrockcat.com
COMMENT= Scanner button daemon
WWW= https://sourceforge.net/projects/scanbd/
LICENSE= GPLv2
BUILD_DEPENDS= sane-config:graphics/sane-backends
LIB_DEPENDS= libdbus-1.so:devel/dbus \
libudev.so:devel/libudev-devd \
libconfuse.so:devel/libconfuse
RUN_DEPENDS= bash:shells/bash \
scanimage:graphics/sane-backends
USES= gettext-runtime gmake pkgconfig shebangfix
USE_GITLAB= yes
GL_ACCOUNT= sane-project/frontend
GL_PROJECT= scanbd
GL_TAGNAME= 4503640d202c06510f21848a684e221f613f324b
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS+= --with-user=saned --with-group=saned
SHEBANG_GLOB= *.script
USE_RC_SUBR= scanbd
SUB_FILES= pkg-message \
scanbd
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/conf/scanbd.conf
post-install:
${MV} ${STAGEDIR}${ETCDIR}/scanbd.conf ${STAGEDIR}${ETCDIR}/scanbd.conf.sample
${MV} ${STAGEDIR}${ETCDIR}/scripts/action.script ${STAGEDIR}${ETCDIR}/scripts/action.script.sample
${MV} ${STAGEDIR}${ETCDIR}/scripts/example.script ${STAGEDIR}${ETCDIR}/scripts/example.script.sample
${MV} ${STAGEDIR}${ETCDIR}/scripts/insert.script ${STAGEDIR}${ETCDIR}/scripts/insert.script.sample
${MV} ${STAGEDIR}${ETCDIR}/scripts/scanadf.script ${STAGEDIR}${ETCDIR}/scripts/scanadf.script.sample
${MV} ${STAGEDIR}${ETCDIR}/scripts/test.script ${STAGEDIR}${ETCDIR}/scripts/test.script.sample
${MKDIR} ${STAGEDIR}${PREFIX}/etc/rc.d
${INSTALL_SCRIPT} ${WRKDIR}/scanbd ${STAGEDIR}${PREFIX}/etc/rc.d/scanbd
.include <bsd.port.mk>
|