aboutsummaryrefslogtreecommitdiff
path: root/comms/lirc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'comms/lirc/Makefile')
-rw-r--r--comms/lirc/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/comms/lirc/Makefile b/comms/lirc/Makefile
index dff6c5714f61..e9dfb9881c69 100644
--- a/comms/lirc/Makefile
+++ b/comms/lirc/Makefile
@@ -7,7 +7,7 @@
PORTNAME= lirc
PORTVERSION= 0.9.0p1
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= comms
MASTER_SITES= http://lirc.org/software/snapshots/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/p1/-pre1/}
@@ -35,7 +35,7 @@ OPTIONS= MINIMAL "Build with minmal dependencies" Off \
USE_RC_SUBR= lircd.sh
PORTDOCS= html images irxevent.keys lirc.css lirc.hwdb
PORTEXAMPLES= remotes
-SUB_FILES= pkg-message
+SUB_FILES= pkg-message lircd.conf
.include <bsd.port.pre.mk>
@@ -71,6 +71,10 @@ post-install:
.if !defined(NOPORTEXAMPLES)
@(cd ${WRKSRC} && ${COPYTREE_SHARE} remotes ${EXAMPLESDIR}/)
.endif
+ @${INSTALL_DATA} ${WRKDIR}/lircd.conf ${PREFIX}/etc/lircd.conf.sample
+ @if [ ! -f ${PREFIX}/etc/lircd.conf ]; then \
+ ${INSTALL_DATA} ${WRKDIR}/lircd.conf ${PREFIX}/etc; \
+ fi
@${MKDIR} /var/run/lirc
@${CAT} ${PKGMESSAGE}