aboutsummaryrefslogtreecommitdiff
path: root/dns/inadyn
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2007-09-12 21:20:29 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2007-09-12 21:20:29 +0000
commit473441588978da43f8bf5ad2d9425c166fd36fdd (patch)
treeafb170eb5a8ebab5b96361a993c20e7a6ffb9d77 /dns/inadyn
parent6e64e9ede6b13ac7ec38e2c077b809bb4e567646 (diff)
downloadports-473441588978da43f8bf5ad2d9425c166fd36fdd.tar.gz
ports-473441588978da43f8bf5ad2d9425c166fd36fdd.zip
Follow up of ports/115699 to make the port more PREFIX friendly
Submitted by: Alex Samorukov <samm@os2.kiev.ua>
Notes
Notes: svn path=/head/; revision=199384
Diffstat (limited to 'dns/inadyn')
-rw-r--r--dns/inadyn/Makefile7
-rw-r--r--dns/inadyn/files/patch-man::inadyn.84
-rw-r--r--dns/inadyn/files/patch-readme.html8
-rw-r--r--dns/inadyn/files/patch-src::dyndns.h2
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&nbsp; 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"