1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/dns/noip/Makefile
Simon Barner 440fa34029 - Fix detection of device list by avoiding a conflict of the global ports
collection variable ${ARCH} and a variable of the same name in this port's
  Makefile

- Bump PORTREVISION

Reported by:	Rudi Kramer <derth@wbs.co.za> on freebsd-ports:
http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/027809.html
2005-12-01 18:39:18 +00:00

42 lines
1.1 KiB
Makefile

# New ports collection makefile for: No-IP Dynamic Update Client
# Date created: 28 March 2002
# Whom: Eyal Soha <esoha@attbi.com>
#
# $FreeBSD$
#
PORTNAME= noip
PORTVERSION= 2.1.1
PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://www.no-ip.com/client/linux/
MAINTAINER= ports@FreeBSD.org
COMMENT= No-IP.com's dynamic DNS update client
ALL_TARGET= noip2
post-build:
${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/noip.sh > ${WRKSRC}/noip.sh
pre-install:
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/noip2 ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/noip.sh ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.FIRST ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/COPYING ${DOCSDIR}
.endif
@${SED} "s|%%PREFIX%%|${PREFIX}|g" ${PKGMESSAGE} | ${SED} "s|%%WRKSRC%%|${WRKSRC}|g"
conf:
(cd ${PREFIX}/etc && ${PREFIX}/bin/noip2 -C)
${CHOWN} noip:noip ${PREFIX}/etc/no-ip2.conf
${CHMOD} 0600 ${PREFIX}/etc/no-ip2.conf
.include <bsd.port.mk>