summaryrefslogtreecommitdiff
path: root/dns/noip
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-10-05 19:59:13 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-10-05 19:59:13 +0000
commitb41e4b82b7c159d3d3212252a6304dd87a91be31 (patch)
tree0abeda969574955f69f9d71fb163a118316d4d13 /dns/noip
parentUpgrade to version 1.9.10. (diff)
- Update to version 2.0.12
- Approved by maintainer PR: 56180 Submitted by: Dan Larsson <ports@tyfon.net>
Notes
Notes: svn path=/head/; revision=90325
Diffstat (limited to 'dns/noip')
-rw-r--r--dns/noip/Makefile16
-rw-r--r--dns/noip/distinfo2
-rw-r--r--dns/noip/files/noip.sh6
-rw-r--r--dns/noip/files/patch-Makefile35
-rw-r--r--dns/noip/files/patch-no-ip.sh16
-rw-r--r--dns/noip/files/patch-noip.c12
-rw-r--r--dns/noip/files/patch-noip2.c46
-rw-r--r--dns/noip/pkg-install2
-rw-r--r--dns/noip/pkg-message10
-rw-r--r--dns/noip/pkg-plist5
10 files changed, 95 insertions, 55 deletions
diff --git a/dns/noip/Makefile b/dns/noip/Makefile
index 0351be923581..5dfc5bdea93b 100644
--- a/dns/noip/Makefile
+++ b/dns/noip/Makefile
@@ -6,15 +6,14 @@
#
PORTNAME= noip
-PORTVERSION= 1.6
+PORTVERSION= 2.0.12
CATEGORIES= dns
MASTER_SITES= http://www.no-ip.com/client/linux/
-DISTNAME= noip_updater_v${PORTVERSION}
MAINTAINER= esoha@attbi.com
COMMENT= No-IP.com's dynamic DNS update client
-ALL_TARGET= noip
+ALL_TARGET= noip2
post-build:
${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/noip.sh > ${WRKSRC}/noip.sh
@@ -24,21 +23,18 @@ pre-install:
${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/noip ${PREFIX}/bin
+ ${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}
- ${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
- ${INSTALL_MAN} ${WRKSRC}/no-ip.conf.sample ${PREFIX}/share/examples/${PORTNAME}
- ${INSTALL_SCRIPT} ${WRKSRC}/no-ip.sh ${PREFIX}/share/examples/${PORTNAME}
.endif
@${SED} "s|%%PREFIX%%|${PREFIX}|g" ${PKGMESSAGE} | ${SED} "s|%%WRKSRC%%|${WRKSRC}|g"
conf:
- (cd ${PREFIX}/etc && ${PREFIX}/share/examples/noip/no-ip.sh)
- ${CHOWN} noip:noip ${PREFIX}/etc/no-ip.conf
- ${CHMOD} 0600 ${PREFIX}/etc/no-ip.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>
diff --git a/dns/noip/distinfo b/dns/noip/distinfo
index 41d0c1e0f8ff..6e9a5c06f117 100644
--- a/dns/noip/distinfo
+++ b/dns/noip/distinfo
@@ -1 +1 @@
-MD5 (noip_updater_v1.6.tar.gz) = 6503e2e7d8ea35c304744a318b400a09
+MD5 (noip-2.0.12.tar.gz) = 72053672a5125d39b861a130aa4532f1
diff --git a/dns/noip/files/noip.sh b/dns/noip/files/noip.sh
index eca1af8323b8..285a62718385 100644
--- a/dns/noip/files/noip.sh
+++ b/dns/noip/files/noip.sh
@@ -2,14 +2,14 @@
case "$1" in
start)
- if [ -x %%PREFIX%%/bin/noip -a -f %%PREFIX%%/etc/no-ip.conf ]; then
+ if [ -x %%PREFIX%%/bin/noip2 -a -f %%PREFIX%%/etc/no-ip2.conf ]; then
echo -n ' noip';
- su -m noip -c '%%PREFIX%%/bin/noip' 2> /dev/null > /dev/null
+ su -m noip -c '%%PREFIX%%/bin/noip2' 2> /dev/null > /dev/null
fi
;;
stop)
echo -n ' noip';
- killall noip
+ killall noip2
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
diff --git a/dns/noip/files/patch-Makefile b/dns/noip/files/patch-Makefile
new file mode 100644
index 000000000000..de226c616f08
--- /dev/null
+++ b/dns/noip/files/patch-Makefile
@@ -0,0 +1,35 @@
+--- Makefile.orig Thu May 8 23:13:28 2003
++++ Makefile Fri Aug 29 10:22:57 2003
+@@ -1,16 +1,16 @@
+ TGT=noip2
+-CC=gcc
++MYCC=${CC}
+
+-PREFIX=/usr/local
+-CONFDIR=${PREFIX}/etc
+-BINDIR=${PREFIX}/bin
++MYPREFIX=${PREFIX}
++CONFDIR=${MYPREFIX}/etc
++BINDIR=${MYPREFIX}/bin
+
+ # these defines are for Linux
+-LIBS=
+-ARCH=linux
++#LIBS=
++#ARCH=linux
+
+ # for BSD systems that have getifaddr(), uncomment the next line
+-#ARCH=bsd_with_getifaddrs
++ARCH=bsd_with_getifaddrs
+
+ # for early BSD systems without getifaddrs(), uncomment the next line
+ #ARCH=bsd
+@@ -21,7 +21,7 @@
+ # ARCH=sun
+
+ ${TGT}: Makefile ${TGT}.c
+- ${CC} -Wall -g -O2 -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS}
++ ${MYCC} ${CFLAGS} -D${ARCH} -DPREFIX=\"${MYPREFIX}\" ${TGT}.c -o ${TGT} ${LIBS}
+
+ install: ${TGT}
+ if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR};fi
diff --git a/dns/noip/files/patch-no-ip.sh b/dns/noip/files/patch-no-ip.sh
deleted file mode 100644
index 4d083a0ec7b6..000000000000
--- a/dns/noip/files/patch-no-ip.sh
+++ /dev/null
@@ -1,16 +0,0 @@
---- no-ip.sh.orig Wed Oct 10 16:35:12 2001
-+++ no-ip.sh Fri Mar 29 01:55:11 2002
-@@ -1,3 +1,4 @@
-+#!/bin/sh
- #
- # configuration file builder script for no-ip
- #
-@@ -89,7 +90,7 @@
- #
- if [ "$NAT" = "N" ]
- then
-- devs=`tail +3 /proc/net/dev | awk -F: '{print $1}' | tr -d ' '|tr '\n' ' '`
-+ devs=`ifconfig -l inet`
- DEV=foo
- while [ "$DEV" = "foo" ]
- do
diff --git a/dns/noip/files/patch-noip.c b/dns/noip/files/patch-noip.c
deleted file mode 100644
index 04b51cdfffd6..000000000000
--- a/dns/noip/files/patch-noip.c
+++ /dev/null
@@ -1,12 +0,0 @@
---- noip.c.bak Sat Mar 30 17:59:58 2002
-+++ noip.c Sat Mar 30 17:59:15 2002
-@@ -452,7 +452,8 @@
- else
- getip(IPaddress);
- #ifdef DEBUG
-- ErrMsg("! LIA = %s, IP = %s",Last_IP_Addr, IPaddress);
-+ if (debug)
-+ ErrMsg("! LIA = %s, IP = %s",Last_IP_Addr, IPaddress);
- #endif
- if ((*IPaddress != 0) &&
- (strcmp(IPaddress, Last_IP_Addr) != 0)) {
diff --git a/dns/noip/files/patch-noip2.c b/dns/noip/files/patch-noip2.c
new file mode 100644
index 000000000000..8ddeeaad96d4
--- /dev/null
+++ b/dns/noip/files/patch-noip2.c
@@ -0,0 +1,46 @@
+--- noip2.c.orig Sat May 24 00:55:14 2003
++++ noip2.c Fri Aug 29 10:50:06 2003
+@@ -141,7 +141,7 @@
+
+ #define VERSION "2.0.12"
+ #define NOIP_NAME "dynupdate.no-ip.com"
+-#define USER_AGENT "User-Agent: Linux DUC "VERSION
++#define USER_AGENT "User-Agent: FreeBSD DUC "VERSION
+ #define SETTING_SCRIPT "settings.php?"
+ #define USTRNG "username="
+ #define PWDSTRNG "&pass="
+@@ -246,7 +246,7 @@
+ #define CMSG21 "Please select the Internet interface from this list.\n"
+ #define CMSG22 "By typing the number associated with it."
+ #define CMSG23 "Too many network devices. Limit is %d"
+-#define CMSG24 "\nAuto configuration for Linux client of no-ip.com.\n"
++#define CMSG24 "\nAuto configuration for FreeBSD client of no-ip.com.\n"
+ #define CMSG25 "Can't create config file (%s)"
+ #define CMSG25a "Re-run noip, adding '-c configfilename' as a parameter."
+ #define CMSG26 "Can't rename config file (%s)"
+@@ -438,7 +438,7 @@
+ fprintf(stderr, "[ -d][ -D pid]");
+ #endif
+ fprintf(stderr, "[ -i addr][ -S][ -M][ -h]");
+- fprintf(stderr, "\n\nVersion Linux-%s\n", VERSION);
++ fprintf(stderr, "\n\nVersion FreeBSD-%s\n", VERSION);
+ fprintf(stderr, "Options: -C create configuration data\n");
+ fprintf(stderr, " -F force NAT off\n");
+ fprintf(stderr, " -Y select all hosts/groups\n");
+@@ -1884,12 +1884,10 @@
+ for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
+ if (ifa->ifa_addr->sa_family == AF_LINK) {
+ struct if_data *ifd = (struct if_data *) ifa->ifa_data;
+- if (ifd->ifi_type == IFT_PFLOG
+- || ifd->ifi_type == IFT_PFSYNC
+- || ifd->ifi_type == IFT_ENC
+- || ifd->ifi_type == IFT_BRIDGE
+- || ifd->ifi_type == IFT_OTHER
+- || ifd->ifi_type == IFT_GIF)
++ if (ifd->ifi_type == IFT_OTHER
++ || ifd->ifi_type == IFT_GIF
++ || ifd->ifi_type == IFT_LOOP
++ || ifd->ifi_type == IFT_FAITH)
+ continue;
+ q = dq; // add new name into list
+ p = ifa->ifa_name;
diff --git a/dns/noip/pkg-install b/dns/noip/pkg-install
index f4efdf4b8f46..4ecf257c5072 100644
--- a/dns/noip/pkg-install
+++ b/dns/noip/pkg-install
@@ -21,7 +21,7 @@ fi
if ! ${PW} usershow "${USER}" 2>/dev/null 1>&2; then
if ${PW} useradd ${USER} -g ${GROUP} -h - \
-s "/sbin/nologin" -d "/nonexistent" \
- -c "noip_updater pseudo-user"; \
+ -c "noip pseudo-user"; \
then
${ECHO} "Added user \"${USER}\"."
else
diff --git a/dns/noip/pkg-message b/dns/noip/pkg-message
index a8fd115e237f..294ab4ce52ab 100644
--- a/dns/noip/pkg-message
+++ b/dns/noip/pkg-message
@@ -1,14 +1,8 @@
##################################################################
-You need to generate the noip config file 'no-ip.conf' in
-%%PREFIX%%/etc/no-ip.conf. To do this automatically, run:
+You need to generate the noip config file 'no-ip2.conf' in
+%%PREFIX%%/etc/no-ip2.conf. To do this automatically, run:
make conf
-To do it manually, copy
-%%PREFIX%%/share/examples/noip/no-ip.conf.sample to
-%%PREFIX%%/etc/no-ip.conf and edit it or use
-%%PREFIX%%/share/examples/noip/no-ip.sh to make no-ip.conf. Then
-chown to noip:noip and chmod to 0600.
-
You need to register with www.no-ip.com to use this port.
##################################################################
diff --git a/dns/noip/pkg-plist b/dns/noip/pkg-plist
index 3ac22b4870f3..4791aa7930fc 100644
--- a/dns/noip/pkg-plist
+++ b/dns/noip/pkg-plist
@@ -1,8 +1,5 @@
-bin/noip
+bin/noip2
etc/rc.d/noip.sh
%%PORTDOCS%%share/doc/noip/README.FIRST
%%PORTDOCS%%share/doc/noip/COPYING
-%%PORTDOCS%%share/examples/noip/no-ip.conf.sample
-%%PORTDOCS%%share/examples/noip/no-ip.sh
%%PORTDOCS%%@dirrm share/doc/noip
-%%PORTDOCS%%@dirrm share/examples/noip