Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2006 21:34:01 +0100 (CET)
From:      trasz <trasz@pin.if.uz.zgora.pl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/105800: [NEW PORT] net/wired: Wired Server
Message-ID:  <20061123203401.2BC8739DB8@pin.if.uz.zgora.pl>
Resent-Message-ID: <200611232040.kANKeE21055733@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105800
>Category:       ports
>Synopsis:       [NEW PORT] net/wired: Wired Server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 23 20:40:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     trasz
>Release:        FreeBSD 6.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Wed Nov 15 19:16:30 CET 2006
>Description:
Wired is an open, modern and free version of the BBS-style
client/server system, providing chat, messaging and file
transfers.

WWW:	http://www.zankasoftware.com/wired/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- wired-1.3.1.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:
#
#	wired
#	wired/pkg-descr
#	wired/Makefile
#	wired/pkg-plist
#	wired/distinfo
#	wired/pkg-install
#	wired/files
#	wired/files/patch-Makefile.in
#	wired/files/wired.sh.in
#	wired/files/patch-wired-wiredctl.in
#	wired/pkg-deinstall
#
echo c - wired
mkdir -p wired > /dev/null 2>&1
echo x - wired/pkg-descr
sed 's/^X//' >wired/pkg-descr << 'END-of-wired/pkg-descr'
XWired is an open, modern and free version of the BBS-style
Xclient/server system, providing chat, messaging and file
Xtransfers.
X
XWWW:	http://www.zankasoftware.com/wired/
END-of-wired/pkg-descr
echo x - wired/Makefile
sed 's/^X//' >wired/Makefile << 'END-of-wired/Makefile'
X# New ports collection makefile for:	wired
X# Date created:		2006-11-23
X# Whom:			trasz <trasz@pin.if.uz.zgora.pl>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	wired
XPORTVERSION=	1.3.1
XCATEGORIES=	net
XMASTER_SITES=	http://www.zankasoftware.com/dist/
X
XMAINTAINER=	trasz@pin.if.uz.zgora.pl
XCOMMENT=	Wired Server
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_RC_SUBR=	wired.sh
X
XMAN1=		hl2wired.1 wiredctl.1
XMAN5=		wired.conf.5
XMAN8=		wired.8
X
Xpre-install:
X	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
X
Xpost-install:
X	@if [ ! -f ${PREFIX}/wired/etc/wired.conf ]; then \
X		${CP} -p ${PREFIX}/wired/etc/wired.conf.sample ${PREFIX}/wired/etc/wired.conf ; \
X	fi
X	@if [ ! -f ${PREFIX}/wired/etc/resolv.conf ]; then \
X		${CP} -p ${PREFIX}/wired/etc/resolv.conf.sample ${PREFIX}/wired/etc/resolv.conf ; \
X	fi
X	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X
Xpost-deinstall:
X	PKG_PREFIX=${PREFIX} ${SH} pkg-deinstall ${PKGNAME} POST-DEINSTALL
X
X.include <bsd.port.mk>
END-of-wired/Makefile
echo x - wired/pkg-plist
sed 's/^X//' >wired/pkg-plist << 'END-of-wired/pkg-plist'
X@unexec if cmp -s %D/wired/etc/certificate.pem.sample %D/wired/etc/certificate.pem; then rm -f %D/wired/etc/certificate.pem; fi
Xwired/etc/certificate.pem.sample
X@exec if [ ! -f %D/wired/etc/certificate.pem ] ; then cp -p %D/%F %B/certificate.pem; fi
X@unexec if cmp -s %D/wired/etc/wired.conf.sample %D/wired/etc/wired.conf; then rm -f %D/wired/etc/wired.conf; fi
Xwired/etc/wired.conf.sample
X@exec if [ ! -f %D/wired/etc/wired.conf ] ; then cp -p %D/%F %B/wired.conf; fi
X@unexec if cmp -s %D/wired/etc/resolv.conf.sample %D/wired/etc/resolv.conf; then rm -f %D/wired/etc/resolv.conf; fi
Xwired/etc/resolv.conf.sample
X@exec if [ ! -f %D/wired/etc/resolv.conf ] ; then cp -p %D/%F %B/resolv.conf; fi
Xwired/files/Uploads/.wired/type
Xwired/files/Drop Box/.wired/type
Xwired/banlist
Xwired/groups
Xwired/news
Xwired/users
Xsbin/hl2wired
Xsbin/wired
Xbin/wiredctl
X@exec mkdir -p %D/wired/tmp
X@dirrmtry wired/tmp
X@dirrmtry wired/files/Uploads/.wired
X@dirrmtry wired/files/Uploads
X@dirrmtry wired/files/Drop\ Box/.wired
X@dirrmtry wired/files/Drop\ Box
X@dirrmtry wired/files
X@dirrmtry wired/etc
X@dirrmtry wired
END-of-wired/pkg-plist
echo x - wired/distinfo
sed 's/^X//' >wired/distinfo << 'END-of-wired/distinfo'
XMD5 (wired-1.3.1.tar.gz) = aecb3d17682377c8d5daa175616f46d0
XSHA256 (wired-1.3.1.tar.gz) = 7c10f229f110e0ce1dd8213e920354d59dca32fed6dc0ba20d785558844a34b9
XSIZE (wired-1.3.1.tar.gz) = 896710
END-of-wired/distinfo
echo x - wired/pkg-install
sed 's/^X//' >wired/pkg-install << 'END-of-wired/pkg-install'
X#!/bin/sh
X#
X# ex:ts=4
X
Xask() {
X	local question default answer
X
X	question=$1
X	default=$2
X	if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
X		read -p "${question} [${default}]? " answer
X	fi
X	echo ${answer:-${default}}
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
Xmake_account() {
X	local u g gcos
X
X	u=$1
X	g=$2
X	gcos=$3
X
X	if pw group show "${g}" >/dev/null 2>&1; then
X		echo "You already have a group \"${g}\", so I will use it."
X	else
X		echo "You need a group \"${g}\"."
X		if which -s pw && yesno "Would you like me to create it" y
X		then
X			pw groupadd ${g} || exit
X			echo "Done."
X		else
X			echo "Please create it, and try again."
X			exit 1
X		fi
X	fi
X    
X	if pw user show "${u}" >/dev/null 2>&1; then
X		echo "You already have a user \"${u}\", so I will use it."
X	else
X		echo "You need a user \"${u}\"."
X		if which -s pw && yesno "Would you like me to create it" y
X		then
X			pw useradd ${u} -g ${g} -c "${gcos}" -d /nonexistent -s /sbin/nologin -h - || exit
X			echo "Done."
X		else
X			echo "Please create it, and try again."
X			exit 1
X		fi
X	fi
X}
X
Xcase $2 in
X
XPRE-INSTALL)
X	make_account wired wired "Wired server"
X	;;
X
XPOST-INSTALL)
X	openssl req -batch -new -x509 -nodes -out ${PKG_PREFIX}/wired/etc/certificate.pem.sample -keyout ${PKG_PREFIX}/wired/etc/certificate.pem.sample;
X	if [ ! -f ${PKG_PREFIX}/wired/etc/certificate.pem ]; then
X		cp -p ${PKG_PREFIX}/wired/etc/certificate.pem.sample ${PKG_PREFIX}/wired/etc/certificate.pem;
X	fi
X	;;
X
Xesac
END-of-wired/pkg-install
echo c - wired/files
mkdir -p wired/files > /dev/null 2>&1
echo x - wired/files/patch-Makefile.in
sed 's/^X//' >wired/files/patch-Makefile.in << 'END-of-wired/files/patch-Makefile.in'
X--- Makefile.in.orig	Sun Jun 18 15:08:08 2006
X+++ Makefile.in	Thu Nov 23 21:07:15 2006
X@@ -12,8 +12,8 @@
X 
X WD_VERSION		= @WD_VERSION@
X WD_MAINTAINER	= @WD_MAINTAINER@
X-WD_USER			= @WD_USER@
X-WD_GROUP		= @WD_GROUP@
X+WD_USER			= wired
X+WD_GROUP		= wired
X 
X DISTFILES		= INSTALL LICENSE NEWS README Makefile Makefile.in \
X 				  config.guess config.status config.h.in config.sub configure \
X@@ -86,7 +86,7 @@
X 
X $(rundir)/wiredctl: $(top_srcdir)/wired/wiredctl.in
X 	@test -d $(@D) || mkdir -p $(@D)
X-	sed -e 's,@wireddir\@,$(fake_prefix)/$(wireddir),g' $< > $@
X+	sed -e 's,@wireddir\@,$(fake_prefix)/$(wireddir),g' -e 's,@prefix\@,$(prefix),g' $< > $@
X 	chmod +x $@
X 
X $(rundir)/etc/wired.conf: $(top_srcdir)/wired/wired.conf.in
X@@ -145,15 +145,15 @@
X 	fi
X 
X 	if [ ! -f $(installdir)/etc/wired.conf ]; then \
X-		$(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/etc/wired.conf $(installdir)/etc/; \
X+		$(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/etc/wired.conf $(installdir)/etc/wired.conf.sample; \
X 	fi
X 
X-	$(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/hl2wired $(installdir)/
X-	$(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wired $(installdir)/
X-	$(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wiredctl $(installdir)/
X+	$(INSTALL) -m 755 -o 0 -g 0 $(rundir)/hl2wired $(prefix)/sbin/
X+	$(INSTALL) -m 755 -o 0 -g 0 $(rundir)/wired $(prefix)/sbin/
X+	$(INSTALL) -m 755 -o 0 -g 0 $(rundir)/wiredctl $(prefix)/bin/
X 
X 	if [ -f /etc/resolv.conf ]; then \
X-		$(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) /etc/resolv.conf $(installdir)/etc/; \
X+		$(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) /etc/resolv.conf $(installdir)/etc/resolv.conf.sample; \
X 	fi
X 
X 	@if [ -f .update ]; then \
X@@ -161,7 +161,7 @@
X 		echo "Update complete!"; \
X 		echo ""; \
X 		echo "You should now run:"; \
X-		echo "    $(installdir)/wiredctl restart"; \
X+		echo "    $(prefix)/bin/wiredctl restart"; \
X 		echo "to restart a running server."; \
X 	else \
X 		echo ""; \
X@@ -172,7 +172,7 @@
X 		echo "Remember to edit $(installdir)/etc/wired.conf if you want to make any changes before starting the server."; \
X 		echo ""; \
X 		echo "When you are done, run:"; \
X-		echo "    $(installdir)/wiredctl start"; \
X+		echo "    $(prefix)/bin/wiredctl start"; \
X 		echo "to start the server."; \
X 	fi
X 
END-of-wired/files/patch-Makefile.in
echo x - wired/files/wired.sh.in
sed 's/^X//' >wired/files/wired.sh.in << 'END-of-wired/files/wired.sh.in'
X#!/bin/sh
X
X# PROVIDE: wired
X# REQUIRE: 
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable this service:
X#
X# wired_enable (bool):   Set to NO by default.
X#               Set it to YES to enable wired.
X#
X
X. %%RC_SUBR%%
X
Xname="wired"
Xrcvar=${name}_enable
X
Xpidfile=%%PREFIX%%/wired/wired.pid
Xcommand=%%PREFIX%%/sbin/${name}
X
Xload_rc_config $name
X
X: ${wired_enable="NO"}
X
Xcommand_args=""
X
Xrun_rc_command "$1"
END-of-wired/files/wired.sh.in
echo x - wired/files/patch-wired-wiredctl.in
sed 's/^X//' >wired/files/patch-wired-wiredctl.in << 'END-of-wired/files/patch-wired-wiredctl.in'
X--- wired/wiredctl.in.orig	Thu Nov 23 19:59:48 2006
X+++ wired/wiredctl.in	Thu Nov 23 20:00:58 2006
X@@ -13,7 +13,7 @@
X CERTIFICATE="@wireddir@/etc/certificate.pem"
X 
X # The path to your wired binary
X-WIRED="@wireddir@/wired"
X+WIRED="@prefix@/sbin/wired"
X 
X # Flags to pass to wired
X WIREDFLAGS="-d @wireddir@ -ll -u"
END-of-wired/files/patch-wired-wiredctl.in
echo x - wired/pkg-deinstall
sed 's/^X//' >wired/pkg-deinstall << 'END-of-wired/pkg-deinstall'
X#! /bin/sh
X#
X# ex:ts=4
X
Xask() {
X	local question default answer
X
X	question=$1
X	default=$2
X	if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
X		read -p "${question} [${default}]? " answer
X	fi
X	echo ${answer:-${default}}
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
Xdelete_account() {
X	local u
X
X	u=$1
X	if yesno "Do you want me to remove user \"${u}\"" n; then
X		pw userdel -n ${u}
X		echo "Done."
X	fi
X}
X
Xcase $2 in
X
XDEINSTALL)
X	if ps -axc | grep -qw wired; then
X		if yesno "Wired is still running. Shall I stop it?" y; then
X			killall wired
X			sleep 2
X		else
X			echo "OK ... I hope you know what you are doing."
X		fi
X	fi
X
X	delete_account wired
X	;;
X
Xesac
END-of-wired/pkg-deinstall
exit
--- wired-1.3.1.shar ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061123203401.2BC8739DB8>