head	1.8;
access;
symbols
	RELEASE_7_3_0:1.7
	RELEASE_8_0_0:1.7
	RELEASE_7_2_0:1.7
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1;
locks; strict;
comment	@# @;


1.8
date	2010.04.07.16.45.37;	author amdmi3;	state dead;
branches;
next	1.7;

1.7
date	2008.11.09.22.53.31;	author miwi;	state Exp;
branches;
next	1.6;

1.6
date	2008.09.24.14.47.07;	author miwi;	state Exp;
branches;
next	1.5;

1.5
date	2008.08.03.16.11.56;	author miwi;	state Exp;
branches;
next	1.4;

1.4
date	2008.04.14.03.57.42;	author clsung;	state Exp;
branches;
next	1.3;

1.3
date	2008.03.14.22.25.40;	author miwi;	state Exp;
branches;
next	1.2;

1.2
date	2007.08.04.11.41.17;	author gabor;	state Exp;
branches;
next	1.1;

1.1
date	2006.06.05.10.09.41;	author itetcu;	state Exp;
branches;
next	;


desc
@@


1.8
log
@- Remove nmap-i18n-man - security/nmap now comes with translated manual pages

PR:		145439
Submitted by:	Daniel Roethlisberger <daniel@@roe.ch> (maintainer)
@
text
@# Ports collection makefile for:  nmap-i18n-man
# Date created:			  2006-02-19
# Whom:				  Daniel Roethlisberger <daniel@@roe.ch>
#
# $FreeBSD: ports/security/nmap-i18n-man/Makefile,v 1.7 2008/11/09 22:53:31 miwi Exp $
#

PORTNAME=	nmap-i18n-man
PORTVERSION=	4.76.20081109
CATEGORIES=	security ipv6
MASTER_SITES=	http://nmap.org/data/man-xlate/ \
		http://mirror.roe.ch/dist/${PORTNAME}/${PORTVERSION}/
DISTFILES=	${LANG_MAP:C/^/nmap-/:C/=[^=]*$/.1/}	# OPTIONS based
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}

MAINTAINER=	daniel@@roe.ch
COMMENT=	Translated manual pages for nmap

BUILD_DEPENDS=	iconv:${PORTSDIR}/converters/libiconv

MAN1=		nmap.1
MANLANG=	${LANG_MAP:C/^[^=]*=//}			# OPTIONS based

EXTRACT_CMD=	${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS=	${WRKDIR}
NO_WRKSUBDIR=	yes

OPTIONS=	MAN_ES "Spanish" On \
		MAN_FR "French" On \
		MAN_HR "Croatian" On \
		MAN_HU "Hungarian" On \
		MAN_IT "Italian" On \
		MAN_JP "Japanese" On \
		MAN_PL "Polish" On \
		MAN_PT_BR "Portuguese (Brazil)" On \
		MAN_PT_PT "Portuguese (Portugal)" On \
		MAN_RO "Romanian" On \
		MAN_RU "Russian" On \
		MAN_SK "Slovak" On \
		MAN_ZH "Chinese" On

.include <bsd.port.pre.mk>

LANG_MAP=
.if !defined(WITHOUT_MAN_ES)
LANG_MAP+=	es=es.ISO8859-1
.endif
.if !defined(WITHOUT_MAN_FR)
LANG_MAP+=	fr=fr.ISO8859-1
.endif
.if !defined(WITHOUT_MAN_HR)
LANG_MAP+=	hr=hr.ISO8859-2
.endif
.if !defined(WITHOUT_MAN_HU)
LANG_MAP+=	hu=hu.ISO8859-2
.endif
.if !defined(WITHOUT_MAN_IT)
LANG_MAP+=	it=it.ISO8859-1
.endif
.if !defined(WITHOUT_MAN_JP)
LANG_MAP+=	jp=jp.eucJP
.endif
.if !defined(WITHOUT_MAN_PL)
LANG_MAP+=	pl=pl.ISO8859-2
.endif
.if !defined(WITHOUT_MAN_PT_BR)
LANG_MAP+=	pt-br=pt_BR.ISO8859-1
.endif
.if !defined(WITHOUT_MAN_PT_PT)
LANG_MAP+=	pt-pt=pt.ISO8859-1
.endif
.if !defined(WITHOUT_MAN_RO)
LANG_MAP+=	ro=ro.ISO8859-2
.endif
.if !defined(WITHOUT_MAN_RU)
LANG_MAP+=	ru=ru.KOI8-R
.endif
.if !defined(WITHOUT_MAN_SK)
LANG_MAP+=	sk=sk.ISO8859-2
.endif
.if !defined(WITHOUT_MAN_ZH)
LANG_MAP+=	zh=zh.Big5
.endif

ICONV?=${LOCALBASE}/bin/iconv

do-build:
	@@for token in ${LANG_MAP}; do \
		lang="`expr $${token} : '\([^=]*\)'`"; \
		locale="`expr $${token} : '.*=\([^=]*\)'`"; \
		charset="`expr $${locale} : '[^.]*\.\([^.]*\)'`"; \
		${ECHO_CMD} Converting nmap-$${lang}.1 from UTF-8 to $${charset}; \
		${ICONV} -c -f UTF-8 -t $${charset} ${WRKSRC}/nmap-$${lang}.1 \
			> ${WRKSRC}/nmap-$${lang}.1.$${charset} || true; \
	done

do-install:
	@@for token in ${LANG_MAP}; do \
		lang="`expr $${token} : '\([^=]*\)'`"; \
		locale="`expr $${token} : '.*=\([^=]*\)'`"; \
		charset="`expr $${locale} : '[^.]*\.\([^.]*\)'`"; \
		${MKDIR} ${MAN1PREFIX}/man/$${locale}/man1; \
		${ECHO_CMD} Installing man/$${locale}/man1/nmap.1; \
		${INSTALL_MAN} ${WRKSRC}/nmap-$${lang}.1.$${charset} \
			${MAN1PREFIX}/man/$${locale}/man1/nmap.1; \
	done

.include <bsd.port.post.mk>
@


1.7
log
@- Update to 4.76.20081109 adding Russian

PR:		128724
Submitted by:	Daniel Roethlisberger <daniel@@roe.ch> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
log
@- Update to 4.76.20080914

PR:		127381
Submitted by:	Daniel Roethlisberger <daniel@@roe.ch> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	4.76.20080914
d39 1
d76 3
@


1.5
log
@- Update to 4.86.20080803

PR:		126213
Submitted by:	Daniel Roethlisberger <daniel@@roe.ch> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	4.68.20080803
d32 1
d54 3
@


1.4
log
@- Update the translated manual pages to their latest versions
  and add Italian to the pkg-descr.

PR:		ports/122730
Submitted by:	maintainer (Daniel Roethlisberge)
@
text
@d9 1
a9 1
PORTVERSION=	4.60.20080413
@


1.3
log
@- Update to 4.53.20080303 and make fetchable again

PR:		121335
Submitted by:	Daniel Roethlisberger <daniel@@roe.ch> (maintainer)
Reported by: 	pointyhat
@
text
@d9 1
a9 1
PORTVERSION=	4.53.20080303
@


1.2
log
@- Remove the DESTDIR modifications from individual ports as we have a new,
  fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
@
text
@d9 1
a9 1
PORTVERSION=	4.01.20060302
d11 2
a12 2
MASTER_SITES=	http://www.insecure.org/nmap/data/man-xlate/ \
		http://home.tiscalinet.ch/~roe/distfiles/${DIST_SUBDIR}/
d32 1
d53 3
@


1.1
log
@Translated manual pages for security/nmap.  Current list of
translations includes Spanish, French, Croatian, Japanese,
Polish, Portuguese, Romanian, Slovak and Chinese.

WWW: http://www.insecure.org/nmap/

PR:		ports/93598
Submitted by:	Daniel Roethlisberger <daniel@@roe.ch>
Approved by:	lawrance (mentor, implicit)
@
text
@d91 1
a91 1
		${MKDIR} ${DESTDIR}${MAN1PREFIX}/man/$${locale}/man1; \
d94 1
a94 1
			${DESTDIR}${MAN1PREFIX}/man/$${locale}/man1/nmap.1; \
@

