ports/88022: New port: news/husky-base-devel Common files for Husky Fidosoft Project. Development version.

Oleg Sharoiko os at rsu.ru
Wed Oct 26 11:10:17 UTC 2005


>Number:         88022
>Category:       ports
>Synopsis:       New port: news/husky-base-devel Common files for Husky Fidosoft Project. Development version.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 26 11:10:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Sharoiko
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
Computer Center of Rostov State University
>Environment:
System: FreeBSD brain.cc.rsu.ru 5.4-STABLE FreeBSD 5.4-STABLE #0: Thu May 26 17:48:07 MSD 2005 os at brain.cc.rsu.ru:/usr/obj/usr/src/sys/brain.athlon-xp.RELENG_5.2005-05-26 i386


	
>Description:
Common files for Husky Fidosoft Project.
Development version.

Husky is complete freeware suite of Fidonet applications. 

WWW: http://husky.sourceforge.net/

>How-To-Repeat:
	
>Fix:

	

--- husky-base-devel.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:
#
#	husky-base-devel
#	husky-base-devel/files
#	husky-base-devel/files/patch-huskymak.cfg
#	husky-base-devel/Makefile
#	husky-base-devel/Makefile.inc
#	husky-base-devel/distinfo
#	husky-base-devel/pkg-descr
#	husky-base-devel/pkg-install
#	husky-base-devel/pkg-plist
#
echo c - husky-base-devel
mkdir -p husky-base-devel > /dev/null 2>&1
echo c - husky-base-devel/files
mkdir -p husky-base-devel/files > /dev/null 2>&1
echo x - husky-base-devel/files/patch-huskymak.cfg
sed 's/^X//' >husky-base-devel/files/patch-huskymak.cfg << 'END-of-husky-base-devel/files/patch-huskymak.cfg'
X--- huskymak.cfg.orig	Sat Jun 21 12:50:44 2003
X+++ huskymak.cfg	Wed Oct 19 17:47:43 2005
X@@ -38,15 +38,15 @@
X # will not be compiled, and you won't know how to use the software ;-).
X # You should take care that this directory is listed in the INFOPATH 
X # environment variable (if necessary, modify your /etc/profile file).
X-# INFODIR=/usr/local/info
X+INFODIR=$(PREFIX)/info
X 
X # The same as above, but for DVI documentation. This requires a working
X # "texi2dvi" program.
X-# DVIDIR=${PREFIX}/share/doc/husky
X+DVIDIR=${PREFIX}/share/doc/husky
X 
X # The same as above, but for HTML documentation. This requires a working
X # "texi2html" program.
X-#HTMLDIR=$(PREFIX)/lib/husky
X+HTMLDIR=$(PREFIX)/share/doc/husky
X 
X # Name of the config file of MSGED TE:
X MSGEDCFG=\"$(CFGDIR)/msged.cfg\"
X@@ -116,7 +116,7 @@
X 
X # update dynamic library cache
X # If your operating system does not need this, you may comment out this line.
X-LDCONFIG=/sbin/ldconfig
X+#LDCONFIG=/sbin/ldconfig
X 
X # rename a file
X MV=mv
X@@ -139,8 +139,8 @@
X OSTYPE=UNIX
X 
X # short name of operating system (used for PID lines etc.)
X-UNAME=LNX
X-#UNAME=BSD
X+#UNAME=LNX
X+UNAME=BSD
X #UNAME=OS2
X #UNAME=BEOS
X 
X@@ -151,7 +151,7 @@
X SHORTNAMES=0
X 
X # Perl support
X-PERL=0
X+PERL=1
X 
X # ZipInternal packer
X USE_HPTZIP=0
X@@ -179,7 +179,7 @@
X WARNFLAGS=-Wall
X 
X # C-compiler: optimization
X-OPTCFLAGS=-c -s -O3 -fomit-frame-pointer -fstrength-reduce -fPIC
X+OPTCFLAGS=
X 
X ifeq ( $(DYNLIBS), 0 )
X   ifeq ($(OSTYPE), UNIX)
X@@ -216,8 +216,8 @@
X DEBLFLAGS=-g
X 
X # options for installing programs
X-OPTIBOPT=-c -s -m 555
X-DEBIBOPT=-c -m 555
X+OPTIBOPT=-c -s -m 555 -o root -g wheel
X+DEBIBOPT=-c -m 555 -o root -g wheel
X 
X ifeq ($(DEBUG), 1)
X   IBOPT = $(DEBIBOPT)
X@@ -226,19 +226,19 @@
X endif
X 
X # options for installing scripts
X-ISOPT=-c -m 555
X+ISOPT=-c -m 555 -o root -g wheel
X 
X # options for installing shared libs
X-ILOPT=-c -m 555
X+ILOPT=-c -m 555 -o root -g wheel
X 
X # options for installing static libs
X-ISLOPT=-c -m 444
X+ISLOPT=-c -m 444 -o root -g wheel
X 
X # options for installing man-pages
X-IMOPT=-c -m 444
X+IMOPT=-c -m 444 -o root -g wheel
X 
X # options for installing includes
X-IIOPT=-c -m 444
X+IIOPT=-c -m 444 -o root -g wheel
X 
X # options for linking files
X LNOPT=-sf
X@@ -258,19 +258,19 @@
X #############################################################################
X 
X # extension of executable (e.g. ".exe")
X-_EXE=
X+EXE=
X 
X # extension of object file
X-_OBJ=.o
X+OBJ=.o
X 
X # extension of static libs
X-_LIB=.a
X+LIB=.a
X 
X # extension of dynamic libs
X-_DLL=.so
X+DLL=.so
X 
X # extension of compiled pascal units
X-_TPU=.ppu
X+TPU=.ppu
X 
X # directory separator (DOS-like: "\\", Unix-like: "/")
X 
END-of-husky-base-devel/files/patch-huskymak.cfg
echo x - husky-base-devel/Makefile
sed 's/^X//' >husky-base-devel/Makefile << 'END-of-husky-base-devel/Makefile'
X# New ports collection makefile for:	husky-base-devel
X# Date created:				2005-10-26
X# Whom:					Oleg Sharoiko <os at rsu.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	base
XPKGNAMESUFFIX=	-devel
XPORTVERSION=	1.4
XCATEGORIES=	news mail
XDISTNAME=	huskybse-${PORTVERSION:S/./_/g}-stable
XEXTRACT_SUFX=	.rar
XEXTRACT_DEPENDS=unrar:${PORTSDIR}/archivers/unrar
XEXTRACT_CMD=	unrar
XEXTRACT_BEFORE_ARGS=	x
XEXTRACT_AFTER_ARGS=	huskybse/
X
XMAINTAINE=	os at rsu.ru
XCOMMENT=	Common files for Husky Fidosoft Project. Development version.
X
XCONFLICTS=	husky-base-[0-9]*
X
XWRKSRC=		${WRKDIR}/huskybse
XNO_BUILD=	yes
X
Xpre-install:
X	@ ${SETENV} PKG_PREFIX=${PREFIX} \
X		${SH} ${PKGDIR}/pkg-install ${PORTNAME} PRE-INSTALL
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/etc/fido ${PREFIX}/share/doc/husky
X	@${CHOWN} fido:fido ${PREFIX}/etc/fido
X	@${INSTALL_DATA} ${WRKSRC}/huskymak.cfg ${PREFIX}/etc/fido
X
X.include <bsd.port.pre.mk>
X.include "${PORTSDIR}/news/husky-base-devel/Makefile.inc"
X.include <bsd.port.post.mk>
END-of-husky-base-devel/Makefile
echo x - husky-base-devel/Makefile.inc
sed 's/^X//' >husky-base-devel/Makefile.inc << 'END-of-husky-base-devel/Makefile.inc'
X#
X# $Id$
X#
X
XPKGNAMEPREFIX=	husky-
XMASTER_SITES?=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	husky
XDIST_SUBDIR=	husky
X
XWRKSRC?=	${WRKDIR}/${PORTNAME}
XONLY_FOR_ARCHS=	i386
X
X.if ${PORTNAME} != "base"
XBUILD_DEPENDS=	${LOCALBASE}/etc/fido/huskymak.cfg:${PORTSDIR}/news/husky-base-devel
X
XUSE_GMAKE=	yes
X
XMAKE_ARGS+=	PREFIX="${PREFIX}" \
X		CC="${CC}" CXX="${CXX}" GPP="${CXX}" MKSHARED="${CC}" \
X		OPTCFLAGS="-c ${CFLAGS}" WARNFLAGS=""
X
Xpre-build:
X	@${LN} -sf ${LOCALBASE}/etc/fido/huskymak.cfg ${WRKDIR}
X.endif
END-of-husky-base-devel/Makefile.inc
echo x - husky-base-devel/distinfo
sed 's/^X//' >husky-base-devel/distinfo << 'END-of-husky-base-devel/distinfo'
XMD5 (husky/huskybse-1_4-stable.rar) = 553172710cf25dbf8acd5634fcc0f841
XSIZE (husky/huskybse-1_4-stable.rar) = 62982
END-of-husky-base-devel/distinfo
echo x - husky-base-devel/pkg-descr
sed 's/^X//' >husky-base-devel/pkg-descr << 'END-of-husky-base-devel/pkg-descr'
XCommon files for Husky Fidosoft Project.
XDevelopment version.
X
XHusky is complete freeware suite of Fidonet applications. 
X
XWWW: http://husky.sourceforge.net/
END-of-husky-base-devel/pkg-descr
echo x - husky-base-devel/pkg-install
sed 's/^X//' >husky-base-devel/pkg-install << 'END-of-husky-base-devel/pkg-install'
X#!/bin/sh
X#
X# $FreeBSD: ports/news/husky-base/pkg-install,v 1.2 2003/01/21 10:14:47 fjoe Exp $
X#
X
XPKG_PREFIX=${PKG_PREFIX:=/usr/local}
XBATCH=${BATCH:=no}
X
Xask() {
X    local question default answer
X
X    question=$1
X    default=$2
X    if [ -z "${PACKAGE_BUILDING}" -a x${BATCH} = xno ]; then
X        read -p "${question} [${default}]? " answer
X    fi
X    if [ x${answer} = x ]; then
X        answer=${default}
X    fi
X    echo ${answer}
X}
X
Xyesno() {
X    local question default answer
X
X    question=$1
X    default=$2
X    while :; do
X        answer=$(ask "${question}" "${default}")
X        case "${answer}" in
X        [Yy]*)	return 0;;
X        [Nn]*)	return 1;;
X        esac
X        echo "Please answer yes or no."
X    done
X}
X
Xif [ x"$2" = xPRE-INSTALL ]; then
X    USER=fido
X    GROUP=fido
X    UID=111
X    GID=111
X
X    if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then
X        echo "You already have a group \"${GROUP}\", so I will use it."
X    else
X        if /usr/sbin/pw groupadd ${GROUP} -g ${GID}
X	then
X	    echo "Added group \"${GROUP}\"."
X	else
X	    echo "Adding group \"${GROUP}\" failed..."
X            echo "Please create it, and try again."
X            exit 1
X        fi
X    fi
X
X    if /usr/sbin/pw user show "${USER}" 2>/dev/null; then
X        echo "You already have a user \"${USER}\", so I will use it."
X    else
X        if /usr/sbin/pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
X           -d ${PKG_PREFIX}/fido \
X           -c "Fido System"
X	then
X	    echo "Added user \"${USER}\"."
X	else
X	    echo "Adding user \"${USER}\" failed..."
X            echo "Please create it, and try again."
X            exit 1
X        fi
X    fi
Xfi
END-of-husky-base-devel/pkg-install
echo x - husky-base-devel/pkg-plist
sed 's/^X//' >husky-base-devel/pkg-plist << 'END-of-husky-base-devel/pkg-plist'
Xetc/fido/huskymak.cfg
X at exec mkdir -p %D/share/doc/husky
X at dirrm etc/fido
X at dirrm share/doc/husky
END-of-husky-base-devel/pkg-plist
exit
--- husky-base-devel.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list