aboutsummaryrefslogtreecommitdiffstats
path: root/comms/smstools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'comms/smstools/Makefile')
-rw-r--r--comms/smstools/Makefile42
1 files changed, 34 insertions, 8 deletions
diff --git a/comms/smstools/Makefile b/comms/smstools/Makefile
index 66c4463650b1..f35d1b8d9a56 100644
--- a/comms/smstools/Makefile
+++ b/comms/smstools/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= smstools
-PORTVERSION= 2.2.18
-PORTREVISION= 1
+PORTVERSION= 2.2.20
CATEGORIES= comms
MASTER_SITES= http://www.meinemullemaus.de/smstools/packages/
@@ -16,15 +15,42 @@ COMMENT= Tools to handle Short Message Service
LIB_DEPENDS= mm:${PORTSDIR}/devel/mm
-WRKSRC= ${WRKDIR}/smstools
+WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GMAKE= yes
USE_RC_SUBR= smsd.sh
+SPOOLDIR?= /var/spool/sms
+PLIST_SUB+= PREFIX="${PREFIX}" \
+ SPOOLDIR="${SPOOLDIR}"
+
+DOCS= alarmhandler.html blacklist.html book.html butterfly.gif \
+ compiling.html configure.html configure2.html costs.html \
+ email.gif eventhandler.html faq.html fileformat.html \
+ gpl.html gpl_de.html hardwarecomp.html index.html \
+ license.html links.html paypalbutton.gif raster.gif \
+ references.html releasenotes.html run.html softwarecomp.html \
+ statformat.html statusmonitor.html support.gif support.html \
+ udh.html windows.html
+EXAMPLES= .procmailrc .qmailrc operator_logo1.sms operator_logo2.sms \
+ received_report.sms received_sms.sms send_sms.sms \
+ send_sms_unicode.sms smsd.conf.easy smsd.conf.full
+SCRIPTS= email2sms hex2bin hex2dec mysmsd sendsms sms sms2html \
+ sms2unicode sms2xml smsevent smsresend sql_demo unicode2sms
post-patch:
- @${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${WRKSRC}/src/smsd_cfg.c \
- ${WRKSRC}/install.sh \
- ${WRKSRC}/examples/smsd.conf.easy \
- ${WRKSRC}/examples/smsd.conf.full
+ @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/install.sh
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/
+.endif
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/examples/,} ${EXAMPLESDIR}/
+.endif
+ @${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/scripts/,} ${PREFIX}/bin
+
+#post-install:
+ @${INSTALL_DATA} ${WRKSRC}/examples/smsd.conf.easy ${PREFIX}/etc/smsd.conf
.include <bsd.port.mk>