From 473441588978da43f8bf5ad2d9425c166fd36fdd Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Wed, 12 Sep 2007 21:20:29 +0000 Subject: Follow up of ports/115699 to make the port more PREFIX friendly Submitted by: Alex Samorukov --- dns/inadyn/Makefile | 7 ++++++- dns/inadyn/files/patch-man::inadyn.8 | 4 ++-- dns/inadyn/files/patch-readme.html | 8 ++++---- dns/inadyn/files/patch-src::dyndns.h | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) (limited to 'dns/inadyn') diff --git a/dns/inadyn/Makefile b/dns/inadyn/Makefile index 4d373ead353b..da28a9c78811 100644 --- a/dns/inadyn/Makefile +++ b/dns/inadyn/Makefile @@ -7,8 +7,10 @@ PORTNAME= inadyn PORTVERSION= 1.96.2 +PORTREVISION= 1 CATEGORIES= dns -MASTER_SITES= http://inadyn.ina-tech.net/ +MASTER_SITES= http://inadyn.ina-tech.net/ \ + http://www.mirrorservice.org/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ DISTNAME= ${PORTNAME}.v${PORTVERSION} EXTRACT_SUFX= .zip @@ -32,6 +34,9 @@ NO_INSTALL_MANPAGES=yes post-patch: @${REINPLACE_CMD} -e 's|gcc|$$\(CC\)|g' ${WRKSRC}/makefile + ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/man/inadyn.8 ${WRKSRC}/readme.html \ + ${WRKSRC}/src/dyndns.h do-install: .if !defined(NOPORTDOCS) diff --git a/dns/inadyn/files/patch-man::inadyn.8 b/dns/inadyn/files/patch-man::inadyn.8 index 4e24753bcc60..1cf8714108ca 100644 --- a/dns/inadyn/files/patch-man::inadyn.8 +++ b/dns/inadyn/files/patch-man::inadyn.8 @@ -6,7 +6,7 @@ diff -Naur man/inadyn.8.orig man/inadyn.8 The file name that contains inadyn command options exactly as specified in the command line syntax (adds to those already present in the cmd -line). The default configuration file name is '/etc/inadyn.conf'. It is -+line). The default configuration file name is '/usr/local/etc/inadyn.conf'. It is ++line). The default configuration file name is '%%PREFIX%%/etc/inadyn.conf'. It is looked at automatically if .B inadyn is called without any command line options. The format is as expected @@ -29,7 +29,7 @@ diff -Naur man/inadyn.8.orig man/inadyn.8 Any of the SIG_HUP, SIG_INT, SIG_QUIT will cause inadyn to terminate gracefully. +.SH FILES -+/usr/local/etc/inadyn.conf ++%%PREFIX%%/etc/inadyn.conf + .SH "SEE ALSO" .SS "Other manual pages" diff --git a/dns/inadyn/files/patch-readme.html b/dns/inadyn/files/patch-readme.html index 8fb97f00aa20..64676dc82e1d 100644 --- a/dns/inadyn/files/patch-readme.html +++ b/dns/inadyn/files/patch-readme.html @@ -6,7 +6,7 @@ diff -Naur readme.html.orig readme.html freedns.afraid.org
Config file (can be placed anywhere, but in linux is convenient in -default location: /etc/inadyn.conf
-+default location: /usr/local/etc/inadyn.conf
++default location: %%PREFIX%%/etc/inadyn.conf
Content of cfg file:
--update_period 60000
--alias test.homeip.net,hash_for_host1
@@ -15,7 +15,7 @@ diff -Naur readme.html.orig readme.html
Launching of inadyn does not need any params. It looks for -/etc/inadyn.config -+/usr/local/etc/inadyn.config ++%%PREFIX%%/etc/inadyn.config

4. Freedns update in console
@@ -24,7 +24,7 @@ diff -Naur readme.html.orig readme.html command line from a configuration file. This feature allows the user to write the options only once, and avoids frequent retyping.
-Default configuration file is /etc/inadyn.conf under Unix -+Default configuration file is /usr/local/etc/inadyn.conf under Unix ++Default configuration file is %%PREFIX%%/etc/inadyn.conf under Unix systems.
The location of the config file can be given ot inadyn via --input_file option
@@ -33,7 +33,7 @@ diff -Naur readme.html.orig readme.html contains inadyn command options (adds to those already present in the cmd line). -The default configuration file name is '/etc/inadyn.conf'. It is only -+The default configuration file name is '/usr/local/etc/inadyn.conf'. It is only ++The default configuration file name is '%%PREFIX%%/etc/inadyn.conf'. It is only used if inadyn is called without any command line options. This allows inadyn to be called without any arguments. The format is as expected for a **NIX config  file. See below for details.
diff --git a/dns/inadyn/files/patch-src::dyndns.h b/dns/inadyn/files/patch-src::dyndns.h index 6fb7938bdb02..0dbd9a7f74c3 100644 --- a/dns/inadyn/files/patch-src::dyndns.h +++ b/dns/inadyn/files/patch-src::dyndns.h @@ -6,7 +6,7 @@ diff -Naur src/dyndns.h.orig src/dyndns.h /*test values*/ #define DYNDNS_DEFAULT_DEBUG_LEVEL 1 -#define DYNDNS_DEFAULT_CONFIG_FILE "/etc/inadyn.conf" -+#define DYNDNS_DEFAULT_CONFIG_FILE "/usr/local/etc/inadyn.conf" ++#define DYNDNS_DEFAULT_CONFIG_FILE "%%PREFIX%%/etc/inadyn.conf" #define DYNDNS_MY_USERNAME "test" #define DYNDNS_MY_PASSWD "test" -- cgit v1.2.3