ports/83830: misc/countrycodes - A ISO 3166 country code finder
Emanuel Haupt
ehaupt at critical.ch
Thu Jul 21 07:30:12 UTC 2005
>Number: 83830
>Category: ports
>Synopsis: misc/countrycodes - A ISO 3166 country code finder
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 21 07:30:11 GMT 2005
>Closed-Date:
>Last-Modified:
>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 at 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 at 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 at 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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list