1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/comms/sms_client/Makefile

48 lines
1.5 KiB
Makefile

# Created by: George Reid <greid@ukug.uk.freebsd.org>
# $FreeBSD$
PORTNAME= sms_client
PORTVERSION= 3.0.2
PORTREVISION= 3
CATEGORIES= comms
MASTER_SITES= http://bsdforge.com/projects/source/comms/sms_client/
MAINTAINER= portmaster@bsdforge.com
COMMENT= Simple UNIX SMS client to send messages to phones or pagers
LICENSE= BSD3CLAUSE
USES= tar:xz
HAS_CONFIGURE= yes
SPOOL= ${STAGEDIR}${PREFIX}/var/spool/sms
MAKE_JOBS_UNSAFE= yes
post-configure:
@${SED} -e 's@gcc@${CC}@g' -e 's@-Wall@${CFLAGS} -Wall@g' \
${FILESDIR}/Makefile.config > ${WRKSRC}/Makefile.config
post-patch:
@${MV} ${WRKSRC}/sms/services/vodafone_autralia \
${WRKSRC}/sms/services/vodafone_australia
@${RM} ${WRKSRC}/sms/services/att_web.orig
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/sms_client \
${WRKSRC}/bin/sms_address ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC}; ${COPYTREE_SHARE} sms/scripts ${STAGEDIR}${PREFIX}/etc
cd ${WRKSRC}; ${COPYTREE_SHARE} sms/services ${STAGEDIR}${PREFIX}/etc
cd ${WRKSRC}/sms && ${INSTALL_DATA} sms_addressbook \
sms_config sms_daemons sms_modem sms_services \
${STAGEDIR}${PREFIX}/etc/sms
cd ${STAGEDIR}${PREFIX}/etc/sms/services ; ${FIND} -s * -type f \
-exec mkdir -p ${SPOOL}/errors/{} \; \
-exec mkdir -p ${SPOOL}/services/{} \; \
-exec touch ${SPOOL}/errors/{}/.keep \; \
-exec touch ${SPOOL}/services/{}/.keep \;
${MKDIR} -p ${SPOOL}/named_pipes ${SPOOL}/locks ${SPOOL}/incoming
${TOUCH} ${SPOOL}/named_pipes/.keep ${SPOOL}/locks/.keep \
${SPOOL}/incoming/.keep
.include <bsd.port.mk>