Date: Mon, 18 Dec 2000 12:04:05 -0800 (PST) From: tkato@prontomail.ne.jp To: freebsd-gnats-submit@FreeBSD.org Subject: ports/23627: Update port: misc/yaunc to 0.05 Message-ID: <200012182004.eBIK45W28149@freefall.freebsd.org> Resent-Message-ID: <200012182010.eBIKA2w30784@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 23627 >Category: ports >Synopsis: Update port: misc/yaunc to 0.05 >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: Mon Dec 18 12:10:02 PST 2000 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: 4.2-RELEASE i386 >Organization: >Environment: >Description: - Update to version 0.05 New file: files/patch-ac files/patch-ad files/patch-ae Remove file: files/patch-ab >How-To-Repeat: >Fix: diff -urN /usr/ports/misc/yaunc/Makefile misc/yaunc/Makefile --- /usr/ports/misc/yaunc/Makefile Mon Dec 11 20:36:02 2000 +++ misc/yaunc/Makefile Tue Dec 19 01:22:29 2000 @@ -1,28 +1,29 @@ -# New ports collection makefile for: yaunc -# Date created: 5 March 2000 -# Whom: nsayer@freebsd.org +# New ports collection makefile for: yaunc +# Date created: 5 March 2000 +# Whom: nsayer@freebsd.org # # $FreeBSD: ports/misc/yaunc/Makefile,v 1.3 2000/12/09 00:04:27 nsayer Exp $ # PORTNAME= yaunc -PORTVERSION= 0.02 +PORTVERSION= 0.05 CATEGORIES= misc MASTER_SITES= http://www.redterror.net/code/yaunc/ -MAINTAINER= ports@freebsd.org - -WRKSRC= ${WRKDIR}/yaunc +MAINTAINER= ports@FreeBSD.org +ALL_TARGET= bsd MAN1= yaunc.1 +post-patch: + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/yaunc.1 + do-install: - ( cd ${WRKSRC} ;\ - ${INSTALL_PROGRAM} yaunc ${PREFIX}/bin ;\ - ${INSTALL_DATA} -m 600 yaunc.conf ${PREFIX}/etc/yaunc.conf.sample ;\ - ${INSTALL_MAN} yaunc.man ${PREFIX}/man/man1/yaunc.1 ;\ - ${SED} s+%%PREFIX%%+${PREFIX}+g < ${FILESDIR}/startup > \ - ${PREFIX}/etc/rc.d/yaunc.sh ;\ - chmod 755 ${PREFIX}/etc/rc.d/yaunc.sh ) + ${INSTALL_PROGRAM} ${WRKSRC}/yaunc ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/yaunc.1 ${MANPREFIX}/man/man1 + ${INSTALL_DATA} -m 600 ${WRKSRC}/yaunc.conf ${PREFIX}/etc/yaunc.conf.sample + ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/startup > \ + ${PREFIX}/etc/rc.d/yaunc.sh + ${CHMOD} 755 ${PREFIX}/etc/rc.d/yaunc.sh .include <bsd.port.mk> diff -urN /usr/ports/misc/yaunc/distinfo misc/yaunc/distinfo --- /usr/ports/misc/yaunc/distinfo Fri Mar 10 03:11:12 2000 +++ misc/yaunc/distinfo Sat Dec 16 16:28:01 2000 @@ -1 +1 @@ -MD5 (yaunc-0.02.tar.gz) = a5c9bf1e1e72064c80dc5c3d66292863 +MD5 (yaunc-0.05.tar.gz) = 9f84d4f0bf065e9b4a49d3b871cb951d diff -urN /usr/ports/misc/yaunc/files/patch-aa misc/yaunc/files/patch-aa --- /usr/ports/misc/yaunc/files/patch-aa Fri Mar 10 03:05:48 2000 +++ misc/yaunc/files/patch-aa Sat Dec 16 16:45:13 2000 @@ -1,50 +1,24 @@ ---- Makefile.orig Sun Mar 5 11:18:06 2000 -+++ Makefile Sun Mar 5 11:29:57 2000 -@@ -1,6 +1,9 @@ +--- Makefile.orig Sun Aug 13 16:12:37 2000 ++++ Makefile Sat Dec 16 16:45:06 2000 +@@ -1,15 +1,15 @@ # Compiler, flags, etc... -CC = gcc --CFLAGS = -ansi -pedantic -Wall -O3 #-DDEBUG2 -DDEBUG1 -+#CC = gcc -+#CFLAGS = -ansi -pedantic -Wall -O3 #-DDEBUG2 -DDEBUG1 -+CFLAGS+= -DETCDIR=\"$(PREFIX)/etc/\" -+ -+all: bsd +-CFLAGS = -Wall -O3 #-g -DDEBUG2 -DDEBUG1 ++CC ?= gcc ++CFLAGS += -DDEFAULT_CONF_PATH=\"$(CONFPATH)/$(CONFFILE)\" + + # program variables + LINKNAME = yaunc +-FILENAME = yaunc-`cat VERSION` +-FILEPATH = /usr/local/bin ++FILENAME = yaunc ++FILEPATH = ${PREFIX}/bin + MANPAGE = yaunc.1 +-MANPATH = /usr/local/man/man1 ++MANPATH = ${PREFIX}/man/man1 + CONFFILE = yaunc.conf +-CONFPATH = /etc ++CONFPATH = ${PREFIX}/etc # platform dependant stuff has the appropriate suffix :) OBJ1 = read_conf.o usage.o unp_error.o encode.o unp_sock_wrappers.o \ -@@ -24,23 +27,23 @@ - linux_funcs.o get_ut_proc.o get_ut_bsd.o : yaunc.h my_hdrs.h - - # housekeeping --.PHONY : clean distclean install uninstall package backup --clean : -- rm -f *.o core --distclean : clean -- rm -f yaunc -+#.PHONY : clean distclean install uninstall package backup -+#clean : -+# rm -f *.o core -+#distclean : clean -+# rm -f yaunc - - install : -- cp yaunc /usr/local/bin ; \ -- cp yaunc.1 /usr/local/man/man1 ; \ -- cp yaunc.conf /etc/ -+ ${INSTALL_PROGRAM} yaunc $(PREFIX)/bin -+ ${INSTALL_MAN} yaunc.1 $(PREFIX)/man/man1 -+ ${INSTALL_DATA} yaunc.conf $(PREFIX)/etc - - uninstall : - rm /usr/local/bin/yaunc ; \ - rm /usr/local/man/man1/yaunc.1 ; \ - rm /etc/yaunc.conf - --package : distclean -- cd .. ; tar -cf - yaunc | gzip -9 > yaunc-`cat yaunc/VERSION`.tar.gz --backup : distclean -- cp -a . ../src_backup -+#package : distclean -+# cd .. ; tar -cf - yaunc | gzip -9 > yaunc-`cat yaunc/VERSION`.tar.gz -+#backup : distclean -+# cp -a . ../src_backup diff -urN /usr/ports/misc/yaunc/files/patch-ab misc/yaunc/files/patch-ab --- /usr/ports/misc/yaunc/files/patch-ab Fri Mar 10 03:05:48 2000 +++ misc/yaunc/files/patch-ab Thu Jan 1 09:00:00 1970 @@ -1,11 +0,0 @@ ---- main.c.orig Sun Mar 5 11:26:38 2000 -+++ main.c Sun Mar 5 11:26:57 2000 -@@ -13,7 +13,7 @@ - struct utsname sys_info; - struct info info; - time_t uptime; -- char * path = "/etc/yaunc.conf"; -+ char * path = ETCDIR"yaunc.conf"; - char * data_ptr; - - /* read data from the conf file */ diff -urN /usr/ports/misc/yaunc/files/patch-ac misc/yaunc/files/patch-ac --- /usr/ports/misc/yaunc/files/patch-ac Thu Jan 1 09:00:00 1970 +++ misc/yaunc/files/patch-ac Sat Dec 16 16:58:51 2000 @@ -0,0 +1,14 @@ +--- usage.c.orig Wed Jul 26 09:38:02 2000 ++++ usage.c Sat Dec 16 16:51:31 2000 +@@ -10,9 +10,9 @@ + fprintf(stderr, "\n"); + fprintf(stderr, "Options:\n"); + fprintf(stderr, "\t-f <config file> - use the specified config file instead of \n"); +- fprintf(stderr, "\t of /etc/yaunc.conf\n"); ++ fprintf(stderr, "\t " DEFAULT_CONF_PATH "\n"); + fprintf(stderr, "\t-d <0/1> - turn daemon mode off/on\n"); +- fprintf(stderr, "\t-l <0/1> - specify logging off/on"); ++ fprintf(stderr, "\t-l <0/1> - specify logging off/on\n"); + fprintf(stderr, "\t-h - display this help\n"); + fprintf(stderr, "\n"); + exit(0); diff -urN /usr/ports/misc/yaunc/files/patch-ad misc/yaunc/files/patch-ad --- /usr/ports/misc/yaunc/files/patch-ad Thu Jan 1 09:00:00 1970 +++ misc/yaunc/files/patch-ad Sat Dec 16 16:40:12 2000 @@ -0,0 +1,11 @@ +--- yaunc.1.origt Fri Mar 17 17:38:45 2000 ++++ yaunc.1 Sat Dec 16 16:40:02 2000 +@@ -25,7 +25,7 @@ + \fIYauc\fP accepts the following options: + .TP 8 + .B \-f conf_file +-Specify an alternate configuration file. Default is /etc/yaunc.conf. ++Specify an alternate configuration file. Default is %%PREFIX%%/etc/yaunc.conf. + .B \-h + Display usage information. + . diff -urN /usr/ports/misc/yaunc/files/patch-ae misc/yaunc/files/patch-ae --- /usr/ports/misc/yaunc/files/patch-ae Thu Jan 1 09:00:00 1970 +++ misc/yaunc/files/patch-ae Sat Dec 16 16:35:41 2000 @@ -0,0 +1,12 @@ +--- yaunc.h.orig Wed Jul 26 09:44:51 2000 ++++ yaunc.h Sat Dec 16 16:35:31 2000 +@@ -33,7 +33,9 @@ + #define LOG_PRIORITY LOG_INFO + + #define NAME "yaunc" ++#ifndef DEFAULT_CONF_PATH + #define DEFAULT_CONF_PATH "/etc/yaunc.conf" ++#endif + #define OPTION_STRING "hd:l:f:" + + /* program settings */ >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?200012182004.eBIK45W28149>