From 20a6575a354ba5555e08c18a0b1565c4db9f05c3 Mon Sep 17 00:00:00 2001 From: ijliao Date: Sun, 14 Oct 2001 12:40:26 +0000 Subject: add citadel Citadel/UX Communications Server PR: 30807 Submitted by: Brian Ledbetter --- net/Makefile | 1 + net/citadel/Makefile | 48 +++++++++++++++++++ net/citadel/distinfo | 1 + net/citadel/files/patch-aa | 102 ++++++++++++++++++++++++++++++++++++++++ net/citadel/files/patch-ab | 31 +++++++++++++ net/citadel/files/patch-ac | 48 +++++++++++++++++++ net/citadel/files/patch-ad | 21 +++++++++ net/citadel/files/patch-ae | 21 +++++++++ net/citadel/files/patch-af | 14 ++++++ net/citadel/files/patch-ag | 26 +++++++++++ net/citadel/files/patch-ah | 18 ++++++++ net/citadel/files/patch-ai | 55 ++++++++++++++++++++++ net/citadel/files/patch-aj | 18 ++++++++ net/citadel/files/patch-ak | 12 +++++ net/citadel/files/patch-al | 11 +++++ net/citadel/pkg-comment | 1 + net/citadel/pkg-descr | 24 ++++++++++ net/citadel/pkg-install | 16 +++++++ net/citadel/pkg-message | 20 ++++++++ net/citadel/pkg-plist | 113 +++++++++++++++++++++++++++++++++++++++++++++ 20 files changed, 601 insertions(+) create mode 100644 net/citadel/Makefile create mode 100644 net/citadel/distinfo create mode 100644 net/citadel/files/patch-aa create mode 100644 net/citadel/files/patch-ab create mode 100644 net/citadel/files/patch-ac create mode 100644 net/citadel/files/patch-ad create mode 100644 net/citadel/files/patch-ae create mode 100644 net/citadel/files/patch-af create mode 100644 net/citadel/files/patch-ag create mode 100644 net/citadel/files/patch-ah create mode 100644 net/citadel/files/patch-ai create mode 100644 net/citadel/files/patch-aj create mode 100644 net/citadel/files/patch-ak create mode 100644 net/citadel/files/patch-al create mode 100644 net/citadel/pkg-comment create mode 100644 net/citadel/pkg-descr create mode 100644 net/citadel/pkg-install create mode 100644 net/citadel/pkg-message create mode 100644 net/citadel/pkg-plist (limited to 'net') diff --git a/net/Makefile b/net/Makefile index bc1c84555d09..4d4e03907e64 100644 --- a/net/Makefile +++ b/net/Makefile @@ -38,6 +38,7 @@ SUBDIR += cidr SUBDIR += cisco_conf SUBDIR += ciscoconf + SUBDIR += citadel SUBDIR += citrix_ica SUBDIR += click SUBDIR += clog diff --git a/net/citadel/Makefile b/net/citadel/Makefile new file mode 100644 index 000000000000..21ad2197fa64 --- /dev/null +++ b/net/citadel/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: Citadel/UX +# Date created: Tue Jun 12 15:42:14 EDT 2001 +# Whom: brian@shadowcom.net +# +# $FreeBSD$ +# + +PORTNAME= citadel +PORTVERSION= 5.80 +CATEGORIES= net +MASTER_SITES= http://uncensored.citadel.org/pub/citadel/ \ + ftp://ftp.tux.org/pub/net/citadel/ \ + http://www.shadowcom.net/Software/Citadel-UX/ +DISTNAME= ${PORTNAME}-ux-${PORTVERSION} + +MAINTAINER= brian@shadowcom.net + +LIB_DEPENDS= gdbm:${PORTSDIR}/databases/gdbm + +WRKSRC= ${WRKDIR}/citadel +GNU_CONFIGURE= yes +USE_GMAKE= yes + +post-install: + ${STRIP} ${PREFIX}/bin/aidepost + ${STRIP} ${PREFIX}/bin/base64 + ${STRIP} ${PREFIX}/bin/citadel + ${STRIP} ${PREFIX}/bin/citmail + ${STRIP} ${PREFIX}/bin/citserver + ${STRIP} ${PREFIX}/bin/mailinglist + ${STRIP} ${PREFIX}/bin/msgform + ${STRIP} ${PREFIX}/bin/netmailer + ${STRIP} ${PREFIX}/bin/netpoll + ${STRIP} ${PREFIX}/bin/netproc + ${STRIP} ${PREFIX}/bin/netsetup + ${STRIP} ${PREFIX}/bin/qpdecode + ${STRIP} ${PREFIX}/bin/rcit + ${STRIP} ${PREFIX}/bin/readlog + ${STRIP} ${PREFIX}/bin/sendcommand + ${STRIP} ${PREFIX}/bin/citsetup + ${STRIP} ${PREFIX}/bin/stats + ${STRIP} ${PREFIX}/bin/userlist + ${STRIP} ${PREFIX}/bin/whobbs + ${STRIP} ${PREFIX}/share/citadel/modules/*.so + ${PREFIX}/bin/citsetup + ${CAT} ${PKGMESSAGE} + +.include diff --git a/net/citadel/distinfo b/net/citadel/distinfo new file mode 100644 index 000000000000..e1114e21d8a0 --- /dev/null +++ b/net/citadel/distinfo @@ -0,0 +1 @@ +MD5 (citadel-ux-5.80.tar.gz) = b71e7c5295947c9a8cff75dc88b15ee2 diff --git a/net/citadel/files/patch-aa b/net/citadel/files/patch-aa new file mode 100644 index 000000000000..4284d79e12f6 --- /dev/null +++ b/net/citadel/files/patch-aa @@ -0,0 +1,102 @@ +--- Makefile.in.orig Mon Jul 2 23:07:06 2001 ++++ Makefile.in Mon Sep 10 11:00:50 2001 +@@ -24,7 +24,7 @@ + CX=@CX@ + + CLIENT_TARGETS=citadel$(EXEEXT) whobbs$(EXEEXT) +-SERVER_TARGETS=citserver setup $(CHKPWD) ++SERVER_TARGETS=citserver citsetup $(CHKPWD) + SERV_MODULES=modules/serv_chat$(SO) modules/serv_vcard$(SO) \ + modules/serv_upgrade$(SO) \ + modules/serv_smtp$(SO) \ +@@ -224,8 +224,8 @@ + mailinglist: mailinglist.o config.o internetmail.o + $(CC) mailinglist.o config.o internetmail.o $(LDFLAGS) -o mailinglist + +-setup: setup.o tools.o +- $(CC) setup.o tools.o $(CURSES) $(NETLIBS) $(LDFLAGS) -o setup ++citsetup: setup.o tools.o ++ $(CC) setup.o tools.o $(CURSES) $(NETLIBS) $(LDFLAGS) -o citsetup + + chkpwd: chkpwd.o auth.o config.o + $(CC) chkpwd.o auth.o config.o $(LDFLAGS) -o chkpwd $(chkpwd_LIBS) +@@ -269,45 +269,60 @@ + install-data: + @for i in help messages network/spoolin network/spoolout \ + network/systems; do \ +- $(srcdir)/mkinstalldirs $(root)$(prefix)/$$i; \ ++ $(srcdir)/mkinstalldirs $(root)$(prefix)/share/citadel/$$i; \ + done + @for i in citadel.rc public_clients \ + `find $(srcdir)/help $(srcdir)/messages $(srcdir)/network -type f | grep -v CVS`; do \ +- echo $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \ +- $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \ ++ echo $(INSTALL_DATA) $$i $(root)$(prefix)/share/citadel/$$i; \ ++ $(INSTALL_DATA) $$i $(root)$(prefix)/share/citadel/$$i; \ + done + -@if test -d $(root)/etc/pam.d; then \ +- echo $(INSTALL_DATA) $(srcdir)/citadel.pam $(root)/etc/pam.d/citadel; \ +- $(INSTALL_DATA) $(srcdir)/citadel.pam $(root)/etc/pam.d/citadel; \ ++ echo $(INSTALL_DATA) $(srcdir)/citadel.pam $(root)$(prefix)/etc/pam.d/citadel; \ ++ $(INSTALL_DATA) $(srcdir)/citadel.pam $(root)$(prefix)/etc/pam.d/citadel; \ + fi + + install-doc: +- @$(srcdir)/mkinstalldirs $(root)$(prefix)/techdoc ++ @$(srcdir)/mkinstalldirs $(root)$(prefix)/share/doc/citadel/techdoc + @for i in `find $(srcdir)/techdoc -type f | grep -v CVS`; do \ +- echo $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \ +- $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \ ++ echo $(INSTALL_DATA) $$i $(root)$(prefix)/share/doc/citadel/$$i; \ ++ $(INSTALL_DATA) $$i $(root)$(prefix)/share/doc/citadel/$$i; \ ++ done ++ @$(srcdir)/mkinstalldirs $(root)$(prefix)/share/doc/citadel/docs ++ @for i in `find $(srcdir)/docs -type f | grep -v CVS`; do \ ++ echo $(INSTALL_DATA) $$i $(root)$(prefix)/share/doc/citadel/$$i; \ ++ $(INSTALL_DATA) $$i $(root)$(prefix)/share/doc/citadel/$$i; \ + done + + install-exec: all weekly +- @for i in bio bitbucket files images info modules userpics; do \ +- $(srcdir)/mkinstalldirs $(root)$(prefix)/$$i; \ ++ @for i in bio bitbucket files images info modules userpics network/spoolin network/spoolout network/systems; do \ ++ $(srcdir)/mkinstalldirs $(root)$(prefix)/share/citadel/$$i; \ ++ done ++ @echo "This directory contains upload/download files." > $(root)$(prefix)/share/citadel/files/README ++ @for i in $(CLIENT_TARGETS) $(SERVER_TARGETS) $(UTIL_TARGETS) ; do \ ++ if test -f $$i; then \ ++ echo $(INSTALL) $$i $(root)$(prefix)/bin/$$i; \ ++ $(INSTALL) $$i $(root)$(prefix)/bin/$$i; \ ++ fi \ + done +- @for i in $(CLIENT_TARGETS) $(SERVER_TARGETS) $(UTIL_TARGETS) \ +- $(SERV_MODULES) ; do \ ++ @for i in $(SERV_MODULES) ; do \ + if test -f $$i; then \ +- echo $(INSTALL) $$i $(root)$(prefix)/$$i; \ +- $(INSTALL) $$i $(root)$(prefix)/$$i; \ ++ echo $(INSTALL) $$i $(root)$(prefix)/share/citadel/$$i; \ ++ $(INSTALL) $$i $(root)$(prefix)/share/citadel/$$i; \ + fi \ + done + @for i in utilsmenu weekly dnetsetup; do \ + if test -f $(srcdir)/$$i; then \ +- echo $(INSTALL) $(srcdir)/$$i $(root)$(prefix)/$$i; \ +- $(INSTALL) $(srcdir)/$$i $(root)$(prefix)/$$i; \ ++ echo $(INSTALL) $(srcdir)/$$i $(root)$(prefix)/bin/$$i; \ ++ $(INSTALL) $(srcdir)/$$i $(root)$(prefix)/bin/$$i; \ + fi \ + done +- @if test x`find $(root)$(prefix)/chkpwd -user root` = x$(root)$(prefix)/chkpwd; then \ +- echo chmod u+s $(root)$(prefix)/chkpwd; \ +- chmod u+s $(root)$(prefix)/chkpwd; \ ++ echo $(srcdir)/mkinstalldirs $(root)$(prefix)/etc/rc.d ++ $(srcdir)/mkinstalldirs $(root)$(prefix)/etc/rc.d ++ echo $(INSTALL) $(srcdir)/rc-startup-citadel.sh $(root)$(prefix)/etc/rc.d/citadel.sh.example ++ $(INSTALL) $(srcdir)/rc-startup-citadel.sh $(root)$(prefix)/etc/rc.d/citadel.sh.example ++ @if test x`find $(root)$(prefix)/bin/chkpwd -user root` = x$(root)$(prefix)/bin/chkpwd; then \ ++ echo chmod u+s $(root)$(prefix)/bin/chkpwd; \ ++ chmod u+s $(root)$(prefix)/bin/chkpwd; \ + fi + + clean: diff --git a/net/citadel/files/patch-ab b/net/citadel/files/patch-ab new file mode 100644 index 000000000000..fdbacd600c48 --- /dev/null +++ b/net/citadel/files/patch-ab @@ -0,0 +1,31 @@ +*** configure.orig Tue Jun 12 17:04:41 2001 +--- configure Tue Jun 12 17:05:01 2001 +*************** +*** 536,547 **** + + if test "$prefix" = NONE; then + cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h < + #include + #include ++ #if (defined(__unix__) || defined(unix)) && !defined(USG) ++ #include ++ #endif ++ #if !defined(BSD) + #ifdef __GNUC__ + #include ++ #endif + #endif + #ifdef HAVE_PTHREAD_H + #include diff --git a/net/citadel/files/patch-ai b/net/citadel/files/patch-ai new file mode 100644 index 000000000000..b97c23e33cf0 --- /dev/null +++ b/net/citadel/files/patch-ai @@ -0,0 +1,55 @@ +*** netmailer.c.orig Wed Jun 13 09:37:35 2001 +--- netmailer.c Wed Jun 13 09:39:48 2001 +*************** +*** 201,212 **** + char subject[256]; + time_t mid_buf; + time_t now; + int mlist = 0; + + openlog("netmailer", LOG_PID, LOG_USER); + get_config(); + LoadInternetConfig(); +! strcpy(temp, tmpnam(NULL)); /* temp file name */ + + if ((argc < 2) || (argc > 3)) { + fprintf(stderr, "netmailer: usage: " +--- 201,213 ---- + char subject[256]; + time_t mid_buf; + time_t now; ++ int fh; + int mlist = 0; + + openlog("netmailer", LOG_PID, LOG_USER); + get_config(); + LoadInternetConfig(); +! /* strcpy(temp, tmpnam(NULL)); /* temp file name */ + + if ((argc < 2) || (argc > 3)) { + fprintf(stderr, "netmailer: usage: " +*************** +*** 223,231 **** + mlist = 1; + } + /* convert to ASCII & get info */ +! fp = fopen(temp, "w"); + msgform(argv[1], fp, sbuf, rbuf, nbuf, pbuf, &mid_buf, rmname, subject); + fclose(fp); + + strcpy(buf, rmname); + strcpy(rmname, "room_"); +--- 224,236 ---- + mlist = 1; + } + /* convert to ASCII & get info */ +! /* fp = fopen(temp, "w"); */ +! fh = mkstemp( "/tmp/netmailer.XXXXXXXX" ); +! fp = fdopen( fh, "w" ); +! + msgform(argv[1], fp, sbuf, rbuf, nbuf, pbuf, &mid_buf, rmname, subject); + fclose(fp); ++ close(fh); + + strcpy(buf, rmname); + strcpy(rmname, "room_"); diff --git a/net/citadel/files/patch-aj b/net/citadel/files/patch-aj new file mode 100644 index 000000000000..038ca493f374 --- /dev/null +++ b/net/citadel/files/patch-aj @@ -0,0 +1,18 @@ +*** messages/goodbye.orig Tue Sep 5 15:08:12 2000 +--- messages/goodbye Wed Jun 13 10:44:19 2001 +*************** +*** 1,7 **** + +! < this logoff banner resides in ./messages/goodbye > +! +! Thanks for calling ^humannode - please call again soon! +! +! Also be sure to visit UNCENSORED! BBS at uncnsrd.mt-kisco.ny.us + +--- 1,6 ---- ++ Citadel/UX Communications Server - Powered by FreeBSD/i386 + +! < this logoff banner resides in PREFIX/share/citadel/messages/goodbye > +! +! Also be sure to visit UNCENSORED! BBS at uncensored.citadel.org + diff --git a/net/citadel/files/patch-ak b/net/citadel/files/patch-ak new file mode 100644 index 000000000000..08780b1dd494 --- /dev/null +++ b/net/citadel/files/patch-ak @@ -0,0 +1,12 @@ +*** messages/hello.orig Fri May 21 09:45:16 1999 +--- messages/hello Wed Jun 13 10:42:37 2001 +*************** +*** 1,3 **** + +! < this logon banner resides in ./messages/hello > +! +--- 1,4 ---- + +! < this logon banner resides in PREFIX/share/citadel/messages/hello > +! +! Citadel/UX Communications Server - Powered by FreeBSD/i386 diff --git a/net/citadel/files/patch-al b/net/citadel/files/patch-al new file mode 100644 index 000000000000..1ad3bc00fa56 --- /dev/null +++ b/net/citadel/files/patch-al @@ -0,0 +1,11 @@ +--- ipc_c_tcp.c.orig Mon Sep 10 10:45:23 2001 ++++ ipc_c_tcp.c Mon Sep 10 10:45:35 2001 +@@ -315,7 +315,7 @@ + + /* If we're using a unix domain socket we can do a bunch of stuff */ + if (!strcmp(cithost, UDS)) { +- sprintf(sockpath, "citadel.socket"); ++ sprintf(sockpath, "%s/citadel.socket", BBSDIR); + serv_sock = uds_connectsock(sockpath); + if (hostbuf != NULL) strcpy(hostbuf, cithost); + if (portbuf != NULL) strcpy(portbuf, sockpath); diff --git a/net/citadel/pkg-comment b/net/citadel/pkg-comment new file mode 100644 index 000000000000..603e90ba09ae --- /dev/null +++ b/net/citadel/pkg-comment @@ -0,0 +1 @@ +Citadel/UX Communications Server diff --git a/net/citadel/pkg-descr b/net/citadel/pkg-descr new file mode 100644 index 000000000000..c3f0409f80e2 --- /dev/null +++ b/net/citadel/pkg-descr @@ -0,0 +1,24 @@ +Citadel/UX Communications Server +Copyright (c) 1987-2001 by Art Cancro. +Portions (c) 1998-2001 by Nathan Bryant, Brian Costello, and Ben Mehlman. +Documentation (c) 2000 by Steve Williams. +HP/UX compatibility layer (c) 2000 by Michael Bremen. +base64 encoding/decoding for MIME parser, public domain by John Walker. +'parsedate' function, public domain by Steven M. Bellovin, et. al. + +WWW: http://uncensored.citadel.org/citadel/ +Author: Arthur J. Cancro +Revision: 5.80 + +The Citadel/UX Communications Server provides your +enterprise with a powerful alternative to products +such as Microsoft Exchange. Citadel/UX provides you +with: + - Internet E-Mail (SMTP, POP3, IMAP servers built-in) + - Real-time Chatting + - Instant Messaging +Refer to the link above for more information about the +Citadel/UX Project. + +-- +Maintainer: Brian Ledbetter diff --git a/net/citadel/pkg-install b/net/citadel/pkg-install new file mode 100644 index 000000000000..4e5515ac81f4 --- /dev/null +++ b/net/citadel/pkg-install @@ -0,0 +1,16 @@ + +case $2 in + [Pp][Rr][Ee]-[Ii][Nn][Ss][Tt][Aa][Ll][Ll]) + echo "- Installing Citadel/UX Communications Server..." + ;; + + [Pp][Oo][Ss][Tt]-[Ii][Nn][Ss][Tt][Aa][Ll][Ll]) + echo "- Starting the Citadel/UX Setup and Configuration Program..." + ${PKG_PREFIX}/bin/citsetup + echo "- Citadel/UX Communications Server" + echo " Installed PREFIX: ${PKG_PREFIX}" + ;; + +esac + +exit 0 diff --git a/net/citadel/pkg-message b/net/citadel/pkg-message new file mode 100644 index 000000000000..84134dab4b1a --- /dev/null +++ b/net/citadel/pkg-message @@ -0,0 +1,20 @@ + +Citadel/UX Communications Server 5.74 been installed +on your computer. You may start the Server now by +typing: + + ${PREFIX}/bin/citserver -t/var/log/citadel.log -d + +and you can connect to your server by using: + + ${PREFIX}/bin/citadel + +To start the server up with your computer, rename +/usr/local/etc/rc.d/citadel.sh.example to +/usr/local/etc/rc.d/citadel.sh + +Please refer to ${PREFIX}/share/doc/citadel/ for +more information about configuring and using your +new Citadel/UX Server. Documentation can also be +found at http://uncensored.citadel.org/citadel/ + diff --git a/net/citadel/pkg-plist b/net/citadel/pkg-plist new file mode 100644 index 000000000000..14196a4cd9f2 --- /dev/null +++ b/net/citadel/pkg-plist @@ -0,0 +1,113 @@ +@group 3 +@mode 755 +@name citadel-5.80 +@owner 0 +bin/aidepost +bin/base64 +bin/chkpwd +bin/citadel +bin/citmail +bin/citserver +bin/citsetup +bin/dnetsetup +bin/mailinglist +bin/msgform +bin/netmailer +bin/netpoll +bin/netproc +bin/netsetup +bin/qpdecode +bin/rcit +bin/readlog +bin/sendcommand +bin/stats +bin/userlist +bin/utilsmenu +bin/weekly +bin/whobbs +etc/rc.d/citadel.sh.example +share/citadel/citadel.rc +share/citadel/files/README +share/citadel/help/? +share/citadel/help/aide +share/citadel/help/floors +share/citadel/help/hours +share/citadel/help/intro +share/citadel/help/mail +share/citadel/help/network +share/citadel/help/nice +share/citadel/help/policy +share/citadel/help/software +share/citadel/help/summary +share/citadel/messages/aideopt +share/citadel/messages/changepw +share/citadel/messages/dotopt +share/citadel/messages/entermsg +share/citadel/messages/entopt +share/citadel/messages/goodbye +share/citadel/messages/hello +share/citadel/messages/help +share/citadel/messages/mainmenu +share/citadel/messages/newuser +share/citadel/messages/readopt +share/citadel/messages/register +share/citadel/messages/roomaccess +share/citadel/messages/unlisted +share/citadel/modules/serv_bio.so +share/citadel/modules/serv_chat.so +share/citadel/modules/serv_expire.so +share/citadel/modules/serv_imap.so +share/citadel/modules/serv_inetcfg.so +share/citadel/modules/serv_moderate.so +share/citadel/modules/serv_network.so +share/citadel/modules/serv_pas2.so +share/citadel/modules/serv_pop3.so +share/citadel/modules/serv_rwho.so +share/citadel/modules/serv_smtp.so +share/citadel/modules/serv_upgrade.so +share/citadel/modules/serv_vandelay.so +share/citadel/modules/serv_vcard.so +share/citadel/public_clients +share/doc/citadel/techdoc/PAM.txt +share/doc/citadel/techdoc/build.txt +share/doc/citadel/techdoc/chat.txt +share/doc/citadel/techdoc/citadelapi.txt +share/doc/citadel/techdoc/delivery-list.txt +share/doc/citadel/techdoc/developers.txt +share/doc/citadel/techdoc/hack.txt +share/doc/citadel/techdoc/moderation.txt +share/doc/citadel/techdoc/netconfigs.txt +share/doc/citadel/techdoc/session.txt +share/doc/citadel/docs/COPYING.txt +share/doc/citadel/docs/chat.txt +share/doc/citadel/docs/copyright.txt +share/doc/citadel/docs/inetmailsetup.txt +share/doc/citadel/docs/inetmailsetupmx.txt +share/doc/citadel/docs/inetsiteconfig.txt +share/doc/citadel/docs/install.txt +share/doc/citadel/docs/mailinglists.txt +share/doc/citadel/docs/netsetup.txt +share/doc/citadel/docs/network.txt +share/doc/citadel/docs/room-sharing-howto.txt +share/doc/citadel/docs/siteconfig.txt +share/doc/citadel/docs/sysop.txt +share/doc/citadel/docs/upgrading.txt +share/doc/citadel/docs/utils.txt +share/doc/citadel/docs/import-export.txt +@dirrm share/citadel/bio +@dirrm share/citadel/bitbucket +@dirrm share/citadel/data +@dirrm share/citadel/files +@dirrm share/citadel/help +@dirrm share/citadel/images +@dirrm share/citadel/info +@dirrm share/citadel/messages +@dirrm share/citadel/modules +@dirrm share/citadel/netconfigs +@dirrm share/citadel/network/spoolin +@dirrm share/citadel/network +@dirrm share/citadel/userpics +@dirrm share/citadel +@dirrm share/doc/citadel/docs +@dirrm share/doc/citadel/techdoc +@dirrm share/doc/citadel -- cgit