Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

16
net/dynipclient/DESCR Normal file
View File

@@ -0,0 +1,16 @@
Dynip(sm) is a Dynamic IP Management System which allows Internet
hosts with dynamic IP addresses, such as dial-up users, to have a
permanent static Internet Name. Now, you can register your own
personal Internet Name that constantly refers to your dynamic
IP address, anywhere in the world! Your Internet Name becomes
integrated into the existing Domain Name System (DNS) on the
Internet within seconds of your name registration! People
can refer to your machine by means of a simple static Internet
name, allowing you to make your own unix servers available to
the public by publishing your Internet name. You never again
have to post your dynamic IP address to a web page, or run a
silly finger server informing others of your current IP address.
Current Pricing for DynIP Services are available from our
Web Site at http://www.dynip.com. Corporate pricing and custom
service quote requests can be send by email to sales@dynip.com.

32
net/dynipclient/Makefile Normal file
View File

@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.16 2012/10/23 17:18:18 asau Exp $
#
DISTNAME= dynip_3.00
PKGNAME= dynipclient-3.00
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ftp://ftp.dynip.com/software/unix/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.dynip.com/
COMMENT= Client for the dynip.com dynamic DNS service
RCD_SCRIPTS= dynipclient
EGDIR= ${PREFIX}/share/examples/dynipclient
CONF_FILES= ${EGDIR}/dynip.cfg ${PKG_SYSCONFDIR}/dynip.cfg
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR}
do-build:
cd ${WRKSRC} && ./Configure freebsd ${PREFIX}/bin ${PKG_SYSCONFDIR} \
${PREFIX}/man
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dynipadmin ${DESTDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/dynipclient ${DESTDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
${INSTALL_DATA} ${WRKSRC}/dynip.cfg ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"

7
net/dynipclient/PLIST Normal file
View File

@@ -0,0 +1,7 @@
@comment $NetBSD: PLIST,v 1.6 2009/06/14 18:09:26 joerg Exp $
bin/dynipadmin
bin/dynipclient
man/man1/dynipadmin.1
man/man1/dynipclient.1
share/examples/dynipclient/dynip.cfg
share/examples/rc.d/dynipclient

9
net/dynipclient/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.4 2011/09/25 19:53:55 joerg Exp $
SHA1 (dynip_3.00.tar.gz) = d1acee591e3ff51444f7dcbd7250c52a92a2d5f2
RMD160 (dynip_3.00.tar.gz) = b01af33171c8296bb13f6e31bec25e723d2f7272
Size (dynip_3.00.tar.gz) = 22443 bytes
SHA1 (patch-aa) = ff1a5be64b46675f331b73415acdb04abc62936b
SHA1 (patch-ab) = d17b71dababab0149322e6954757eb3e46d9383c
SHA1 (patch-dynipclient.c) = 7bd1605d5f3f81f9a6a2d07217271e4d2cb0474d
SHA1 (patch-prof.c) = c8b6bd26650856d13573e3ff3c487c27f3e1b705

View File

@@ -0,0 +1,17 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: dynipclient.sh,v 1.3 2003/07/30 12:01:26 jmmv Exp $
#
# PROVIDE: dynipclient
# REQUIRE: NETWORK
. /etc/rc.subr
name="dynipclient"
rcvar=$name
command="@PREFIX@/bin/${name}"
pidfile="/var/run/${name}.pid"
required_files="@PKG_SYSCONFDIR@/dynip.cfg"
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-aa,v 1.1.1.1 2001/08/28 13:10:46 tv Exp $
--- opt.c.orig Mon Aug 27 12:19:27 2001
+++ opt.c Mon Aug 27 12:19:42 2001
@@ -80,6 +80,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "opt.h"

View File

@@ -0,0 +1,50 @@
$NetBSD: patch-ab,v 1.1.1.1 2001/08/28 13:10:46 tv Exp $
--- Makefile.X.orig Tue Aug 28 08:52:40 2001
+++ Makefile.X Tue Aug 28 08:54:08 2001
@@ -4,8 +4,8 @@
# instead! #
# #
#################################################################
-CFLAGS=%cflags%
-LIBS=%libs%
+CFLAGS+=%cflags%
+LIBS=%libs% ${LDFLAGS}
MANPATH=%manpath%
OSTYPE=-DDYNIP_OSTYPE=%ostype%
BINDIR=%bindir%
@@ -15,27 +15,25 @@
all: dynipclient dynipadmin
dynipclient.o: dynipclient.c dynipclient.h dynipgbl.h
- cc -O ${CFLAGS} ${CFGDIRDEF} -c dynipclient.c
+ ${CC} ${CFLAGS} ${CFGDIRDEF} -c dynipclient.c
dynipclient: dynipclient.o prof.o opt.o log.o
- cc -o dynipclient dynipclient.o prof.o opt.o log.o ${LIBS}
- strip dynipclient
+ ${CC} -o dynipclient dynipclient.o prof.o opt.o log.o ${LIBS}
dynipadmin.o: dynipadmin.c dynipadmin.h prof.h dynipgbl.h opt.c opt.h
- cc -O ${OSTYPE} ${CFLAGS} ${CFGDIRDEF} -c dynipadmin.c
+ ${CC} ${OSTYPE} ${CFLAGS} ${CFGDIRDEF} -c dynipadmin.c
dynipadmin: dynipadmin.o prof.o opt.o
- cc -o dynipadmin dynipadmin.o opt.o prof.o ${LIBS}
- strip dynipadmin
+ ${CC} -o dynipadmin dynipadmin.o opt.o prof.o ${LIBS}
prof.o: prof.c prof.h
- cc -O -c prof.c
+ ${CC} ${CFLAGS} -c prof.c
opt.o: opt.c opt.h
- cc -O -c opt.c
+ ${CC} ${CFLAGS} -c opt.c
log.o: log.c log.h
- cc -O -c log.c
+ ${CC} ${CFLAGS} -c log.c
# Copy the MAN pages for the dynipclient and dynipadmin program.
# Must run with ROOT in order to save in the man directory

View File

@@ -0,0 +1,11 @@
$NetBSD: patch-dynipclient.c,v 1.1 2011/09/25 19:53:55 joerg Exp $
--- dynipclient.c.orig 2011-09-25 09:35:33.000000000 +0000
+++ dynipclient.c
@@ -51,4 +51,6 @@
*/
+#include <stdlib.h>
+
#include "dynipgbl.h"
#include "dynipclient.h"

View File

@@ -0,0 +1,40 @@
$NetBSD: patch-prof.c,v 1.1 2011/09/25 19:53:55 joerg Exp $
--- prof.c.orig 2011-09-25 09:35:54.000000000 +0000
+++ prof.c
@@ -65,7 +65,7 @@ static u_int profInitFlag;
/* local (internal) functions */
static u_short copyfile(FILE *, FILE *, u_int);
static u_short findOffset(FILE *, char *, u_short *);
-static u_short getline(FILE *, char *, u_short, u_short);
+static u_short my_getline(FILE *, char *, u_short, u_short);
static u_short strcpymax(char *, char *, u_short);
u_int profGetLine(u_short lineno, char *pLine, u_short maxline, char *pFile)
@@ -89,7 +89,7 @@ if ((fp = fopen(pFile, "r")) == NULL)
ret = 0;
while (lineno--)
- ret = (u_int)getline(fp, pLine, maxline, PROF_TYPE_PLAIN);
+ ret = (u_int)my_getline(fp, pLine, maxline, PROF_TYPE_PLAIN);
fclose(fp);
@@ -169,7 +169,7 @@ if ((fp = fopen(pFile,"r")) == NULL)
cnt = 1;
while (cnt != 0)
- if ((cnt = getline(fp, achLine, sizeof(achLine),PROF_TYPE_CONF)) != 0)
+ if ((cnt = my_getline(fp, achLine, sizeof(achLine),PROF_TYPE_CONF)) != 0)
{
ptr = strtok(achLine, "=");
@@ -372,7 +372,7 @@ pDest[len] = '\0';
return (len);
}
-static u_short getline(FILE *fp, char *pBuffer, u_short usBuflen, u_short type)
+static u_short my_getline(FILE *fp, char *pBuffer, u_short usBuflen, u_short type)
{
int ch;
u_short cnt;