aboutsummaryrefslogtreecommitdiff
path: root/comms/qpage/Makefile
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2016-03-14 14:39:15 +0000
committerMark Felder <feld@FreeBSD.org>2016-03-14 14:39:15 +0000
commitb3909d5c4d2434aafcf77495a66d999ec8199e0a (patch)
treeb4e85c88fb0efc7236b0a2b892d17f55af03030f /comms/qpage/Makefile
parentf88d0883b855ec74338a7ab478dc2fa3d993486f (diff)
downloadports-b3909d5c4d2434aafcf77495a66d999ec8199e0a.tar.gz
ports-b3909d5c4d2434aafcf77495a66d999ec8199e0a.zip
comms/qpage: Resurrect port
- New MASTER_SITE - New MAINTAINER - Change to USES=tar:Z - Regenerate patches PR: 206321
Notes
Notes: svn path=/head/; revision=411079
Diffstat (limited to 'comms/qpage/Makefile')
-rw-r--r--comms/qpage/Makefile74
1 files changed, 74 insertions, 0 deletions
diff --git a/comms/qpage/Makefile b/comms/qpage/Makefile
new file mode 100644
index 000000000000..7442d0c016b6
--- /dev/null
+++ b/comms/qpage/Makefile
@@ -0,0 +1,74 @@
+# Created by: joes@seaport.net
+# $FreeBSD$
+
+PORTNAME= qpage
+PORTVERSION= 3.3
+PORTREVISION= 8
+CATEGORIES= comms
+MASTER_SITES= http://www.qpage.org/download/
+MASTER_SITES= http://tomiii.com/qpage/qpage.org/download/
+
+MAINTAINER= rand@iteris.com
+COMMENT= SNPP client/server for sending messages to an alphanumeric pager
+
+USES=tar:Z
+USE_RC_SUBR= qpage
+GNU_CONFIGURE= yes
+
+OPTIONS_DEFINE= IDENT_PATCH
+IDENT_PATCH_DESC= Disable libwrap ident lookups
+
+IDENT_PATCH_EXTRA_PATCHES=${FILESDIR}/libwrap_ident_patch-srvrsnpp.c
+
+.if !defined(WITH_QPAGE_SYSLOG_FACILITY) || !defined(WITH_QPAGE_USER)
+.if !defined(WITH_QPAGE_SYSLOG_FACILITY) && !defined(WITH_QPAGE_USER)
+_QPAGE_MSG= You may set the following configuration options:
+.else
+_QPAGE_MSG= The following additional configuration options are available:
+.endif
+.if !defined(WITH_QPAGE_SYSLOG_FACILITY)
+WITH_QPAGE_SYSLOG_FACILITY= LOG_DAEMON
+_QPAGE_SYSLOG_MSG=1
+.endif
+.if !defined(WITH_QPAGE_USER)
+WITH_QPAGE_USER= uucp
+_QPAGE_USER_MSG=1
+.endif
+pre-patch:
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} ${_QPAGE_MSG}
+ @if [ -n "${_QPAGE_SYSLOG_MSG}" ]; then \
+ ${ECHO_MSG} ""; \
+ ${ECHO_MSG} " WITH_QPAGE_SYSLOG_FACILITY=syslog_facility"; \
+ ${ECHO_MSG} " Default is LOG_DAEMON"; \
+ fi
+ @if [ -n "${_QPAGE_USER_MSG}" ]; then \
+ ${ECHO_MSG} ""; \
+ ${ECHO_MSG} " WITH_QPAGE_USER=userid"; \
+ ${ECHO_MSG} " Default is \"uucp\"; recommended that user be in group \"dialer\""; \
+ fi
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Press ^C now to stop the build and set make options."
+ @${ECHO_MSG} "You may find it necessary to 'make clean' before restarting the build."
+ @sleep 2
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
+ ${WRKSRC}/qpage.man \
+ ${WRKSRC}/config.input \
+ ${WRKSRC}/config.h.in
+ ${REINPLACE_CMD} \
+ -e 's,%%WITH_QPAGE_SYSLOG_FACILITY%%,${WITH_QPAGE_SYSLOG_FACILITY},' \
+ -e 's,%%WITH_QPAGE_USER%%,${WITH_QPAGE_USER},' \
+ ${WRKSRC}/config.input
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/qpage ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/qpage.man \
+ ${STAGEDIR}${MAN1PREFIX}/man/man1/qpage.1
+ ${INSTALL_DATA} ${WRKSRC}/example.cf \
+ ${STAGEDIR}${PREFIX}/etc/qpage.conf.sample
+ ${MKDIR} ${STAGEDIR}/var/spool/qpage
+
+.include <bsd.port.mk>