2013-09-20 16:03:29 +00:00
|
|
|
# Created by: db
|
2008-01-24 18:23:27 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= aprsd
|
|
|
|
PORTVERSION= 2.2.515
|
2015-03-24 23:45:41 +00:00
|
|
|
PORTREVISION= 1
|
2008-01-24 18:23:27 +00:00
|
|
|
CATEGORIES= comms hamradio
|
2009-08-22 00:15:15 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2.2.5-15
|
2008-01-24 18:23:27 +00:00
|
|
|
DISTNAME= aprsd-2.2.5-15
|
|
|
|
|
2014-11-22 23:38:50 +00:00
|
|
|
MAINTAINER= hamradio@FreeBSD.org
|
2008-01-24 18:23:27 +00:00
|
|
|
COMMENT= Server daemon providing Internet access to APRS packet data
|
|
|
|
|
2015-07-30 15:48:52 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2008-01-24 18:23:27 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2015-07-30 15:48:52 +00:00
|
|
|
SUB_FILES= pkg-message pkg-deinstall
|
|
|
|
USE_RC_SUBR= aprsd
|
|
|
|
|
|
|
|
USERS= aprsd tnc
|
2015-07-30 17:12:52 +00:00
|
|
|
GROUPS= aprsd dialer tnc
|
2015-07-30 15:48:52 +00:00
|
|
|
APRSD_RC_USER= aprsd
|
|
|
|
APRSD_RC_GROUP= aprsd
|
|
|
|
|
|
|
|
RC_SUB_LIST= LOCALBASE=${LOCALBASE} APRSD_RC_USER=${APRSD_RC_USER} \
|
|
|
|
APRSD_RC_GROUP=${APRSD_RC_GROUP}
|
2008-01-24 18:23:27 +00:00
|
|
|
|
2014-07-15 23:11:12 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2008-01-24 18:23:27 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-patch:
|
2015-07-30 15:48:52 +00:00
|
|
|
${REINPLACE_CMD} -e 's|%%CONFPATH%%|${PREFIX}/etc/aprsd/|' \
|
2008-01-24 18:23:27 +00:00
|
|
|
-e 's|%%LOGPATH%%|/var/log/aprsd/|' \
|
|
|
|
${WRKSRC}/src/aprsd.cpp
|
2015-07-30 15:48:52 +00:00
|
|
|
${REINPLACE_CMD} -e 's|%%LOGPATH%%|/var/log/aprsd/|' \
|
2008-01-24 18:23:27 +00:00
|
|
|
${WRKSRC}/src/utils.cpp
|
2010-01-16 02:17:02 +00:00
|
|
|
|
2008-01-24 18:23:27 +00:00
|
|
|
pre-install:
|
2015-07-30 15:48:52 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/aprsd
|
|
|
|
${MKDIR} ${STAGEDIR}"/var/log/aprsd"
|
2010-01-16 02:17:02 +00:00
|
|
|
|
2008-01-24 18:23:27 +00:00
|
|
|
post-install:
|
|
|
|
@cd ${WRKSRC}/admin
|
|
|
|
.for f in INIT.TNC RESTORE.TNC aprsd.conf welcome.txt user.deny
|
2015-07-30 15:48:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/admin/$f ${STAGEDIR}${PREFIX}/etc/aprsd/$f.samp
|
2008-01-24 18:23:27 +00:00
|
|
|
.endfor
|
2015-07-30 15:48:52 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2008-01-24 18:23:27 +00:00
|
|
|
.for f in chkaprsd udp_example
|
2015-07-30 15:48:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/admin/$f ${STAGEDIR}${EXAMPLESDIR}
|
2008-01-24 18:23:27 +00:00
|
|
|
.endfor
|
2015-07-30 15:48:52 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${CP} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
|
2008-01-24 18:23:27 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|