diff options
author | db <db@FreeBSD.org> | 2010-01-16 10:17:02 +0800 |
---|---|---|
committer | db <db@FreeBSD.org> | 2010-01-16 10:17:02 +0800 |
commit | a889c3137f7b56e30f4e7ee64f2c17d02375cf4f (patch) | |
tree | 8018a964effb9f73994a65a3dcd113b0d5dc3754 /comms/aprsd | |
parent | 87634f5502cd6f07e98c512b7962ebe1e19492f6 (diff) | |
download | freebsd-ports-gnome-a889c3137f7b56e30f4e7ee64f2c17d02375cf4f.tar.gz freebsd-ports-gnome-a889c3137f7b56e30f4e7ee64f2c17d02375cf4f.tar.zst freebsd-ports-gnome-a889c3137f7b56e30f4e7ee64f2c17d02375cf4f.zip |
- use $SUB_FILES to dynamically adjust pkg-message
PR: ports/142441
Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
Diffstat (limited to 'comms/aprsd')
-rw-r--r-- | comms/aprsd/Makefile | 11 | ||||
-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 |