summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorDiane Bruce <db@FreeBSD.org>2010-01-16 02:17:02 +0000
committerDiane Bruce <db@FreeBSD.org>2010-01-16 02:17:02 +0000
commit04df566144768e4b5e59147ebeae21297d367810 (patch)
treea7305d93d90026e9d3be58dc30ef67292a660970 /comms
parent- Use correct default serial device on 8.x (diff)
- use $SUB_FILES to dynamically adjust pkg-message
PR: ports/142441 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
Notes
Notes: svn path=/head/; revision=247961
Diffstat (limited to 'comms')
-rw-r--r--comms/aprsd/Makefile11
-rw-r--r--comms/aprsd/files/pkg-message.in (renamed from comms/aprsd/files/pkg_message.in)0
2 files changed, 5 insertions, 6 deletions
diff --git a/comms/aprsd/Makefile b/comms/aprsd/Makefile
index ab4ebb07f2e8..f306b9bfdc73 100644
--- a/comms/aprsd/Makefile
+++ b/comms/aprsd/Makefile
@@ -15,8 +15,7 @@ MAINTAINER= db@FreeBSD.org
COMMENT= Server daemon providing Internet access to APRS packet data
GNU_CONFIGURE= yes
-PKGMESSAGE= ${FILESDIR}/pkg_message.in
-WRK_PKGMESSAGE= ${WRKDIR}/pkg_message
+SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
@@ -26,16 +25,16 @@ post-patch:
${WRKSRC}/src/aprsd.cpp
@${REINPLACE_CMD} -e 's|%%LOGPATH%%|/var/log/aprsd/|' \
${WRKSRC}/src/utils.cpp
+
post-configure:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
${WRKSRC}/Makefile
+
pre-install:
@${MKDIR} ${PREFIX}/etc/aprsd
@${MKDIR} "/var/log/aprsd"
- @${CP} ${PKGMESSAGE} ${WRK_PKGMESSAGE}
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
- ${WRK_PKGMESSAGE}
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
post-install:
@cd ${WRKSRC}/admin
.for f in INIT.TNC RESTORE.TNC aprsd.conf welcome.txt user.deny
@@ -53,6 +52,6 @@ post-install:
@${ECHO} docs are in ${PREFIX}/share/doc/aprsd
@${ECHO}
.endif
- @${CAT} ${WRK_PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/comms/aprsd/files/pkg_message.in b/comms/aprsd/files/pkg-message.in
index 2ed67ce89297..2ed67ce89297 100644
--- a/comms/aprsd/files/pkg_message.in
+++ b/comms/aprsd/files/pkg-message.in