From owner-freebsd-ports-bugs Sun Jan 26 9:50: 9 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1886737B401 for ; Sun, 26 Jan 2003 09:50:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8931C43F1E for ; Sun, 26 Jan 2003 09:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0QHo2NS063326 for ; Sun, 26 Jan 2003 09:50:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0QHo2VF063325; Sun, 26 Jan 2003 09:50:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE73C37B401; Sun, 26 Jan 2003 09:48:37 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95A0043E4A; Sun, 26 Jan 2003 09:48:31 -0800 (PST) (envelope-from corecode@corecode.ath.cx) Received: from fwd09.sul.t-online.de by mailout03.sul.t-online.com with smtp id 18cqtS-0000uR-0B; Sun, 26 Jan 2003 18:48:30 +0100 Received: from pride.uni.stoert.net (320050403952-0001@[217.82.62.127]) by fmrl09.sul.t-online.com with esmtp id 18cqtJ-22YtcWC; Sun, 26 Jan 2003 18:48:21 +0100 Received: from terrorfish.uni.stoert.net (terrorfish.uni.stoert.net [10.150.180.178]) by pride.uni.stoert.net (Postfix) with ESMTP id 550A612CCE8; Sun, 26 Jan 2003 18:48:20 +0100 (CET) Received: from terrorfish.uni.stoert.net (localhost [127.0.0.1]) by terrorfish.uni.stoert.net (8.12.6/8.12.6) with ESMTP id h0QHn5SL021882; Sun, 26 Jan 2003 18:49:05 +0100 (CET) (envelope-from corecode@terrorfish.uni.stoert.net) Received: (from corecode@localhost) by terrorfish.uni.stoert.net (8.12.6/8.12.6/Submit) id h0QHn5bW021881; Sun, 26 Jan 2003 18:49:05 +0100 (CET) (envelope-from corecode) Message-Id: <200301261749.h0QHn5bW021881@terrorfish.uni.stoert.net> Date: Sun, 26 Jan 2003 18:49:05 +0100 (CET) From: "Simon 'corecode' Schubert" Reply-To: "Simon 'corecode' Schubert" To: FreeBSD-gnats-submit@FreeBSD.org Cc: anders@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/47516: unbreak comms/gnokii for -current Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47516 >Category: ports >Synopsis: unbreak comms/gnokii for -current >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Jan 26 09:50:02 PST 2003 >Closed-Date: >Last-Modified: >Originator: Simon 'corecode' Schubert >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD terrorfish.uni.stoert.net 5.0-CURRENT FreeBSD 5.0-CURRENT #43: Thu Jan 23 17:46:13 CET 2003 corecode@terrorfish.uni.stoert.net:/usr/obj/athlon/usr/src/sys/TERRORFISH i386 >Description: o unbreak build on -current o enable package building via o implement pkg-install o port automagically removes group gnokii if empty o GID is allocated dynamically, no need to reserve one thus: removed file: scripts/creategroup added file: pkg-install >How-To-Repeat: >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/comms/gnokii/Makefile,v retrieving revision 1.17 diff -u -r1.17 Makefile --- Makefile 5 Nov 2002 21:26:49 -0000 1.17 +++ Makefile 26 Jan 2003 17:40:26 -0000 @@ -7,17 +7,19 @@ PORTNAME= gnokii PORTVERSION= 0.4.3 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= comms MASTER_SITES= ftp://ftp.nuug.no/pub/anders/distfiles/ \ - http://freesoftware.fsf.org/download/gnokii/ -# ftp://ftp.gnokii.org/pub/gnokii/ + http://freesoftware.fsf.org/download/gnokii/ \ + ftp://ftp.gnokii.org/pub/gnokii/ MAINTAINER= anders@FreeBSD.org LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext USE_GMAKE= yes +USE_REINPLACE= yes .if !defined(WITHOUT_X11) USE_XPM= yes USE_GNOMENG= yes @@ -38,33 +40,31 @@ CONFIGURE_ENV+= MSGFMT="${LOCALBASE}/bin/msgfmt" \ XGETTEXT="${LOCALBASE}/bin/xgettext" -NO_PACKAGE= "Group needs to be created" MAN1= gnokii.1 todologo.1 .if !defined(WITHOUT_X11) MAN1+= xgnokii.1 .endif MAN8= gnokiid.8 mgnokiidev.8 -INSTALL_TARGET= install-suid +PKGDEINSTALL= ${PKGINSTALL} 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} - @${SED} -e "s:/etc/gnokiirc:${PREFIX}/etc/gnokiirc:g" \ - < ${WRKSRC}/${f} > ${WRKSRC}/${f}.post_sed - @${CP} ${WRKSRC}/${f}.post_sed ${WRKSRC}/${f} + @${REINPLACE_CMD} -e "s:/etc/gnokiirc:${PREFIX}/etc/gnokiirc:g" ${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 + @${REINPLACE_CMD} -e "s:%%PTHREAD_LIBS%%:${PTHREAD_LIBS}:; \ + s:%%PTHREAD_CFLAGS%%:${PTHREAD_CFLAGS}:" ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's,^\(#define[[:space:]]*_XOPEN_SOURCE.*\),/* \1 */,' \ + ${WRKSRC}/common/data/virtmodem.c ${WRKSRC}/utils/mgnokiidev.c pre-install: - @${SH} ${SCRIPTDIR}/creategroup + @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: + @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @(cd ${WRKSRC} && ${GMAKE} install-docs) ${INSTALL_DATA} ${WRKSRC}/Docs/sample/gnokiirc \ ${PREFIX}/etc/gnokiirc.sample Index: pkg-install =================================================================== RCS file: pkg-install diff -N pkg-install --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg-install 26 Jan 2003 17:45:21 -0000 @@ -0,0 +1,37 @@ +#!/bin/sh + +PATH=/bin:/usr/bin:/usr/sbin + +GROUP=gnokii + +SUIDBINS="${PKG_PREFIX}/sbin/gnokiid ${PKG_PREFIX}/sbin/mgnokiidev" +BINS="${PKG_PREFIX}/bin/gnokii ${PKG_PREFIX}/bin/xgnokii ${SUIDBINS}" + +case "$2" in +"PRE-INSTALL") + if pw group show "${GROUP}" 2>/dev/null; then + echo "You already have a group \"${GROUP}\", so I will use it." + else + if pw groupadd ${GROUP}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi + fi + ;; + +"POST-INSTALL") + chgrp $GROUP $BINS + chmod 750 ${BINS} + chmod u+s ${SUIDBINS} + ;; + +"DEINSTALL") + if [ -z "`pw groupshow $GROUP 2>&1 | sed -E -e 's/^([^:]+:){3}(.*)$/\2/'`" ]; then + echo "Removing empty group \"$GROUP\"." + pw groupdel $GROUP + fi + ;; + +esac Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/comms/gnokii/pkg-plist,v retrieving revision 1.4 diff -u -r1.4 pkg-plist --- pkg-plist 23 May 2002 01:02:28 -0000 1.4 +++ pkg-plist 26 Jan 2003 17:10:12 -0000 @@ -113,6 +113,14 @@ %%X11%%share/xgnokii/xpm/Preview_6210.xpm %%X11%%share/xgnokii/xpm/Preview_6250.xpm %%X11%%share/xgnokii/xpm/Preview_7110.xpm +%%X11%%@exec mkdir %D/share/xgnokii/help/en_US/calendar +%%X11%%@exec mkdir %D/share/xgnokii/help/en_US/contacts +%%X11%%@exec mkdir %D/share/xgnokii/help/en_US/dtmf +%%X11%%@exec mkdir %D/share/xgnokii/help/en_US/main +%%X11%%@exec mkdir %D/share/xgnokii/help/en_US/netmon/gsm +%%X11%%@exec mkdir %D/share/xgnokii/help/en_US/sms +%%X11%%@exec mkdir %D/share/xgnokii/help/en_US/speeddial +%%X11%%@exec mkdir %D/share/xgnokii/help/en_US/xkeyb %%X11%%@dirrm share/xgnokii/help/en_US/cables %%X11%%@dirrm share/xgnokii/help/en_US/calendar %%X11%%@dirrm share/xgnokii/help/en_US/contacts Index: scripts/creategroup =================================================================== RCS file: scripts/creategroup diff -N scripts/creategroup --- scripts/creategroup 3 May 2001 01:13:00 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,16 +0,0 @@ -#!/bin/sh - -PATH=/bin:/usr/sbin - -GROUP=gnokii - -if pw group show "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." -else - if pw groupadd ${GROUP}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi -fi >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message