aboutsummaryrefslogblamecommitdiff
path: root/dns/noip/Makefile
blob: 5dfc5bdea93b14c906b2552545d277bf960471f3 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                  
                      
                   
                                                  

                               
                                                     
 
                     








                                                                                   
                                                        




                                                                             



                                                                                            


                                                    

                      
# 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.0.12
CATEGORIES=	dns
MASTER_SITES=	http://www.no-ip.com/client/linux/

MAINTAINER=	esoha@attbi.com
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} ${PREFIX}/share/doc/${PORTNAME}
	${INSTALL_MAN} ${WRKSRC}/README.FIRST ${PREFIX}/share/doc/${PORTNAME}
	${INSTALL_MAN} ${WRKSRC}/COPYING ${PREFIX}/share/doc/${PORTNAME}
.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>