aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorTom Hukins <tom@FreeBSD.org>2001-10-19 15:25:17 +0000
committerTom Hukins <tom@FreeBSD.org>2001-10-19 15:25:17 +0000
commit74da5f3f8f9d197d115e19e0bf0bd823f5c5160e (patch)
treeee16ab85447a0b2922a4d46ea81c3877a85c60c9 /comms
parent6448629875d8ee693893620fb93536356e9ff17d (diff)
downloadports-74da5f3f8f9d197d115e19e0bf0bd823f5c5160e.tar.gz
ports-74da5f3f8f9d197d115e19e0bf0bd823f5c5160e.zip
Fix location of gnokiirc from /etc to /usr/local/etc
Submitted by: Anders Nordby <anders@fix.no>
Notes
Notes: svn path=/head/; revision=48946
Diffstat (limited to 'comms')
-rw-r--r--comms/gnokii/Makefile10
-rw-r--r--comms/gnokii/pkg-message7
2 files changed, 14 insertions, 3 deletions
diff --git a/comms/gnokii/Makefile b/comms/gnokii/Makefile
index a17a7895a760..0a7d4d4a931f 100644
--- a/comms/gnokii/Makefile
+++ b/comms/gnokii/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnokii
PORTVERSION= 0.3.3
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= comms
MASTER_SITES= ftp://ftp.gnokii.org/pub/gnokii/ \
@@ -43,6 +44,15 @@ MAN8= gnokiid.8 mgnokiidev.8
INSTALL_TARGET= install-suid
+FIXPREFIX= common/cfgreader.c ChangeLog Docs/man/gnokiid.8 \
+ Docs/DataCalls-QuickStart Docs/README po/et.po po/pl.po
+
+post-patch:
+.for f in ${FIXPREFIX}
+ ${PERL} -pi -e "s@/etc/gnokiirc@${PREFIX}/etc/gnokiirc@g" \
+ ${WRKSRC}/${f}
+.endfor
+
pre-install:
@${SH} ${SCRIPTDIR}/creategroup
diff --git a/comms/gnokii/pkg-message b/comms/gnokii/pkg-message
index 5ad0638cc432..cab227ca86fd 100644
--- a/comms/gnokii/pkg-message
+++ b/comms/gnokii/pkg-message
@@ -1,5 +1,6 @@
================================================================================
-The default config is installed in ${PREFIX}/etc/gnokiirc, and is configured
-for Nokia 6110 phones connected on COM1. Have a look at the
-documentation/manpages for more information.
+The default config is installed in ${PREFIX}/etc/gnokiirc.sample, and is
+configured for Nokia 6110 phones connected on COM1. Have a look at the
+documentation/manpages for more information. You'll need to copy
+gnokiirc.sample to gnokiirc for gnokii/xgnokii to use it.
================================================================================