aboutsummaryrefslogtreecommitdiffstats
path: root/dns/noip/Makefile
blob: 45364a3a02b8f2006290705a7820b153d6f1028f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: Eyal Soha <esoha@attbi.com>
# $FreeBSD$

PORTNAME=   noip
PORTVERSION=    2.1.9
PORTREVISION=   4
CATEGORIES= dns
MASTER_SITES=   http://www.no-ip.com/client/linux/ \
        LOCAL/ehaupt

MAINTAINER= sthalik@tehran.lain.pl
COMMENT=    No-IP.com's dynamic DNS update client

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

ALL_TARGET= noip2
SUB_FILES=  pkg-message
USE_RC_SUBR=    noip

USERS=      noip
GROUPS=     noip

PLIST_SUB=  USER="${USERS}"

OPTIONS_DEFINE= DOCS

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/noip2 ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.FIRST ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}

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>