diff options
author | edwin <edwin@FreeBSD.org> | 2007-09-13 05:20:29 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2007-09-13 05:20:29 +0800 |
commit | b23997e108abf48369a901c5dc3e6641bba5952f (patch) | |
tree | 748844fe2662414906902d1d96a74cce63a819ee /dns/inadyn | |
parent | c8fbd11e31ef8413ec0fba79cd9b9b2c80bddc81 (diff) | |
download | freebsd-ports-gnome-b23997e108abf48369a901c5dc3e6641bba5952f.tar.gz freebsd-ports-gnome-b23997e108abf48369a901c5dc3e6641bba5952f.tar.zst freebsd-ports-gnome-b23997e108abf48369a901c5dc3e6641bba5952f.zip |
Follow up of ports/115699 to make the port more PREFIX friendly
Submitted by: Alex Samorukov <samm@os2.kiev.ua>
Diffstat (limited to 'dns/inadyn')
-rw-r--r-- | dns/inadyn/Makefile | 7 | ||||
-rw-r--r-- | dns/inadyn/files/patch-man::inadyn.8 | 4 | ||||
-rw-r--r-- | dns/inadyn/files/patch-readme.html | 8 | ||||
-rw-r--r-- | dns/inadyn/files/patch-src::dyndns.h | 2 |
4 files changed, 13 insertions, 8 deletions
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 </span><br> Config file (can be placed anywhere, but in linux is convenient in -default location: /etc/inadyn.conf<br> -+default location: /usr/local/etc/inadyn.conf<br> ++default location: %%PREFIX%%/etc/inadyn.conf<br> Content of cfg file:<br> --update_period 60000 <br> --alias test.homeip.net,hash_for_host1 <br> @@ -15,7 +15,7 @@ diff -Naur readme.html.orig readme.html <br> Launching of inadyn does not need any params. It looks for -/etc/inadyn.config -+/usr/local/etc/inadyn.config ++%%PREFIX%%/etc/inadyn.config <br> <br> <span style="font-weight: bold;">4. Freedns update in console </span><br> @@ -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.<br> -<i>Default configuration file</i> is /etc/inadyn.conf under Unix -+<i>Default configuration file</i> is /usr/local/etc/inadyn.conf under Unix ++<i>Default configuration file</i> is %%PREFIX%%/etc/inadyn.conf under Unix systems. <br> The location of the config file can be given ot inadyn via --input_file option <br> @@ -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.<br> 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" |