aboutsummaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-10-26 15:43:45 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-10-26 15:43:45 +0000
commite7c59d24f2ac13774b45ea0de7b6c44ec499f086 (patch)
tree418b468f7f58994671efc284920871c614b84475 /news
parent09e22c426ac7a0022ddd37c46ccb2ccfff717171 (diff)
downloadports-e7c59d24f2ac13774b45ea0de7b6c44ec499f086.tar.gz
ports-e7c59d24f2ac13774b45ea0de7b6c44ec499f086.zip
Notes
Diffstat (limited to 'news')
-rw-r--r--news/Makefile1
-rw-r--r--news/husky-base-devel/Makefile39
-rw-r--r--news/husky-base-devel/Makefile.inc25
-rw-r--r--news/husky-base-devel/distinfo2
-rw-r--r--news/husky-base-devel/files/patch-huskymak.cfg120
-rw-r--r--news/husky-base-devel/pkg-descr6
-rw-r--r--news/husky-base-devel/pkg-install72
-rw-r--r--news/husky-base-devel/pkg-plist4
8 files changed, 269 insertions, 0 deletions
diff --git a/news/Makefile b/news/Makefile
index e1ebae618b07..a4c3020aac2b 100644
--- a/news/Makefile
+++ b/news/Makefile
@@ -24,6 +24,7 @@
SUBDIR += gup
SUBDIR += hellanzb
SUBDIR += husky-base
+ SUBDIR += husky-base-devel
SUBDIR += husky-bsopack
SUBDIR += husky-fidoconf
SUBDIR += husky-hpt
diff --git a/news/husky-base-devel/Makefile b/news/husky-base-devel/Makefile
new file mode 100644
index 000000000000..0f8a7e78e572
--- /dev/null
+++ b/news/husky-base-devel/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: husky-base-devel
+# Date created: 2005-10-26
+# Whom: Oleg Sharoiko <os@rsu.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= base
+PORTVERSION= 1.4
+CATEGORIES= news mail
+DISTNAME= huskybse-${PORTVERSION:S/./_/g}-stable
+EXTRACT_SUFX= .rar
+
+MAINTAINER= os@rsu.ru
+COMMENT= Common files for Husky Fidosoft Project. Development version
+
+EXTRACT_DEPENDS= unrar:${PORTSDIR}/archivers/unrar
+
+EXTRACT_CMD= unrar
+EXTRACT_BEFORE_ARGS= x
+EXTRACT_AFTER_ARGS= huskybse/
+
+CONFLICTS= husky-base-[0-9]*
+
+WRKSRC= ${WRKDIR}/huskybse
+NO_BUILD= yes
+
+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 "${.CURDIR}/../../news/husky-base-devel/Makefile.inc"
+.include <bsd.port.post.mk>
diff --git a/news/husky-base-devel/Makefile.inc b/news/husky-base-devel/Makefile.inc
new file mode 100644
index 000000000000..fa5e08aab1ee
--- /dev/null
+++ b/news/husky-base-devel/Makefile.inc
@@ -0,0 +1,25 @@
+#
+# $FreeBSD$
+#
+
+PKGNAMEPREFIX= husky-
+PKGNAMESUFFIX= -devel
+MASTER_SITES?= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= husky
+DIST_SUBDIR= husky
+
+WRKSRC?= ${WRKDIR}/${PORTNAME}
+ONLY_FOR_ARCHS= i386
+
+.if ${PORTNAME} != "base"
+BUILD_DEPENDS= ${LOCALBASE}/etc/fido/huskymak.cfg:${PORTSDIR}/news/husky-base-devel
+
+USE_GMAKE= yes
+
+MAKE_ARGS+= PREFIX="${PREFIX}" \
+ CC="${CC}" CXX="${CXX}" GPP="${CXX}" MKSHARED="${CC}" \
+ OPTCFLAGS="-c ${CFLAGS}" WARNFLAGS=""
+
+pre-build:
+ @${LN} -sf ${LOCALBASE}/etc/fido/huskymak.cfg ${WRKDIR}
+.endif
diff --git a/news/husky-base-devel/distinfo b/news/husky-base-devel/distinfo
new file mode 100644
index 000000000000..424a9ee3a054
--- /dev/null
+++ b/news/husky-base-devel/distinfo
@@ -0,0 +1,2 @@
+MD5 (husky/huskybse-1_4-stable.rar) = 553172710cf25dbf8acd5634fcc0f841
+SIZE (husky/huskybse-1_4-stable.rar) = 62982
diff --git a/news/husky-base-devel/files/patch-huskymak.cfg b/news/husky-base-devel/files/patch-huskymak.cfg
new file mode 100644
index 000000000000..2202ad752887
--- /dev/null
+++ b/news/husky-base-devel/files/patch-huskymak.cfg
@@ -0,0 +1,120 @@
+--- huskymak.cfg.orig Sat Jun 21 12:50:44 2003
++++ huskymak.cfg Wed Oct 19 17:47:43 2005
+@@ -38,15 +38,15 @@
+ # will not be compiled, and you won't know how to use the software ;-).
+ # You should take care that this directory is listed in the INFOPATH
+ # environment variable (if necessary, modify your /etc/profile file).
+-# INFODIR=/usr/local/info
++INFODIR=$(PREFIX)/info
+
+ # The same as above, but for DVI documentation. This requires a working
+ # "texi2dvi" program.
+-# DVIDIR=${PREFIX}/share/doc/husky
++DVIDIR=${PREFIX}/share/doc/husky
+
+ # The same as above, but for HTML documentation. This requires a working
+ # "texi2html" program.
+-#HTMLDIR=$(PREFIX)/lib/husky
++HTMLDIR=$(PREFIX)/share/doc/husky
+
+ # Name of the config file of MSGED TE:
+ MSGEDCFG=\"$(CFGDIR)/msged.cfg\"
+@@ -116,7 +116,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
+@@ -139,8 +139,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
+
+@@ -151,7 +151,7 @@
+ SHORTNAMES=0
+
+ # Perl support
+-PERL=0
++PERL=1
+
+ # ZipInternal packer
+ USE_HPTZIP=0
+@@ -179,7 +179,7 @@
+ WARNFLAGS=-Wall
+
+ # C-compiler: optimization
+-OPTCFLAGS=-c -s -O3 -fomit-frame-pointer -fstrength-reduce -fPIC
++OPTCFLAGS=
+
+ ifeq ( $(DYNLIBS), 0 )
+ ifeq ($(OSTYPE), UNIX)
+@@ -216,8 +216,8 @@
+ DEBLFLAGS=-g
+
+ # options for installing programs
+-OPTIBOPT=-c -s -m 555
+-DEBIBOPT=-c -m 555
++OPTIBOPT=-c -s -m 555 -o root -g wheel
++DEBIBOPT=-c -m 555 -o root -g wheel
+
+ ifeq ($(DEBUG), 1)
+ IBOPT = $(DEBIBOPT)
+@@ -226,19 +226,19 @@
+ endif
+
+ # options for installing scripts
+-ISOPT=-c -m 555
++ISOPT=-c -m 555 -o root -g wheel
+
+ # options for installing shared libs
+-ILOPT=-c -m 555
++ILOPT=-c -m 555 -o root -g wheel
+
+ # options for installing static libs
+-ISLOPT=-c -m 444
++ISLOPT=-c -m 444 -o root -g wheel
+
+ # options for installing man-pages
+-IMOPT=-c -m 444
++IMOPT=-c -m 444 -o root -g wheel
+
+ # options for installing includes
+-IIOPT=-c -m 444
++IIOPT=-c -m 444 -o root -g wheel
+
+ # options for linking files
+ LNOPT=-sf
+@@ -258,19 +258,19 @@
+ #############################################################################
+
+ # extension of executable (e.g. ".exe")
+-_EXE=
++EXE=
+
+ # extension of object file
+-_OBJ=.o
++OBJ=.o
+
+ # extension of static libs
+-_LIB=.a
++LIB=.a
+
+ # extension of dynamic libs
+-_DLL=.so
++DLL=.so
+
+ # extension of compiled pascal units
+-_TPU=.ppu
++TPU=.ppu
+
+ # directory separator (DOS-like: "\\", Unix-like: "/")
+
diff --git a/news/husky-base-devel/pkg-descr b/news/husky-base-devel/pkg-descr
new file mode 100644
index 000000000000..d2b4eb18537c
--- /dev/null
+++ b/news/husky-base-devel/pkg-descr
@@ -0,0 +1,6 @@
+Common files for Husky Fidosoft Project.
+Development version.
+
+Husky is complete freeware suite of Fidonet applications.
+
+WWW: http://husky.sourceforge.net/
diff --git a/news/husky-base-devel/pkg-install b/news/husky-base-devel/pkg-install
new file mode 100644
index 000000000000..74db35e6e9c3
--- /dev/null
+++ b/news/husky-base-devel/pkg-install
@@ -0,0 +1,72 @@
+#!/bin/sh
+#
+# $FreeBSD: /tmp/pcvs/ports/news/husky-base-devel/pkg-install,v 1.1 2005-10-26 15:43:45 garga Exp $
+#
+
+PKG_PREFIX=${PKG_PREFIX:=/usr/local}
+BATCH=${BATCH:=no}
+PW=/usr/sbin/pw
+
+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 ${PW} groupshow "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if ${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 ${PW} user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if ${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-devel/pkg-plist b/news/husky-base-devel/pkg-plist
new file mode 100644
index 000000000000..c6e46b0d1e43
--- /dev/null
+++ b/news/husky-base-devel/pkg-plist
@@ -0,0 +1,4 @@
+etc/fido/huskymak.cfg
+@exec mkdir -p %D/share/doc/husky
+@dirrm etc/fido
+@dirrm share/doc/husky