From ehaupt@mx.critical.ch  Thu Jul 21 07:21:05 2005
Return-Path: <ehaupt@mx.critical.ch>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CE70C16A420
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Jul 2005 07:21:05 +0000 (GMT)
	(envelope-from ehaupt@mx.critical.ch)
Received: from mx.critical.ch (admin.critical.ch [67.18.86.178])
	by mx1.FreeBSD.org (Postfix) with SMTP id 5085C43D5F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Jul 2005 07:21:00 +0000 (GMT)
	(envelope-from ehaupt@mx.critical.ch)
Received: (qmail 46090 invoked by uid 1000); 21 Jul 2005 07:20:59 -0000
Message-Id: <20050721072059.46089.qmail@mx.critical.ch>
Date: 21 Jul 2005 07:20:59 -0000
From: Emanuel Haupt <ehaupt@critical.ch>
Reply-To: Emanuel Haupt <ehaupt@critical.ch>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: misc/countrycodes - A ISO 3166 country code finder 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         83830
>Category:       ports
>Synopsis:       new port misc/countrycodes - A ISO 3166 country code finder
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jylefort
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 21 07:30:11 GMT 2005
>Closed-Date:    Sun Jul 24 19:43:26 GMT 2005
>Last-Modified:  Sun Jul 24 19:43:26 GMT 2005
>Originator:     Emanuel Haupt
>Release:        FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD admin.critical.ch 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #0: Thu Jun 30 09:36:40 CEST 2005 root@admin.critical.ch:/usr/obj/usr/src-release/src/sys/GENERIC i386


	
>Description:
misc/countrycodes - A ISO 3166 country code finder

It is an ISO 3166 country code finder. It is mainly used to know from what
country a domain name belongs. It also allows searching by 2 or 3 letters codes,
country number and country name.


>How-To-Repeat:
	
>Fix:

	



--- countrycodes.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	countrycodes
#	countrycodes/Makefile
#	countrycodes/pkg-descr
#	countrycodes/files
#	countrycodes/files/patch-Makefile
#	countrycodes/distinfo
#
echo c - countrycodes
mkdir -p countrycodes > /dev/null 2>&1
echo x - countrycodes/Makefile
sed 's/^X//' >countrycodes/Makefile << 'END-of-countrycodes/Makefile'
X# New ports collection makefile for:	countrycodes
X# Date created:				6 Jul 2005
X# Whom:					Emanuel Haupt <ehaupt@critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	countrycodes
XPORTVERSION=	1.0.5
XCATEGORIES=	misc
XMASTER_SITES=	http://www.grigna.com/diego/linux/countrycodes/
X
XMAINTAINER=	ehaupt@critical.ch
XCOMMENT=	A ISO 3166 country code finder
X
XUSE_GMAKE=	yes
X
XWRKSRC=		${WRKDIR}/${DISTNAME}/src
XPLIST_FILES=	bin/iso3166
XPORTDOCS=	README
XMAN1=		iso3166.1
XCMDNAME=	iso3166
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${CMDNAME} ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/${CMDNAME}.1 ${PREFIX}/man/man1
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${PORTDOCS} ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-countrycodes/Makefile
echo x - countrycodes/pkg-descr
sed 's/^X//' >countrycodes/pkg-descr << 'END-of-countrycodes/pkg-descr'
XIt is an ISO 3166 country code finder. It is mainly used to know from what
Xcountry a domain name belongs. It also allows searching by 2 or 3 letters codes,
Xcountry number and country name.
X
XWWW: http://www.grigna.com/diego/linux/countrycodes/
X
X- ehaupt
Xehaupt@critical.ch
END-of-countrycodes/pkg-descr
echo c - countrycodes/files
mkdir -p countrycodes/files > /dev/null 2>&1
echo x - countrycodes/files/patch-Makefile
sed 's/^X//' >countrycodes/files/patch-Makefile << 'END-of-countrycodes/files/patch-Makefile'
X--- Makefile.orig	Sat Feb  1 16:56:08 2003
X+++ Makefile	Wed Jul  6 17:38:58 2005
X@@ -26,13 +26,13 @@
X LOGDIRMODE=700
X 
X # Compiler to use
X-CC=gcc
X+CC?=gcc
X 
X # Compiler warnings
X-WARNINGS= -pedantic -Wall
X+#WARNINGS= -pedantic -Wall
X 
X # Compiler flags
X-CCOPTS = -O2 -fomit-frame-pointer
X+CCOPTS = ${CFLAGS}
X 
X # The makefile standards document I read says that I have to put it here...
X SHELL = /bin/sh
X@@ -58,11 +58,14 @@
X 
X PROGRAM = iso3166
X 
X-all: $(PROGRAM)
X+all: $(PROGRAM) man
X 
X $(PROGRAM): $(ISO3166OBJ)
X 	$(CC) $(CCOPTS) $(ISO3166OBJ) -o $@
X 
X+man:
X+	@$(SEDBIN) $(SEDCMDS) ${docdir}/iso3166.1.in > iso3166.1
X+
X clean:
X 	rm -f $(ISO3166OBJ) core defines.h $(PROGRAM)
X 
X@@ -72,7 +75,6 @@
X install:
X 	$(INSTALL) -g root -m $(BINMODE) -o root -s ${srcdir}/$(PROGRAM) ${bindir}
X 	@echo "Installing man page..."
X-	@$(SEDBIN) $(SEDCMDS) ${docdir}/iso3166.1.in > ${mandir}/iso3166.1
X 	@chown 0.0 ${mandir}/iso3166.1
X 	@echo
X 
END-of-countrycodes/files/patch-Makefile
echo x - countrycodes/distinfo
sed 's/^X//' >countrycodes/distinfo << 'END-of-countrycodes/distinfo'
XMD5 (countrycodes-1.0.5.tar.gz) = 9decb29be88236791fcb3f036095c018
XSIZE (countrycodes-1.0.5.tar.gz) = 18621
END-of-countrycodes/distinfo
exit
--- countrycodes.shar ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->jylefort 
Responsible-Changed-By: jylefort 
Responsible-Changed-When: Sun Jul 24 02:44:51 GMT 2005 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83830 
State-Changed-From-To: open->closed 
State-Changed-By: jylefort 
State-Changed-When: Sun Jul 24 19:43:16 GMT 2005 
State-Changed-Why:  
Committed with a few modifications, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83830 
>Unformatted:
