Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Nov 2000 16:27:33 +0900 (KST)
From:      hollywar@holywar.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22683: New port net/dnip-update
Message-ID:  <200011080727.eA87RXw30068@alamis.holywar.net>

next in thread | raw e-mail | index | archive | help

>Number:         22683
>Category:       ports
>Synopsis:       New port net/dnip-update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 07 23:30:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     JunSeon Oh
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
holynet
>Environment:

FreeBSD alamis 4.1.1-STABLE FreeBSD 4.1.1-STABLE #0: Tue Oct 10 06:18:01 GMT 2000     tsoi@devel:/usr/obj/usr/src/sys/ALAMIS  i386

	

>Description:

	

This port collection is a dynamic update client on WWW.DNIP.NET
It is very simple free dynamic domain name service client using /usr/bin/fetch.

I'm a maintainer of www.dnip.net. I hope that is a useful services on many people of freebsd users.

Thanks.

>How-To-Repeat:

	

>Fix:

	


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./Makefile
#	./pkg-descr
#	./src
#	./src/dnip-update.sh
#	./pkg-comment
#	./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:    dnip-update
X# Date created:         8 Nov 2000
X# Whom:                 JunSeon Oh <hollywar@mail.holywar.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dnip-update
XPORTVERSION=	0.1
XCATEGORIES=	net
XMASTER_SITES=	# none
XDISTFILES=	# none
X
XMAINTAINER=	hollywar@mail.holywar.net
X
XNO_BUILD=	yes
XNO_WRKSUBDIR=	yes
X
XSRC=		${.CURDIR}/src
X
Xdo-fetch:
X	@${DO_NADA} 
X
Xdo-install:
X	${INSTALL} -c -m 700 ${SRC}/dnip-update.sh ${PREFIX}/sbin/dnip-update
X
Xpost-install:
X	@${ECHO_MSG} "*******************************************************"
X	@${ECHO_MSG} "* First , you need to register a new account          *"
X	@${ECHO_MSG} "* on http://www.dnip.net/register.cgi                 *"
X	@${ECHO_MSG} "*                                                     *"
X	@${ECHO_MSG} "* After registering , please change ID and PASSWORD   *"
X	@${ECHO_MSG} "* as your own in ${PREFIX}/sbin/dnip-update          *"
X	@${ECHO_MSG} "*******************************************************"
X
X.include <bsd.port.mk>
X
X
END-of-./Makefile
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XDNIP.NET is a free domain name service provider. It aim to provide fast, stable and convenient services.  Give your computer a name, in order for people to connect to your computer on the internet. An internet name makes connecting to your computer easy.
X
XFeatures:
X- Auto detect IP
X- Manual IP
X- MX records
X- SUB NS records
X- TTL
X
XWWW:	http://www.dnip.net/
X
X--
XMade By JunSeon Oh <hollywar@mail.holywar.net>
END-of-./pkg-descr
echo c - ./src
mkdir -p ./src > /dev/null 2>&1
echo x - ./src/dnip-update.sh
sed 's/^X//' >./src/dnip-update.sh << 'END-of-./src/dnip-update.sh'
X#!/bin/sh
X#
X# DNIP ip update utility (fetch) 
X#
X# Author : JunSeon Oh <hollywar@mail.holywar.net>
X# Date : $Date: 2000/11/08 07:05:14 $
X#
X# $Revision: 1.7 $
X#
X# Please change ID and PASSWORD correctly
X#
X# If you want set the IP for manually , please change AUTO to your IP
X#
X# Free Dynamic Domain Name Server Service DNIP.NET (http://www.dnip.net)
X#
X
XID="ID"
XPASSWORD="PASSWORD"
X
XPROGRAM="/usr/bin/fetch"
XDESTFILE="/tmp/dnip.result"
XADDRESS="AUTO"
X
X#
X# IP update routine uses ifconfig. If your computer got an ip on NIC , it is
X# better solutions than auto detect . Because many ISP use a proxy server when 
X# they routing to foreign country. In bad case, dnip server detect a proxy ip.
X# Please change DEVICE correctly and remove the comment mark.
X#
X# DEVICE="rl0"
X# ADDRESS=`ifconfig $DEVICE | grep "inet " | awk '{print $2}'`
X#
X
Xif [ -x $PROGRAM ] ; then 
X    $PROGRAM -q -o $DESTFILE "http://www.dnip.net/update.cgi?id=$ID&password=$PASSWORD&step=2&address=$ADDRESS" && echo "Update Done. (Result : $DESTFILE)" && cat $DESTFILE
Xelse 
X    echo "Program could not be run. plesase check $PROGRAM"
Xfi
X
X#
X# $Id: update_fetch.sh,v 1.7 2000/11/08 07:05:14 hollywar Exp $
X#
END-of-./src/dnip-update.sh
echo x - ./pkg-comment
sed 's/^X//' >./pkg-comment << 'END-of-./pkg-comment'
XA DNIP.NET clinet for UNIX
END-of-./pkg-comment
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xsbin/dnip-update
END-of-./pkg-plist
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011080727.eA87RXw30068>