aboutsummaryrefslogtreecommitdiff
path: root/comms/smstools/Makefile
blob: 76a3cf50b2f3849a421fe236bd2e4a6b1188538c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for:   	smstools
# Date created:                        	06-11-2004
# Whom:                                	Benny Kjaergaard <bennyk@wax.dk>
#
# $FreeBSD$
#

PORTNAME=	smstools
PORTVERSION=	2.2.20
CATEGORIES=	comms
MASTER_SITES=	http://www.meinemullemaus.de/smstools/packages/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tools to handle Short Message Service

LIB_DEPENDS=	mm:${PORTSDIR}/devel/mm

CONFLICTS=	smstools-3.*

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} '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>