diff options
author | Max Khon <fjoe@FreeBSD.org> | 2003-01-05 19:34:27 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2003-01-05 19:34:27 +0000 |
commit | 8b89c2bbe46ade68b31fb8f751828677d35a376f (patch) | |
tree | a1f9428ebf0bc74d82f72d411058fdca307d87c2 /news/husky-base | |
parent | da1a192da69a9bbfe876782cafac2843a6a71bf4 (diff) | |
download | ports-8b89c2bbe46ade68b31fb8f751828677d35a376f.tar.gz ports-8b89c2bbe46ade68b31fb8f751828677d35a376f.zip |
Add ports for Husky Fidosoft Project (most of modules from it).
Notes
Notes:
svn path=/head/; revision=72598
Diffstat (limited to 'news/husky-base')
-rw-r--r-- | news/husky-base/Makefile | 43 | ||||
-rw-r--r-- | news/husky-base/Makefile.inc | 16 | ||||
-rw-r--r-- | news/husky-base/distinfo | 1 | ||||
-rw-r--r-- | news/husky-base/files/patch-huskymak.cfg | 31 | ||||
-rw-r--r-- | news/husky-base/pkg-comment | 1 | ||||
-rw-r--r-- | news/husky-base/pkg-descr | 5 | ||||
-rw-r--r-- | news/husky-base/pkg-install | 71 | ||||
-rw-r--r-- | news/husky-base/pkg-plist | 3 |
8 files changed, 171 insertions, 0 deletions
diff --git a/news/husky-base/Makefile b/news/husky-base/Makefile new file mode 100644 index 000000000000..c392cebdc4c7 --- /dev/null +++ b/news/husky-base/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: husky-base +# Date created: 6 January 2003 +# Whom: Max Khon +# +# $FreeBSD$ +# + +PORTNAME= base +PORTVERSION= 0.2.0 +CATEGORIES= news mail +MASTER_SITES= http://www.physcip.uni-stuttgart.de:8080/fidosoft.husky/ +DISTNAME= huskybse-${PORTVERSION}-src + +MAINTAINER= fjoe@FreeBSD.org + +WRKSRC= ${WRKDIR}/huskybse-${PORTVERSION} +NO_BUILD= yes + +post-patch: + @${REINPLACE_CMD} \ + -e 's^/usr/local^${PREFIX}^' \ + -e 's^CFGDIR=/etc/fido^CFGDIR=${PREFIX}/etc/fido^' \ + -e 's^# INFODIR=/usr/local/info^INFODIR=${PREFIX}/info^' \ + -e 's^#HTMLDIR=$$(PREFIX)/lib/husky^HTMLDIR=${PREFIX}/share/doc/husky^' \ + -e 's^$$(CFGDIR)/msged.cfg^~/.msged^' \ + -e 's^CC=gcc^CC=${CC}^' \ + -e 's^CXX=g++^CXX=${CXX}^' \ + -e 's^MKSHARED=gcc^MKSHARED=${CC}^' \ + -e 's^OPTCFLAGS=^OPTCFLAGS=-c ${CFLAGS}^' \ + ${WRKSRC}/huskymak.cfg + +pre-install: + @ ${SETENV} PKG_PREFIX=${PREFIX} \ + ${SH} ${PKGDIR}/pkg-install ${PORTNAME} PRE-INSTALL + +do-install: + @${MKDIR} ${PREFIX}/etc/fido ${PREFIX}/share/doc/husky + @${CHOWN} fido:fido ${PREFIX}/etc/fido + @${INSTALL_DATA} ${WRKSRC}/huskymak.cfg ${PREFIX}/etc/fido + +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/news/husky-base/Makefile.inc" +.include <bsd.port.post.mk> diff --git a/news/husky-base/Makefile.inc b/news/husky-base/Makefile.inc new file mode 100644 index 000000000000..c6779a22dcc4 --- /dev/null +++ b/news/husky-base/Makefile.inc @@ -0,0 +1,16 @@ +# +# $Id$ +# + +PKGNAMEPREFIX= husky- +#MASTER_SITES= http://www.physcip.uni-stuttgart.de:8080/fidosoft.husky/ +MASTER_SITES?= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= husky +DIST_SUBDIR= husky + +USE_REINPLACE= yes +USE_GMAKE= yes +WRKSRC?= ${WRKDIR}/${PORTNAME} + +post-patch: + @${LN} -sf ${LOCALBASE}/etc/fido/huskymak.cfg ${WRKDIR} diff --git a/news/husky-base/distinfo b/news/husky-base/distinfo new file mode 100644 index 000000000000..9170866848e5 --- /dev/null +++ b/news/husky-base/distinfo @@ -0,0 +1 @@ +MD5 (husky/huskybse-0.2.0-src.tar.gz) = a7a2ec15e8478d8405723379d866b985 diff --git a/news/husky-base/files/patch-huskymak.cfg b/news/husky-base/files/patch-huskymak.cfg new file mode 100644 index 000000000000..ad96082a5f94 --- /dev/null +++ b/news/husky-base/files/patch-huskymak.cfg @@ -0,0 +1,31 @@ +--- huskymak.cfg.orig Wed Aug 14 00:23:14 2002 ++++ huskymak.cfg Wed Aug 14 00:26:43 2002 +@@ -100,7 +100,7 @@ + + # update dynamic library cache + # If your operating system does not need this, you may comment out this line. +-LDCONFIG=/sbin/ldconfig ++#LDCONFIG=/sbin/ldconfig + + # rename a file + MV=mv +@@ -123,8 +123,8 @@ + OSTYPE=UNIX + + # short name of operating system (used for PID lines etc.) +-UNAME=LNX +-#UNAME=BSD ++#UNAME=LNX ++UNAME=BSD + #UNAME=OS2 + #UNAME=BEOS + +@@ -156,7 +156,7 @@ + WARNFLAGS=-Wall + + # C-compiler: optimization +-OPTCFLAGS=-c -s -O3 -fomit-frame-pointer -fstrength-reduce -fPIC ++OPTCFLAGS= + + # C-compiler: debug + DEBCFLAGS=-c -ggdb diff --git a/news/husky-base/pkg-comment b/news/husky-base/pkg-comment new file mode 100644 index 000000000000..9451bd3ab98d --- /dev/null +++ b/news/husky-base/pkg-comment @@ -0,0 +1 @@ +Common files for Husky Fidosoft Project diff --git a/news/husky-base/pkg-descr b/news/husky-base/pkg-descr new file mode 100644 index 000000000000..2240ec26436f --- /dev/null +++ b/news/husky-base/pkg-descr @@ -0,0 +1,5 @@ +Common files for Husky Fidosoft Project. + +Husky is complete freeware suite of Fidonet applications. + +WWW: http://husky.sourceforge.net/ diff --git a/news/husky-base/pkg-install b/news/husky-base/pkg-install new file mode 100644 index 000000000000..a86d220abae0 --- /dev/null +++ b/news/husky-base/pkg-install @@ -0,0 +1,71 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/news/husky-base/Attic/pkg-install,v 1.1 2003-01-05 19:34:24 fjoe Exp $ +# + +PKG_PREFIX=${PKG_PREFIX:=/usr/local} +BATCH=${BATCH:=no} + +ask() { + local question default answer + + question=$1 + default=$2 + if [ -z "${PACKAGE_BUILDING}" -a x${BATCH} = xno ]; then + read -p "${question} [${default}]? " answer + fi + if [ x${answer} = x ]; then + answer=${default} + fi + echo ${answer} +} + +yesno() { + local question default answer + + question=$1 + default=$2 + while :; do + answer=$(ask "${question}" "${default}") + case "${answer}" in + [Yy]*) return 0;; + [Nn]*) return 1;; + esac + echo "Please answer yes or no." + done +} + +if [ x"$2" = xPRE-INSTALL ]; then + USER=fido + GROUP=fido + UID=111 + GID=111 + + if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then + echo "You already have a group \"${GROUP}\", so I will use it." + else + if /usr/sbin/pw groupadd ${GROUP} -g ${GID} + then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + echo "Please create it, and try again." + exit 1 + fi + fi + + if /usr/sbin/pw user show "${USER}" 2>/dev/null; then + echo "You already have a user \"${USER}\", so I will use it." + else + if /usr/sbin/pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ + -d /${PKG_PREFIX}/fido \ + -c "Fido System" + then + echo "Added user \"${USER}\"." + else + echo "Adding user \"${USER}\" failed..." + echo "Please create it, and try again." + exit 1 + fi + fi +fi diff --git a/news/husky-base/pkg-plist b/news/husky-base/pkg-plist new file mode 100644 index 000000000000..77857e0b36f6 --- /dev/null +++ b/news/husky-base/pkg-plist @@ -0,0 +1,3 @@ +etc/fido/huskymak.cfg +@dirrm etc/fido +@dirrm share/doc/husky |