ports/sysutils/scanbd/Makefile
Muhammad Moinur Rahman e50dc94814
sysutils/scanbd: Moved man to share/man
Approved by:    portmgr (blanket)
2024-02-26 08:04:56 +01:00

51 lines
1.6 KiB
Makefile

PORTNAME= scanbd
DISTVERSION= 1.5.1
PORTREVISION= 3
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>