aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2002-05-23 09:02:28 +0800
committeranders <anders@FreeBSD.org>2002-05-23 09:02:28 +0800
commit3794184074f9bf42555e2a12b95d154e8d2876a4 (patch)
treeadcf0a71335ff0adfd46d2e140d5a80b53089ae1
parent6f6efbb027ba098942c237cc508f032e8d82f28f (diff)
downloadfreebsd-ports-gnome-3794184074f9bf42555e2a12b95d154e8d2876a4.tar.gz
freebsd-ports-gnome-3794184074f9bf42555e2a12b95d154e8d2876a4.tar.zst
freebsd-ports-gnome-3794184074f9bf42555e2a12b95d154e8d2876a4.zip
Update to 0.4.0 pre20. This brings support for several more Nokia
models. Make Nokia 6210 default phone type. Unforbid: there are no known vulnerabilities for this version of gnokii. Avoid USE_AUTOCONF. Use sed instead of Perl for patching in port Makefile.
-rw-r--r--comms/gnokii/Makefile32
-rw-r--r--comms/gnokii/distinfo2
-rw-r--r--comms/gnokii/files/patch-Docs-Makefile34
-rw-r--r--comms/gnokii/files/patch-Makefile13
-rw-r--r--comms/gnokii/files/patch-Makefile.global.in6
-rw-r--r--comms/gnokii/files/patch-configure21
-rw-r--r--comms/gnokii/files/patch-configure.in10
-rw-r--r--comms/gnokii/files/patch-gnokiid-Makefile15
-rw-r--r--comms/gnokii/files/patch-gnokiirc30
-rw-r--r--comms/gnokii/pkg-message8
-rw-r--r--comms/gnokii/pkg-plist44
11 files changed, 118 insertions, 97 deletions
diff --git a/comms/gnokii/Makefile b/comms/gnokii/Makefile
index 9c44bc675f48..3e501b6f97f4 100644
--- a/comms/gnokii/Makefile
+++ b/comms/gnokii/Makefile
@@ -6,25 +6,24 @@
#
PORTNAME= gnokii
-PORTVERSION= 0.3.3
-PORTREVISION= 2
+PORTVERSION= 0.4.0.p20
PORTEPOCH= 1
CATEGORIES= comms
-MASTER_SITES= ftp://ftp.gnokii.org/pub/gnokii/ \
- ftp://urtica.linuxnews.pl/pub/people/pkot/gnokii/
+MASTER_SITES= ftp://ftp.gnokii.org/pub/gnokii/pre/ \
+ ftp://urtica.linuxnews.pl/pub/people/pkot/gnokii/ \
+ http://freesoftware.fsf.org/download/gnokii/
+DISTNAME= ${PORTNAME}-0.4.0pre20
MAINTAINER= anders@FreeBSD.org
-FORBIDDEN= "Contains security hole: http://www.gnokii.org/news.shtml"
-
LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext
USE_GMAKE= yes
-USE_AUTOCONF= yes
.if !defined(WITHOUT_X11)
USE_XPM= yes
USE_GTK= yes
.endif
+INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
@@ -36,6 +35,8 @@ PLIST_SUB+= X11='@comment '
.else
PLIST_SUB+= X11=''
.endif
+CONFIGURE_ENV+= MSGFMT="${LOCALBASE}/bin/msgfmt" \
+ XGETTEXT="${LOCALBASE}/bin/xgettext"
NO_PACKAGE= "Group needs to be created"
MAN1= gnokii.1 todologo.1
@@ -46,14 +47,19 @@ 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
+FIXPREFIX= Docs/man/gnokiid.8 Docs/DataCalls-QuickStart Docs/README \
+ common/cfgreader.c po/et.po po/sl.po
post-patch:
.for f in ${FIXPREFIX}
- ${PERL} -pi -e "s@/etc/gnokiirc@${PREFIX}/etc/gnokiirc@g" \
- ${WRKSRC}/${f}
+ @${SED} -e "s:/etc/gnokiirc:${PREFIX}/etc/gnokiirc:g" \
+ < ${WRKSRC}/${f} > ${WRKSRC}/${f}.post_sed
+ @${CP} ${WRKSRC}/${f}.post_sed ${WRKSRC}/${f}
.endfor
+ @${SED} -e "s:%%PTHREAD_LIBS%%:${PTHREAD_LIBS}:" \
+ -e "s:%%PTHREAD_CFLAGS%%:${PTHREAD_CFLAGS}:" \
+ < ${WRKSRC}/configure > ${WRKSRC}/configure.post_sed
+ @${CP} ${WRKSRC}/configure.post_sed ${WRKSRC}/configure
pre-install:
@${SH} ${SCRIPTDIR}/creategroup
@@ -61,7 +67,9 @@ pre-install:
post-install:
@(cd ${WRKSRC} && ${GMAKE} install-docs)
${INSTALL_DATA} ${WRKSRC}/Docs/sample/gnokiirc \
- ${PREFIX}/etc/gnokiirc.sample
+ ${PREFIX}/etc/gnokiirc.sample
+ ${INSTALL_DATA} ${WRKSRC}/common/libgnokii.so ${PREFIX}/lib/
+ @(cd ${PREFIX}/lib && ${LN} -s libgnokii.so libgnokii.so.0)
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/comms/gnokii/distinfo b/comms/gnokii/distinfo
index d30aaf32ee2c..7b2e224b850a 100644
--- a/comms/gnokii/distinfo
+++ b/comms/gnokii/distinfo
@@ -1 +1 @@
-MD5 (gnokii-0.3.3.tar.gz) = fae468985914c08f8dbb4f626038e48d
+MD5 (gnokii-0.4.0pre20.tar.gz) = 65eac9f3a4f5d7f050058eb76c121ae8
diff --git a/comms/gnokii/files/patch-Docs-Makefile b/comms/gnokii/files/patch-Docs-Makefile
index 16daa1b848a8..3f3fc47b8864 100644
--- a/comms/gnokii/files/patch-Docs-Makefile
+++ b/comms/gnokii/files/patch-Docs-Makefile
@@ -1,33 +1,25 @@
---- Docs/Makefile.orig Fri Sep 28 02:07:58 2001
-+++ Docs/Makefile Mon Oct 15 00:42:14 2001
-@@ -24,24 +24,26 @@
- packaging-howto \
- sample.gnokiirc
-
--GNOKII1_MAN = "man/gnokii.1 man/todologo.1"
--GNOKII8_MAN = "man/gnokiid.8 man/mgnokiidev.8"
-+GNOKII1_MAN = man/gnokii.1 man/todologo.1
-+GNOKII8_MAN = man/gnokiid.8 man/mgnokiidev.8
- XGNOKII_MAN = man/xgnokii.1x
-
- all:
+--- Docs/Makefile.orig Fri May 10 00:31:47 2002
++++ Docs/Makefile Wed May 22 03:09:44 2002
+@@ -32,19 +32,20 @@
@echo
install:
+ifndef NOPORTDOCS
- $(INSTALL) -d $(docdir)
+ $(INSTALL) -d $(DESTDIR)/$(docdir)
@for xxx in $(INSTALL_DOCS); do \
if [ -e $$xxx ]; then \
- $(INSTALL) -m 0444 $$xxx $(docdir)/$$xxx; \
+ $(INSTALL) -m 0444 $$xxx $(DESTDIR)/$(docdir)/$$xxx; \
fi; \
done
+endif
- $(INSTALL) $(GNOKII1_MAN) $(man1dir)
- $(INSTALL) $(GNOKII8_MAN) $(man8dir)
-- if [ "x$HAVE_XGNOKII" = xyes ]; then \
-- $(INSTALL) $(XGNOKII_MAN) $(xmandir) \
-+ if [ "x$(HAVE_XGNOKII)" = xyes ]; then \
-+ $(INSTALL) $(XGNOKII_MAN) $(xmandir)/xgnokii.1; \
+ $(INSTALL) -d $(DESTDIR)/$(man1dir)
+ $(INSTALL) -d $(DESTDIR)/$(man8dir)
+ $(INSTALL) $(GNOKII1_MAN) $(DESTDIR)/$(man1dir)
+ $(INSTALL) $(GNOKII8_MAN) $(DESTDIR)/$(man8dir)
+ if [ "x$(HAVE_XGNOKII)" = "xyes" ]; then \
+- $(INSTALL) -d $(DESTDIR)/$(xmandir); \
+- $(INSTALL) $(XGNOKII_MAN) $(DESTDIR)/$(xmandir); \
++ $(INSTALL) $(XGNOKII_MAN) $(DESTDIR)/$(xmandir)/xgnokii.1; \
fi
@echo "done"
diff --git a/comms/gnokii/files/patch-Makefile b/comms/gnokii/files/patch-Makefile
index d80074b3985a..b3dfa64bac67 100644
--- a/comms/gnokii/files/patch-Makefile
+++ b/comms/gnokii/files/patch-Makefile
@@ -1,15 +1,12 @@
---- Makefile.orig Fri Sep 28 02:07:58 2001
-+++ Makefile Mon Oct 15 02:07:01 2001
-@@ -153,8 +153,11 @@
- $(MAKE) -C $$dir install-suid; \
+--- Makefile.orig Wed May 22 02:17:56 2002
++++ Makefile Wed May 22 02:19:41 2002
+@@ -157,6 +157,9 @@
fi; \
done
+
+ @if [ "x$(USE_NLS)" = xyes ]; then \
+ $(MAKE) -C $(PO_DIR) install; \
+ fi
@if [ "$(GTK_LIBS)" ]; then \
-- @for dir in $(GTK_DIRS); do \
-+ for dir in $(GTK_DIRS); do \
+ for dir in $(GTK_DIRS); do \
if [ -e $$dir/Makefile ]; then \
- $(MAKE) -C $$dir install-suid; \
- fi; \
diff --git a/comms/gnokii/files/patch-Makefile.global.in b/comms/gnokii/files/patch-Makefile.global.in
index 7a095315b1bc..9b631e2de08c 100644
--- a/comms/gnokii/files/patch-Makefile.global.in
+++ b/comms/gnokii/files/patch-Makefile.global.in
@@ -1,12 +1,12 @@
---- Makefile.global.in.orig Fri Sep 28 02:07:58 2001
-+++ Makefile.global.in Sun Oct 14 23:57:52 2001
+--- Makefile.global.in.orig Fri May 10 00:31:47 2002
++++ Makefile.global.in Wed May 22 02:22:26 2002
@@ -22,13 +22,13 @@
bindir = @bindir@
sbindir = @sbindir@
-xbindir = ${prefix}/X11R6/bin/
+xbindir = ${prefix}/bin/
- libdir = @libdir@/${PACKAGE}
+ libdir = @libdir@
xgnokii_libdir = @XGNOKIIDIR@/@XPACKAGE@
man1dir = @mandir@/man1/
man8dir = @mandir@/man8/
diff --git a/comms/gnokii/files/patch-configure b/comms/gnokii/files/patch-configure
new file mode 100644
index 000000000000..2df59f844725
--- /dev/null
+++ b/comms/gnokii/files/patch-configure
@@ -0,0 +1,21 @@
+--- configure.orig Fri May 10 00:31:53 2002
++++ configure Wed May 22 02:04:02 2002
+@@ -661,7 +661,6 @@
+
+
+
+-CFLAGS="-O2 -Wall"
+ ALL_LINGUAS="cs de et fi nl sk pl it sl"
+
+ echo $ac_n "checking for include/config.h.in""... $ac_c" 1>&6
+@@ -1970,8 +1969,8 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+
+- PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
+- PTHREAD_LIBS="-pthread"
++ PTHREAD_CFLAGS="$PTHREAD_CFLAGS %%PTHREAD_CFLAGS%%"
++ PTHREAD_LIBS="%%PTHREAD_LIBS%%"
+ else
+ echo "$ac_t""no" 1>&6
+ fi
diff --git a/comms/gnokii/files/patch-configure.in b/comms/gnokii/files/patch-configure.in
deleted file mode 100644
index 7b0186e12b97..000000000000
--- a/comms/gnokii/files/patch-configure.in
+++ /dev/null
@@ -1,10 +0,0 @@
---- configure.in.orig Sun Oct 14 23:38:48 2001
-+++ configure.in Sun Oct 14 23:38:58 2001
-@@ -15,7 +15,6 @@
- AC_PREFIX_DEFAULT("/usr/local")
-
- dnl ======================== Default setting
--CFLAGS="-O2 -Wall"
- ALL_LINGUAS="cs de et fi nl sk pl it sl"
-
- dnl ======================== Checks for programs.
diff --git a/comms/gnokii/files/patch-gnokiid-Makefile b/comms/gnokii/files/patch-gnokiid-Makefile
deleted file mode 100644
index 7d18607fd783..000000000000
--- a/comms/gnokii/files/patch-gnokiid-Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
---- gnokiid/Makefile.orig Fri Sep 28 02:07:58 2001
-+++ gnokiid/Makefile Mon Oct 15 01:48:39 2001
-@@ -37,9 +37,9 @@
- @echo "done"
-
- install-suid: all
-- @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \
-- /usr/sbin/groupadd gnokii; \
-- fi
-+ @if (/usr/sbin/pw groupshow gnokii >/dev/null 2>&1); \
-+ then echo "Group gnokii exists. Fine.";\
-+ else /usr/sbin/pw groupadd gnokii; fi
- $(INSTALL) -d $(sbindir)
- $(INSTALL) -o root -g gnokii -m 4750 gnokiid $(sbindir)
- @echo "done"
diff --git a/comms/gnokii/files/patch-gnokiirc b/comms/gnokii/files/patch-gnokiirc
index 95967271e571..f11b412b40f3 100644
--- a/comms/gnokii/files/patch-gnokiirc
+++ b/comms/gnokii/files/patch-gnokiirc
@@ -1,6 +1,6 @@
---- Docs/sample/gnokiirc.orig Thu May 3 00:55:27 2001
-+++ Docs/sample/gnokiirc Thu May 3 00:55:36 2001
-@@ -5,7 +5,7 @@
+--- Docs/sample/gnokiirc.orig Fri May 10 00:31:47 2002
++++ Docs/sample/gnokiirc Thu May 23 02:07:50 2002
+@@ -5,10 +5,10 @@
[global]
# Set port to the physical serial port used to connect to your phone
@@ -8,4 +8,26 @@
+port = /dev/cuaa0
# Set model to the model number of your phone
- model = 6110
+-model = 6110
++model = 6210
+
+ # Initlength controls the number of characters sent to the
+ # phone during initialisation. You can either set it to
+@@ -38,7 +38,7 @@
+ # port software (eg. minicom). If you have wrong permissions for the
+ # directory, a warning will be generated. If you don't want a lockfile, set
+ # it to 'no'.
+-use_locking = yes
++use_locking = no
+
+ # Baudrate to use on serial port connections.
+ # Currently used only by models AT and BIP/CIMD. Defaults to 19200.
+@@ -58,7 +58,7 @@
+
+ # If defined (not commented out by '#') it will quit Gnokii anytime
+ # when DCD line will drop.
+-require_dcd = 1
++#require_dcd = 1
+
+ # Run the specified script(s) right after opening and initializing the device
+ # and before any communucation (right before closing for disconnect_script).
diff --git a/comms/gnokii/pkg-message b/comms/gnokii/pkg-message
index cab227ca86fd..e25b4034603e 100644
--- a/comms/gnokii/pkg-message
+++ b/comms/gnokii/pkg-message
@@ -1,6 +1,10 @@
================================================================================
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
+configured for Nokia 6210 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.
+gnokiirc.sample to ${PREFIX}/etc/gnokiirc or $HOME/.gnokiirc for gnokii/
+xgnokii to use it.
+
+Add the users that shall be authorized to run gnokii programs to the
+gnokii group.
================================================================================
diff --git a/comms/gnokii/pkg-plist b/comms/gnokii/pkg-plist
index 74324c86f1ca..034ff0146926 100644
--- a/comms/gnokii/pkg-plist
+++ b/comms/gnokii/pkg-plist
@@ -2,6 +2,8 @@ bin/gnokii
bin/todologo
%%X11%%bin/xgnokii
etc/gnokiirc.sample
+lib/libgnokii.so
+lib/libgnokii.so.0
sbin/gnokiid
sbin/mgnokiidev
%%PORTDOCS%%share/doc/gnokii/CREDITS
@@ -41,14 +43,14 @@ share/locale/sl/LC_MESSAGES/gnokii.mo
%%X11%%share/xgnokii/help/en_US/netmon/faq_net4.html
%%X11%%share/xgnokii/help/en_US/netmon/faq_net5.html
%%X11%%share/xgnokii/help/en_US/netmon/faq_net6.html
-%%X11%%share/xgnokii/help/en_US/netmon/net_mon1.gif
-%%X11%%share/xgnokii/help/en_US/netmon/net_mon2.gif
-%%X11%%share/xgnokii/help/en_US/netmon/net_mon3.gif
-%%X11%%share/xgnokii/help/en_US/netmon/nm2_5110.gif
-%%X11%%share/xgnokii/help/en_US/netmon/nm_3210.gif
-%%X11%%share/xgnokii/help/en_US/netmon/nm_5110.gif
-%%X11%%share/xgnokii/help/en_US/netmon/nm_9110.gif
-%%X11%%share/xgnokii/help/en_US/netmon/tip.gif
+%%X11%%share/xgnokii/help/en_US/netmon/net_mon1.png
+%%X11%%share/xgnokii/help/en_US/netmon/net_mon2.png
+%%X11%%share/xgnokii/help/en_US/netmon/net_mon3.png
+%%X11%%share/xgnokii/help/en_US/netmon/nm2_5110.png
+%%X11%%share/xgnokii/help/en_US/netmon/nm_3210.png
+%%X11%%share/xgnokii/help/en_US/netmon/nm_5110.png
+%%X11%%share/xgnokii/help/en_US/netmon/nm_9110.png
+%%X11%%share/xgnokii/help/en_US/netmon/tip.png
%%X11%%share/xgnokii/help/en_US/sample/gnokiirc
%%X11%%share/xgnokii/help/en_US/styl.css
%%X11%%share/xgnokii/help/en_US/windows/calendar/index.html
@@ -64,11 +66,11 @@ share/locale/sl/LC_MESSAGES/gnokii.mo
%%X11%%share/xgnokii/help/pl_PL/dtmf.html
%%X11%%share/xgnokii/help/pl_PL/index.html
%%X11%%share/xgnokii/help/pl_PL/netmon.html
-%%X11%%share/xgnokii/help/pl_PL/netmon/dir0.gif
-%%X11%%share/xgnokii/help/pl_PL/netmon/dir1.gif
+%%X11%%share/xgnokii/help/pl_PL/netmon/dir0.png
+%%X11%%share/xgnokii/help/pl_PL/netmon/dir1.png
%%X11%%share/xgnokii/help/pl_PL/netmon/glowna.htm
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/f2mbus.gif
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/f2mbus2.gif
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/f2mbus.png
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/f2mbus2.png
%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/faq_loga.htm
%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/faq_net0.htm
%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/faq_net1.htm
@@ -80,16 +82,16 @@ share/locale/sl/LC_MESSAGES/gnokii.mo
%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/faqkable.htm
%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/firmware.htm
%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/index.htm
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/net_mon1.gif
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/net_mon2.gif
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/net_mon3.gif
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/net_mon1.png
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/net_mon2.png
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/net_mon3.png
%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/net_spis.htm
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/nm2_5110.gif
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/nm_3210.gif
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/nm_5110.gif
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/nm_9110.gif
-%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/tip.gif
-%%X11%%share/xgnokii/help/pl_PL/netmon/htm.gif
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/nm2_5110.png
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/nm_3210.png
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/nm_5110.png
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/nm_9110.png
+%%X11%%share/xgnokii/help/pl_PL/netmon/gsm/tip.png
+%%X11%%share/xgnokii/help/pl_PL/netmon/htm.png
%%X11%%share/xgnokii/help/pl_PL/netmon/index.htm
%%X11%%share/xgnokii/help/pl_PL/netmon/konw.js
%%X11%%share/xgnokii/help/pl_PL/netmon/spis.htm