mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
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/ PR: ports/105800 Submitted by: trasz <trasz at pin.if.uz.zgora.pl>
This commit is contained in:
parent
3fc923c38e
commit
a8e0f5eaf9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177939
@ -846,6 +846,7 @@
|
||||
SUBDIR += whois
|
||||
SUBDIR += widentd
|
||||
SUBDIR += wire
|
||||
SUBDIR += wired
|
||||
SUBDIR += wireshark
|
||||
SUBDIR += wireshark-lite
|
||||
SUBDIR += wistumbler2
|
||||
|
39
net/wired/Makefile
Normal file
39
net/wired/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# New ports collection makefile for: wired
|
||||
# Date created: 2006-11-23
|
||||
# Whom: trasz <trasz@pin.if.uz.zgora.pl>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= wired
|
||||
PORTVERSION= 1.3.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.zankasoftware.com/dist/
|
||||
|
||||
MAINTAINER= trasz@pin.if.uz.zgora.pl
|
||||
COMMENT= Wired Server
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
USE_RC_SUBR= wired.sh
|
||||
|
||||
MAN1= hl2wired.1 wiredctl.1
|
||||
MAN5= wired.conf.5
|
||||
MAN8= wired.8
|
||||
|
||||
pre-install:
|
||||
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/wired/etc/wired.conf ]; then \
|
||||
${CP} -p ${PREFIX}/wired/etc/wired.conf.sample ${PREFIX}/wired/etc/wired.conf ; \
|
||||
fi
|
||||
@if [ ! -f ${PREFIX}/wired/etc/resolv.conf ]; then \
|
||||
${CP} -p ${PREFIX}/wired/etc/resolv.conf.sample ${PREFIX}/wired/etc/resolv.conf ; \
|
||||
fi
|
||||
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
post-deinstall:
|
||||
PKG_PREFIX=${PREFIX} ${SH} pkg-deinstall ${PKGNAME} POST-DEINSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/wired/distinfo
Normal file
3
net/wired/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (wired-1.3.1.tar.gz) = aecb3d17682377c8d5daa175616f46d0
|
||||
SHA256 (wired-1.3.1.tar.gz) = 7c10f229f110e0ce1dd8213e920354d59dca32fed6dc0ba20d785558844a34b9
|
||||
SIZE (wired-1.3.1.tar.gz) = 896710
|
61
net/wired/files/patch-Makefile.in
Normal file
61
net/wired/files/patch-Makefile.in
Normal file
@ -0,0 +1,61 @@
|
||||
--- Makefile.in.orig Sun Jun 18 15:08:08 2006
|
||||
+++ Makefile.in Thu Nov 23 21:07:15 2006
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
WD_VERSION = @WD_VERSION@
|
||||
WD_MAINTAINER = @WD_MAINTAINER@
|
||||
-WD_USER = @WD_USER@
|
||||
-WD_GROUP = @WD_GROUP@
|
||||
+WD_USER = wired
|
||||
+WD_GROUP = wired
|
||||
|
||||
DISTFILES = INSTALL LICENSE NEWS README Makefile Makefile.in \
|
||||
config.guess config.status config.h.in config.sub configure \
|
||||
@@ -86,7 +86,7 @@
|
||||
|
||||
$(rundir)/wiredctl: $(top_srcdir)/wired/wiredctl.in
|
||||
@test -d $(@D) || mkdir -p $(@D)
|
||||
- sed -e 's,@wireddir\@,$(fake_prefix)/$(wireddir),g' $< > $@
|
||||
+ sed -e 's,@wireddir\@,$(fake_prefix)/$(wireddir),g' -e 's,@prefix\@,$(prefix),g' $< > $@
|
||||
chmod +x $@
|
||||
|
||||
$(rundir)/etc/wired.conf: $(top_srcdir)/wired/wired.conf.in
|
||||
@@ -145,15 +145,15 @@
|
||||
fi
|
||||
|
||||
if [ ! -f $(installdir)/etc/wired.conf ]; then \
|
||||
- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/etc/wired.conf $(installdir)/etc/; \
|
||||
+ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/etc/wired.conf $(installdir)/etc/wired.conf.sample; \
|
||||
fi
|
||||
|
||||
- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/hl2wired $(installdir)/
|
||||
- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wired $(installdir)/
|
||||
- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wiredctl $(installdir)/
|
||||
+ $(INSTALL) -m 755 -o 0 -g 0 $(rundir)/hl2wired $(prefix)/sbin/
|
||||
+ $(INSTALL) -m 755 -o 0 -g 0 $(rundir)/wired $(prefix)/sbin/
|
||||
+ $(INSTALL) -m 755 -o 0 -g 0 $(rundir)/wiredctl $(prefix)/bin/
|
||||
|
||||
if [ -f /etc/resolv.conf ]; then \
|
||||
- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) /etc/resolv.conf $(installdir)/etc/; \
|
||||
+ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) /etc/resolv.conf $(installdir)/etc/resolv.conf.sample; \
|
||||
fi
|
||||
|
||||
@if [ -f .update ]; then \
|
||||
@@ -161,7 +161,7 @@
|
||||
echo "Update complete!"; \
|
||||
echo ""; \
|
||||
echo "You should now run:"; \
|
||||
- echo " $(installdir)/wiredctl restart"; \
|
||||
+ echo " $(prefix)/bin/wiredctl restart"; \
|
||||
echo "to restart a running server."; \
|
||||
else \
|
||||
echo ""; \
|
||||
@@ -172,7 +172,7 @@
|
||||
echo "Remember to edit $(installdir)/etc/wired.conf if you want to make any changes before starting the server."; \
|
||||
echo ""; \
|
||||
echo "When you are done, run:"; \
|
||||
- echo " $(installdir)/wiredctl start"; \
|
||||
+ echo " $(prefix)/bin/wiredctl start"; \
|
||||
echo "to start the server."; \
|
||||
fi
|
||||
|
11
net/wired/files/patch-wired-wiredctl.in
Normal file
11
net/wired/files/patch-wired-wiredctl.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- wired/wiredctl.in.orig Thu Nov 23 19:59:48 2006
|
||||
+++ wired/wiredctl.in Thu Nov 23 20:00:58 2006
|
||||
@@ -13,7 +13,7 @@
|
||||
CERTIFICATE="@wireddir@/etc/certificate.pem"
|
||||
|
||||
# The path to your wired binary
|
||||
-WIRED="@wireddir@/wired"
|
||||
+WIRED="@prefix@/sbin/wired"
|
||||
|
||||
# Flags to pass to wired
|
||||
WIREDFLAGS="-d @wireddir@ -ll -u"
|
27
net/wired/files/wired.sh.in
Normal file
27
net/wired/files/wired.sh.in
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: wired
|
||||
# REQUIRE:
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# wired_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable wired.
|
||||
#
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="wired"
|
||||
rcvar=${name}_enable
|
||||
|
||||
pidfile=%%PREFIX%%/wired/wired.pid
|
||||
command=%%PREFIX%%/sbin/${name}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${wired_enable="NO"}
|
||||
|
||||
command_args=""
|
||||
|
||||
run_rc_command "$1"
|
56
net/wired/pkg-deinstall
Normal file
56
net/wired/pkg-deinstall
Normal file
@ -0,0 +1,56 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# ex:ts=4
|
||||
|
||||
ask() {
|
||||
local question default answer
|
||||
|
||||
question=$1
|
||||
default=$2
|
||||
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
|
||||
read -p "${question} [${default}]? " answer
|
||||
fi
|
||||
echo ${answer:-${default}}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
delete_account() {
|
||||
local u
|
||||
|
||||
u=$1
|
||||
if yesno "Do you want me to remove user \"${u}\"" n; then
|
||||
pw userdel -n ${u}
|
||||
echo "Done."
|
||||
fi
|
||||
}
|
||||
|
||||
case $2 in
|
||||
|
||||
DEINSTALL)
|
||||
if ps -axc | grep -qw wired; then
|
||||
if yesno "Wired is still running. Shall I stop it?" y; then
|
||||
killall wired
|
||||
sleep 2
|
||||
else
|
||||
echo "OK ... I hope you know what you are doing."
|
||||
fi
|
||||
fi
|
||||
|
||||
delete_account wired
|
||||
;;
|
||||
|
||||
esac
|
5
net/wired/pkg-descr
Normal file
5
net/wired/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
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/
|
80
net/wired/pkg-install
Normal file
80
net/wired/pkg-install
Normal file
@ -0,0 +1,80 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# ex:ts=4
|
||||
|
||||
ask() {
|
||||
local question default answer
|
||||
|
||||
question=$1
|
||||
default=$2
|
||||
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
|
||||
read -p "${question} [${default}]? " answer
|
||||
fi
|
||||
echo ${answer:-${default}}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
make_account() {
|
||||
local u g gcos
|
||||
|
||||
u=$1
|
||||
g=$2
|
||||
gcos=$3
|
||||
|
||||
if pw group show "${g}" >/dev/null 2>&1; then
|
||||
echo "You already have a group \"${g}\", so I will use it."
|
||||
else
|
||||
echo "You need a group \"${g}\"."
|
||||
if which -s pw && yesno "Would you like me to create it" y
|
||||
then
|
||||
pw groupadd ${g} || exit
|
||||
echo "Done."
|
||||
else
|
||||
echo "Please create it, and try again."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if pw user show "${u}" >/dev/null 2>&1; then
|
||||
echo "You already have a user \"${u}\", so I will use it."
|
||||
else
|
||||
echo "You need a user \"${u}\"."
|
||||
if which -s pw && yesno "Would you like me to create it" y
|
||||
then
|
||||
pw useradd ${u} -g ${g} -c "${gcos}" -d /nonexistent -s /sbin/nologin -h - || exit
|
||||
echo "Done."
|
||||
else
|
||||
echo "Please create it, and try again."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
case $2 in
|
||||
|
||||
PRE-INSTALL)
|
||||
make_account wired wired "Wired server"
|
||||
;;
|
||||
|
||||
POST-INSTALL)
|
||||
openssl req -batch -new -x509 -nodes -out ${PKG_PREFIX}/wired/etc/certificate.pem.sample -keyout ${PKG_PREFIX}/wired/etc/certificate.pem.sample;
|
||||
if [ ! -f ${PKG_PREFIX}/wired/etc/certificate.pem ]; then
|
||||
cp -p ${PKG_PREFIX}/wired/etc/certificate.pem.sample ${PKG_PREFIX}/wired/etc/certificate.pem;
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
27
net/wired/pkg-plist
Normal file
27
net/wired/pkg-plist
Normal file
@ -0,0 +1,27 @@
|
||||
@unexec if cmp -s %D/wired/etc/certificate.pem.sample %D/wired/etc/certificate.pem; then rm -f %D/wired/etc/certificate.pem; fi
|
||||
wired/etc/certificate.pem.sample
|
||||
@exec if [ ! -f %D/wired/etc/certificate.pem ] ; then cp -p %D/%F %B/certificate.pem; fi
|
||||
@unexec if cmp -s %D/wired/etc/wired.conf.sample %D/wired/etc/wired.conf; then rm -f %D/wired/etc/wired.conf; fi
|
||||
wired/etc/wired.conf.sample
|
||||
@exec if [ ! -f %D/wired/etc/wired.conf ] ; then cp -p %D/%F %B/wired.conf; fi
|
||||
@unexec if cmp -s %D/wired/etc/resolv.conf.sample %D/wired/etc/resolv.conf; then rm -f %D/wired/etc/resolv.conf; fi
|
||||
wired/etc/resolv.conf.sample
|
||||
@exec if [ ! -f %D/wired/etc/resolv.conf ] ; then cp -p %D/%F %B/resolv.conf; fi
|
||||
wired/files/Uploads/.wired/type
|
||||
wired/files/Drop Box/.wired/type
|
||||
wired/banlist
|
||||
wired/groups
|
||||
wired/news
|
||||
wired/users
|
||||
sbin/hl2wired
|
||||
sbin/wired
|
||||
bin/wiredctl
|
||||
@exec mkdir -p %D/wired/tmp
|
||||
@dirrmtry wired/tmp
|
||||
@dirrmtry wired/files/Uploads/.wired
|
||||
@dirrmtry wired/files/Uploads
|
||||
@dirrmtry wired/files/Drop\ Box/.wired
|
||||
@dirrmtry wired/files/Drop\ Box
|
||||
@dirrmtry wired/files
|
||||
@dirrmtry wired/etc
|
||||
@dirrmtry wired
|
Loading…
Reference in New Issue
Block a user