head	1.15;
access;
symbols
	RELEASE_5_3_0:1.12
	RELEASE_4_10_0:1.11
	RELEASE_5_2_1:1.7
	RELEASE_5_2_0:1.7
	RELEASE_4_9_0:1.6
	RELEASE_5_1_0:1.6
	RELEASE_4_8_0:1.6
	RELEASE_5_0_0:1.5
	RELEASE_4_7_0:1.5
	RELEASE_4_6_2:1.5
	RELEASE_4_6_1:1.5
	RELEASE_4_6_0:1.5
	RELEASE_5_0_DP1:1.5
	RELEASE_4_5_0:1.5
	RELEASE_4_4_0:1.5
	RELEASE_4_3_0:1.5
	RELEASE_4_2_0:1.3;
locks; strict;
comment	@# @;


1.15
date	2004.11.27.07.35.52;	author linimon;	state dead;
branches;
next	1.14;

1.14
date	2004.11.24.01.53.13;	author sem;	state Exp;
branches;
next	1.13;

1.13
date	2004.10.21.20.38.58;	author nectar;	state Exp;
branches;
next	1.12;

1.12
date	2004.07.02.08.26.17;	author kris;	state Exp;
branches;
next	1.11;

1.11
date	2004.04.10.17.26.29;	author trevor;	state Exp;
branches;
next	1.10;

1.10
date	2004.02.04.05.18.54;	author marcus;	state Exp;
branches;
next	1.9;

1.9
date	2004.01.05.01.35.39;	author trevor;	state Exp;
branches;
next	1.8;

1.8
date	2003.12.06.21.49.34;	author linimon;	state Exp;
branches;
next	1.7;

1.7
date	2003.11.03.01.19.13;	author kris;	state Exp;
branches;
next	1.6;

1.6
date	2003.02.26.14.23.40;	author foxfair;	state Exp;
branches;
next	1.5;

1.5
date	2001.03.20.20.27.57;	author obrien;	state Exp;
branches;
next	1.4;

1.4
date	2000.11.30.13.49.15;	author keith;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.06.12.12.38;	author keith;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.06.10.41.51;	author keith;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.02.03.27.14;	author foxfair;	state Exp;
branches;
next	;


desc
@@


1.15
log
@As previously announced, remove chinese/cle_base.  It has been broken
for more than 1 month with a security problem and no sign of a fix.
It has no maintainer.
@
text
@# New ports collection makefile for:	zh-cle_base
# Date created:		Nov 17, 1999
# Whom:			keith@@FreeBSD.org
#
# $FreeBSD: ports/chinese/cle_base/Makefile,v 1.14 2004/11/24 01:53:13 sem Exp $
#

PORTNAME=		cle_base
PORTVERSION=		0.9p1
PORTREVISION=	1
CATEGORIES=		chinese emulators linux
MASTER_SITES=		\
	ftp://cle.linux.org.tw/pub/CLE/stable/v0.9p1/i386/RedHat/RPMS/ \
	ftp://freebsd.sinica.edu.tw/pub/keith/zh-rpm/
DISTFILES=		${RPM_SET1} ${RPM_LDCONFIG} ${RPM_BASH2} ${RPM_SET2} \
			${RPM_RPM} ${RPM_SET3} ${RPM_L10N}
EXTRACT_ONLY=

MAINTAINER=		ports@@FreeBSD.org
COMMENT=		The base set of CLE packages needed in Linux mode, support both GB & Big5

BROKEN=			"Install fails when linprocfs is mounted"
DEPRECATED=		http://vuxml.freebsd.org/ef253f8b-0727-11d9-b45d-000c41e2cdad.html (security)
EXPIRATION_DATE=	2004-11-21

RUN_DEPENDS=		rpm:${PORTSDIR}/archivers/rpm

CONFLICTS=		linux_base-*
ONLY_FOR_ARCHS=		i386
DIST_SUBDIR=		zh-rpm
PREFIX=			${LINUXBASE}
NO_BUILD=		yes
NO_FILTER_SHLIBS=	yes
NO_MTREE=		yes
PKGINSTALL=		${WRKDIR}/pkg-install

.include <bsd.port.pre.mk>

LIBC5_COMPAT=		ld.so-1.9.5-13.i386.rpm libc-5.3.12-31.i386.rpm
RPM_BINUTILS=		binutils-2.9.5.0.22-6.i386.rpm
RPM_GLIB=		glib-1.2.6-3.i386.rpm
RPM_GLIBC=		glibc-2.1.3-21.i386.rpm
RPM_LDCONFIG=		ldconfig-1.9.5-16.i386.rpm
RPM_RPM=		rpm-3.0.5-9.6x.i386.rpm
RPM_X_LIBS=		XFree86-libs-3.3.6-24CLE.i386.rpm

#
# The file files/base-list lists all rpms that are installed
# by a minimal RedHat installation versus all rpms installed
# by this port.
#
RPM_SET1=		setup-2.1.8-1.noarch.rpm \
			filesystem-1.3.5-1.noarch.rpm \
			basesystem-6.0-4.noarch.rpm
RPM_SET2=		${RPM_GLIBC} \
			termcap-10.2.7-9.noarch.rpm \
			libtermcap-2.0.8-20.i386.rpm \
			bash-2.04-1.i386.rpm \
			ncurses-5.0-11.i386.rpm \
			zlib-1.1.3-6.i386.rpm \
			info-4.0-5.i386.rpm \
			fileutils-4.0-21.i386.rpm \
			grep-2.4-3.i386.rpm \
			${RPM_BINUTILS} \
			gd-1.3-6.i386.rpm \
			gdbm-1.8.0-3.i386.rpm \
			${RPM_GLIB} \
			${LIBC5_COMPAT} \
			libstdc++-2.9.0-30.i386.rpm \
			sh-utils-2.0-5.i386.rpm \
			readline-2.2.1-6.i386.rpm \
			cle-release-0.9p1-2.noarch.rpm
RPM_SET3=		setserial-2.15-3.i386.rpm \
			slang-1.2.2-5.i386.rpm \
			stat-1.5-12.i386.rpm \
			tcsh-6.09-4.i386.rpm \
			xpm-3.4k-2.i386.rpm
RPM_L10N=		${RPM_X_LIBS} \
			locale-zh-0.9-3.i386.rpm \
			xa+cv-0.7-pre1.i386.rpm

DBPATH=			/var/lib/rpm
RPMFLAGS=		--ignoreos --root ${LINUXBASE} --dbpath ${DBPATH} \
			--nodeps --replacepkgs --notriggers --noscripts
RPMDIR=			${DISTDIR}/${DIST_SUBDIR}

REMOVE_DIRS=		/dev /home /root /tmp /var/tmp /usr/local /usr/tmp
REMOVE_FILES=		/bin/df /bin/su /etc/exports /etc/group \
			/etc/localtime /etc/motd /etc/passwd /etc/printcap \
			/etc/services /etc/protocols

.if ${OSVERSION} >= 500113
BROKEN=		"Does not install (attempts to overwrite something in /proc)"
.endif

.if ${OSVERSION} <= 320001
#
# Hack to let the rpm installer run.  The actual kernel change occurred after
# 400008 on 4.0-current and well after 320001, but we'll assume people running
# -current and -stable stay reasonably up-to-date.
#
# Define this if you get messages that look like
#
# --
# ELF interpreter /compat/linux/lib/ld-linux.so.2 not found
# execution of script failed
# --
#
NEEDLOADLINK=		true
.endif

do-patch:
	@@${DO_NADA}

post-patch:
	@@${SED} -e "s;@@LINUXBASE@@;${LINUXBASE};g" ${FILESDIR}/INSTALL.in > ${WRKDIR}/pkg-install

pre-install:
# Handle the loading of the linux loadable kernel module if
# required.
	@@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

do-install:
	@@${MKDIR} ${LINUXBASE}/${DBPATH}
	@@${MKDIR} ${LINUXBASE}/var/tmp
	@@rpm --initdb --root ${LINUXBASE} --dbpath ${DBPATH}
#
# Make sure we have a /dev/null in the chrooted environment.
#
	@@${MKDIR} ${LINUXBASE}/dev
	@@${RM} -f ${LINUXBASE}/dev/null
	@@mknod ${LINUXBASE}/dev/null c 2 2
	@@chmod 666 ${LINUXBASE}/dev/null
.if defined(NEEDLOADLINK)
	@@${MKDIR} ${LINUXBASE}/compat
	@@${LN} -s / ${LINUXBASE}/compat/linux
.endif
#
# Install all packages. Ignore dependencies just
# like the Red Hat installer.
#
	@@for R in ${RPM_SET1}; do \
		${ECHO} $$R; \
		rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \
	done
	@@${ECHO} ${RPM_LDCONFIG}
	@@rpm -U ${RPMFLAGS} ${RPMDIR}/${RPM_LDCONFIG}
	@@brandelf -t Linux ${LINUXBASE}/sbin/ldconfig
	@@for R in ${RPM_SET2}; do \
		${ECHO} $$R; \
		rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \
	done
	@@brandelf -t Linux ${LINUXBASE}/bin/sh
	@@${ECHO} ${RPM_RPM}
	@@rpm -U ${RPMFLAGS} ${RPMDIR}/${RPM_RPM}
	@@brandelf -t Linux ${LINUXBASE}/bin/rpm
	@@for R in ${RPM_SET3}; do \
		${ECHO} $$R; \
		rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \
	done
	@@for R in ${RPM_L10N}; do \
		${ECHO} $$R; \
		rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \
	done
	@@ln -sf ${LINUXBASE}/usr/X11R6/lib/libXpm.so.4.11 ${LINUXBASE}/usr/X11R6/lib/libXpm.so.4
	@@echo "/usr/i486-linux-libc5/lib" > ${LINUXBASE}/etc/ld.so.conf
	@@echo "/usr/X11R6/lib" >> ${LINUXBASE}/etc/ld.so.conf
	@@${LINUXBASE}/sbin/ldconfig
#
# Install yp.conf as a hint to NIS users
#
	${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${LINUXBASE}/etc
#
# Finish
#
.if defined(NEEDLOADLINK)
	@@${RM} -rf ${LINUXBASE}/compat
.endif
	@@for D in ${REMOVE_DIRS}; do \
		${RM} -rf ${LINUXBASE}/$$D; \
	done
	@@for F in ${REMOVE_FILES}; do \
		${RM} ${LINUXBASE}/$$F; \
	done
	@@${LN} -s /var/tmp ${LINUXBASE}/usr/tmp
	@@${TOUCH} ${LINUXBASE}/CLE-0.9p1

post-install:
	@@${ECHO} ''
	@@fmt ${PKGMESSAGE}
	@@${ECHO} ''

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


1.14
log
@- Standardize an EXPIRATION_DATE format.

Approved by:	krion
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.13
log
@Mark deprecated: no maintainer, unpatched security issue
http://vuxml.freebsd.org/ef253f8b-0727-11d9-b45d-000c41e2cdad.html
for over a month, BROKEN for over 3 months.
@
text
@d24 1
a24 1
EXPIRATION_DATE=	November 21, 2004
@


1.12
log
@BROKEN: Install fails when linprocfs is mounted
@
text
@d23 2
@


1.11
log
@Tidy up whitespace.
@
text
@d22 2
@


1.10
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d89 1
a89 1
BROKEN=         "Does not install (attempts to overwrite something in /proc)"
@


1.9
log
@This conflicts with the English-language Linux base system ports.
@
text
@d10 1
@


1.8
log
@Per bento logs, mark broken on 5.x.
@
text
@d23 1
@


1.7
log
@Reset maintainer on ports owned by the following committers who have
been inactive for over 12 months and did not respond to my email confirming
their status: keith, nakai, torstenb

Reviewed by:	portmgr
@
text
@d86 4
@


1.6
log
@pkg-comment police: Purge them in this category while I'm here.
@
text
@d18 1
a18 1
MAINTAINER=		keith@@FreeBSD.org
@


1.5
log
@`rpm' and `rpm2cpio' have been repocopied from "misc" to "archivers".
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/cle_base/Makefile,v 1.4 2000/11/30 13:49:15 keith Exp $
d19 1
@


1.4
log
@Change ${PREFIX} to ${LINUXBASE}, and set ${PREFIX} to ${LINUXBASE}.
Also fix spacing errors which existed since it was imported.

Inspired by:	asami's linux_base commit & portlint -abct
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/cle_base/Makefile,v 1.3 2000/11/06 12:12:38 keith Exp $
d20 1
a20 1
RUN_DEPENDS=		rpm:${PORTSDIR}/misc/rpm
@


1.3
log
@Change stamp file from CLE-0.9-PRE2 to CLE-0.9p1
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/cle_base/Makefile,v 1.2 2000/11/06 10:41:51 keith Exp $
d16 1
d24 1
a24 2
EXTRACT_ONLY=
PREFIX=			/compat/linux
d33 6
a38 6
RPM_BINUTILS=           binutils-2.9.5.0.22-6.i386.rpm
RPM_GLIB=               glib-1.2.6-3.i386.rpm
RPM_GLIBC=              glibc-2.1.3-21.i386.rpm
RPM_LDCONFIG=           ldconfig-1.9.5-16.i386.rpm
RPM_RPM=                rpm-3.0.5-9.6x.i386.rpm
RPM_X_LIBS=             XFree86-libs-3.3.6-24CLE.i386.rpm
d76 1
a76 1
RPMFLAGS=		--ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
d105 1
a105 1
	@@${SED} -e "s;@@PREFIX@@;${PREFIX};g" ${FILESDIR}/INSTALL.in > ${WRKDIR}/pkg-install
d113 3
a115 3
	@@${MKDIR} ${PREFIX}/${DBPATH}
	@@${MKDIR} ${PREFIX}/var/tmp
	@@rpm --initdb --root ${PREFIX} --dbpath ${DBPATH}
d119 4
a122 4
	@@${MKDIR} ${PREFIX}/dev
	@@${RM} -f ${PREFIX}/dev/null
	@@mknod ${PREFIX}/dev/null c 2 2
	@@chmod 666 ${PREFIX}/dev/null
d124 2
a125 2
	@@${MKDIR} ${PREFIX}/compat
	@@${LN} -s / ${PREFIX}/compat/linux
d137 1
a137 1
	@@brandelf -t Linux ${PREFIX}/sbin/ldconfig
d142 1
a142 1
	@@brandelf -t Linux ${PREFIX}/bin/sh
d145 1
a145 1
	@@brandelf -t Linux ${PREFIX}/bin/rpm
d154 4
a157 4
	@@ln -sf ${PREFIX}/usr/X11R6/lib/libXpm.so.4.11 ${PREFIX}/usr/X11R6/lib/libXpm.so.4
	@@echo "/usr/i486-linux-libc5/lib" > ${PREFIX}/etc/ld.so.conf
	@@echo "/usr/X11R6/lib" >> ${PREFIX}/etc/ld.so.conf
	@@${PREFIX}/sbin/ldconfig
d161 1
a161 1
	${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${PREFIX}/etc
d166 1
a166 1
	@@${RM} -rf ${PREFIX}/compat
d169 1
a169 1
		${RM} -rf ${PREFIX}/$$D; \
d172 1
a172 1
		${RM} ${PREFIX}/$$F; \
d174 2
a175 2
	@@${LN} -s /var/tmp ${PREFIX}/usr/tmp
	@@${TOUCH} ${PREFIX}/CLE-0.9p1
@


1.2
log
@Fixes for official CLE 0.9p1 release.
@
text
@d5 1
a5 1
# $FreeBSD: ports/chinese/cle_base/Makefile,v 1.1 2000/11/02 03:27:14 foxfair Exp $
d175 1
a175 1
	@@${TOUCH} ${PREFIX}/CLE-0.9-PRE2
@


1.1
log
@PR:		21691
Submitted by:	Jing-Tang Keith Jang <keith@@sinica.edu.tw>
Reviewed by:	Michael C. Wu <keichii@@peorth.iteration.net>
Obtained from:	outta-port@@freebsd.sinica.edu.tw
Add new port : cle_base.

CLE(Chinese Linux Extension) is a project providing Chinese L10N for
Linux, mainly the RedHat distribution.  This port picks packages from
a minimal CLE installation.  In addition to Linux emulation, you can
run L10N Linux applications like Netscape or (hopefully) Star Office.

WWW: http://cle.linux.org.tw
@
text
@d1 1
a1 1
# New ports collection makefile for:	CLE_base
d3 1
a3 1
# Whom:			keith@@freebsd.sinica.edu.tw
d5 1
a5 1
# $FreeBSD: $
d8 1
a8 1
PORTNAME=		linux_base
d12 2
a13 5
	ftp://cle.linux.org.tw/pub/CLE/i386/RedHat/RPMS/ \
	ftp://freebsd.sinica.edu.tw/pub/keith/zh-rpm/ \
	ftp://ftp.nsysu.edu.tw/Linux/CLE/RedHat/i386/RedHat/RPMS/ \
	ftp://freebsd.ntu.edu.tw/UNIX/Linux/CLE/RedHat/i386/RedHat/RPMS/ \
	ftp://ftp.knb.com.hk/pub/CLE/RedHat/0.9/RedHat/RPMS/
d17 1
a17 1
MAINTAINER=		keith@@freebsd.sinica.edu.tw
d23 1
a23 1
#EXTRACT_ONLY=
@

