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
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2010-01-16 02:17:02 +00:00
|
|
|
SUB_FILES= pkg-message
|
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:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%CONFPATH%%|${PREFIX}/etc/aprsd/|' \
|
|
|
|
-e 's|%%LOGPATH%%|/var/log/aprsd/|' \
|
|
|
|
${WRKSRC}/src/aprsd.cpp
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LOGPATH%%|/var/log/aprsd/|' \
|
|
|
|
${WRKSRC}/src/utils.cpp
|
2010-01-16 02:17:02 +00:00
|
|
|
|
2008-01-24 18:23:27 +00:00
|
|
|
pre-install:
|
2013-12-30 21:07:40 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/aprsd
|
|
|
|
@${MKDIR} ${STAGEDIR}"/var/log/aprsd"
|
|
|
|
@${SETENV} "PKG_PREFIX=${STAGEDIR}${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
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
|
2013-12-30 21:07:40 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/admin/$f ${STAGEDIR}${PREFIX}/etc/aprsd/$f.samp
|
2008-01-24 18:23:27 +00:00
|
|
|
.endfor
|
2013-12-30 21:07:40 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2008-01-24 18:23:27 +00:00
|
|
|
.for f in chkaprsd udp_example
|
2013-12-30 21:07:40 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/admin/$f ${STAGEDIR}${EXAMPLESDIR}
|
2008-01-24 18:23:27 +00:00
|
|
|
.endfor
|
2013-12-30 21:07:40 +00:00
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/aprsd ${STAGEDIR}${LOCALBASE}/etc/rc.d
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${CP} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
|
2008-01-24 18:23:27 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|