ports/103825: [UPDATE] net/citadel to 6.84

Serge Gagnon serge.gagnon at b2b2c.ca
Fri Sep 29 21:01:01 UTC 2006


>Number:         103825
>Category:       ports
>Synopsis:       [UPDATE] net/citadel to 6.84
>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:   Fri Sep 29 21:00:56 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Serge Gagnon
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
me
>Environment:
System: FreeBSD quenix1.dyndns.org 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri May 19 13:21:57 EDT 2006 root at quenix1.dyndns.org:/usr/obj/usr/src/sys/QUENIX1 i386


>Description:
This is the work we do, me and Brian Ledbetter, to update this ports.
Brian is not at home since much time (last time I speak to him was
in may 2006) and it seems that he didn't get the time or the
opportunity to get online. So, I submit this port for him.
I have included his email in CC, but I don't know if he will/can
respond.

- Update citadel to 6.84

- Instuction on how to update the port (commiter):
o rm -rf ${PORTSDIR}/net/citadel
o cd ${PORTSDIR}/net && sh path_to/citadel.shar

This version of citadel is running on my server since may 2006
without any problem. I have also made a port of webcit (a web
interface to access citadel and also provide http://yourserver/groupdav/
access) that will follow in a couple of hours.

=> This new version (6.84) is running from a week and I didn't get
any problem with.

I didn't make any contribution since a lot of time, I wish that
it is correct.

==> This PR replace PR ports/103536

Thanks
>How-To-Repeat:
>Fix:


--- citadel.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:
#
#	citadel
#	citadel/files
#	citadel/files/README.FreeBSD.in
#	citadel/files/patch-setup.c
#	citadel/files/patch-database_sleepycat.c
#	citadel/files/patch-configure
#	citadel/files/patch-citserver.c
#	citadel/files/patch-Makefile.in
#	citadel/files/citadel.sh.tmpl
#	citadel/files/pkg-message.in
#	citadel/webcit
#	citadel/pkg-descr
#	citadel/pkg-install
#	citadel/pkg-plist
#	citadel/Makefile
#	citadel/distinfo
#
echo c - citadel
mkdir -p citadel > /dev/null 2>&1
echo c - citadel/files
mkdir -p citadel/files > /dev/null 2>&1
echo x - citadel/files/README.FreeBSD.in
sed 's/^X//' >citadel/files/README.FreeBSD.in << 'END-of-citadel/files/README.FreeBSD.in'
XThe first thing to do is to run /usr/local/sbin/citsetup
Xto configure your Citadel/UX system.
X
XThis program is interactive and will ask you five questions.
XHere are the questions and the correct answers.
X
X1:
X%%Question%%
X<Citadel Home Directory>
X
XEnter the subdirectoryname for an alternating installation of Citadel. To do a default installation just leave it blank.If you specify a directory other than the default, you will need to
Xspecify the -h flag to the server when you start it up.
Xnote that it may not have a leading /
XThis is currently set to:
X
XEnter new value or press return to leave unchanged:
X
X%%Answer%%
X'/usr/local' or '${PREFIX}'
X
X2:
X%%Question%%
X<System Administrator>
X
XEnter the name of the system administrator (which is probably
Xyou).  When an account is created with this name, it will
Xautomatically be given administrator-level access.
X
XThis is currently set to:
X
XEnter new value or press return to leave unchanged:
X
X%%Answer%%
X'foobar' Type any value you want here.
X
X3:
X%%Question%%
X<Citadel User ID>
X
XCitadel needs to run under its own user ID.  This would
Xtypically be called "citadel", but if you are running Citadel
Xas a public BBS, you might also call it "bbs" or "guest".
XThe server will run under this user ID.  Please specify that
Xuser ID here.  You may specify either a user name or a numeric
XUID.
X
XThis is currently set to:
Xroot
XEnter new value or press return to leave unchanged:
X
X%%Answer%%
XI strongly suggest you to set anything else than root here.
XOnce citserver is started, it will suid to another user
Xfor security reason.
XI suggest you to type 'citadel'.
X
X4:
X%%Question%%
X<Server IP address>
X
XSpecify the IP address on which your server will run.  If you
Xleave this blank, or if you specify 0.0.0.0, Citadel will listen
Xon all addresses.  You can usually skip this unless you are
Xrunning multiple instances of Citadel on the same computer.
X
XThis is currently set to:
X
XEnter new value or press return to leave unchanged:
X
X%%Answer%%
XThe IP address on which your server will run.
X
X5:
X%%Question%%
X<Server port number>
X
XSpecify the TCP port number on which your server will run.
XNormally, this will be port 504, which is the official port
Xassigned by the IANA for Citadel servers.  You will only need
Xto specify a different port number if you run multiple instances
Xof Citadel on the same computer and there is something else
Xalready using port 504.
X
XThis is currently set to:
X504
XEnter new value or press return to leave unchanged:
X
X%%Answer%%
XLeave unchange unless you really know what you are doing.
X
XThat's all.
END-of-citadel/files/README.FreeBSD.in
echo x - citadel/files/patch-setup.c
sed 's/^X//' >citadel/files/patch-setup.c << 'END-of-citadel/files/patch-setup.c'
X--- setup.c.orig	Thu May 25 04:53:11 2006
X+++ setup.c	Thu May 25 05:12:08 2006
X@@ -1359,10 +1359,24 @@
X 	chmod(ctdl_image_dir, 0700);
X 	chown(ctdl_image_dir, config.c_ctdluid, -1);
X 
X-	/* TODO: where to put this? */
X-	mkdir("netconfigs", 0700);
X-	chmod("netconfigs", 0700);
X-	chown("netconfigs", config.c_ctdluid, -1);
X+#if defined(__FreeBSD__)
X+        mkdir(ctdl_bb_dir, 0700);
X+        chmod(ctdl_bb_dir, 0700);
X+        chown(ctdl_bb_dir, config.c_ctdluid, -1);
X+
X+        mkdir(ctdl_file_dir, 0700);
X+        chmod(ctdl_file_dir, 0700);
X+        chown(ctdl_file_dir, config.c_ctdluid, -1);
X+
X+        mkdir(ctdl_netcfg_dir, 0700);
X+        chmod(ctdl_netcfg_dir, 0700);
X+        chown(ctdl_netcfg_dir, config.c_ctdluid, -1);
X+#else
X+        /* TODO: where to put this? */
X+        mkdir("netconfigs", 0700);
X+        chmod("netconfigs", 0700);
X+        chown("netconfigs", config.c_ctdluid, -1);
X+#endif
X 
X 	/* Delete files and directories used by older Citadel versions */
X 	system("exec /bin/rm -fr ./rooms ./chatpipes ./expressmsgs ./sessions 2>/dev/null");
END-of-citadel/files/patch-setup.c
echo x - citadel/files/patch-database_sleepycat.c
sed 's/^X//' >citadel/files/patch-database_sleepycat.c << 'END-of-citadel/files/patch-database_sleepycat.c'
X--- database_sleepycat.c.orig	Fri Apr  7 11:35:16 2006
X+++ database_sleepycat.c	Sun May 21 21:26:02 2006
X@@ -29,14 +29,7 @@
X #include <sys/stat.h>
X #include <dirent.h>
X 
X-#ifdef HAVE_DB_H
X-#include <db.h>
X-#elif defined(HAVE_DB4_DB_H)
X-#include <db4/db.h>
X-#else
X-#error Neither <db.h> nor <db4/db.h> was found by configure. Install db4-devel.
X-#endif
X-
X+#include <db44/db.h>
X 
X #if DB_VERSION_MAJOR < 4 || DB_VERSION_MINOR < 1
X #error Citadel requires Berkeley DB v4.1 or newer.  Please upgrade.
END-of-citadel/files/patch-database_sleepycat.c
echo x - citadel/files/patch-configure
sed 's/^X//' >citadel/files/patch-configure << 'END-of-citadel/files/patch-configure'
X--- configure.orig	Wed Apr 12 10:43:13 2006
X+++ configure	Sun May 21 23:54:00 2006
X@@ -6893,7 +6893,7 @@
X 
X 
X 
X-for lib in db db-4.1 db-4 db4
X+for lib in db-4.4
X do
X    as_ac_tr_db=`echo "ac_cv_db_lib_${lib}" | $as_tr_sh`
X    bogo_saved_LIBS="$LIBS"
X@@ -8549,7 +8549,7 @@
X 
X 
X 
X-for ac_header in curses.h dl.h fcntl.h limits.h malloc.h termios.h sys/ioctl.h sys/select.h sys/time.h sys/prctl.h syslog.h unistd.h utmp.h utmpx.h paths.h db.h db4/db.h pthread.h netinet/in.h arpa/nameser.h arpa/nameser_compat.h
X+for ac_header in curses.h dl.h fcntl.h limits.h malloc.h termios.h sys/ioctl.h sys/select.h sys/time.h sys/prctl.h syslog.h unistd.h utmp.h utmpx.h paths.h db44/db.h pthread.h netinet/in.h arpa/nameser.h arpa/nameser_compat.h
X do
X as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
X if eval "test \"\${$as_ac_Header+set}\" = set"; then
END-of-citadel/files/patch-configure
echo x - citadel/files/patch-citserver.c
sed 's/^X//' >citadel/files/patch-citserver.c << 'END-of-citadel/files/patch-citserver.c'
X--- citserver.c.orig	Thu May 25 18:00:12 2006
X+++ citserver.c	Thu May 25 18:04:12 2006
X@@ -81,7 +81,11 @@
X 	time(&server_startup_time);
X 
X 	/* pid file.  If we go FSSTND this should end up in 'localstatedir' */
X+#if defined(__FreeBSD__)
X+	snprintf(pid_file_name, sizeof pid_file_name, "/var/run/citadel.pid");
X+#else
X 	snprintf(pid_file_name, sizeof pid_file_name, "./citadel.pid");
X+#endif
X 	pidfile_fp = fopen(pid_file_name, "w");
X 	if (pidfile_fp != NULL) {
X 		fprintf(pidfile_fp, "%d\n", (int)getpid());
END-of-citadel/files/patch-citserver.c
echo x - citadel/files/patch-Makefile.in
sed 's/^X//' >citadel/files/patch-Makefile.in << 'END-of-citadel/files/patch-Makefile.in'
X--- Makefile.in.orig	Fri Apr  7 11:35:16 2006
X+++ Makefile.in	Sun May 21 21:27:27 2006
X@@ -26,7 +26,7 @@
X EXEEXT=@EXEEXT@
X 
X CLIENT_TARGETS=citadel$(EXEEXT) whobbs$(EXEEXT) stress$(EXEEXT)
X-SERVER_TARGETS=citserver setup $(CHKPWD)
X+SERVER_TARGETS=citserver citsetup $(CHKPWD)
X SERV_MODULES=serv_chat.o \
X 	serv_upgrade.o \
X 	serv_smtp.o \
X@@ -66,7 +66,7 @@
X chkpwd_LIBS=@chkpwd_LIBS@
X CC=@CC@
X CFLAGS=@CFLAGS@
X-CPPFLAGS=@CPPFLAGS@ -I.
X+CPPFLAGS=@CPPFLAGS@ -I/usr/local/include -I.
X DATABASE=@DATABASE@
X DEFS=@DEFS@
X LDFLAGS=@LDFLAGS@
X@@ -152,8 +152,8 @@
X 	$(CC) citmail.o config.o citadel_dirs.o $(LDFLAGS) -o citmail $(LIBS)
X 
X # setup does need LIBS defined, because it uses network functions which are in -lsocket -lnsl on Solaris.
X-setup: setup.o tools.o citadel_dirs.o
X-	$(CC) setup.o tools.o citadel_dirs.o $(LDFLAGS) -o setup $(LIBS) $(SETUP_LIBS)
X+citsetup: setup.o tools.o citadel_dirs.o
X+	$(CC) setup.o tools.o citadel_dirs.o $(LDFLAGS) -o citsetup $(LIBS) $(SETUP_LIBS)
X 
X chkpwd: chkpwd.o auth.o config.o citadel_dirs.o
X 	$(CC) chkpwd.o auth.o config.o citadel_dirs.o $(LDFLAGS) -o chkpwd $(chkpwd_LIBS)
X@@ -190,7 +190,7 @@
X install-new: install-exec-new install-data-new install-doc-new
X 	@echo 
X 	@echo Installation is complete.
X-	@echo Now go to your Citadel directory and run 'setup'.
X+	@echo Now go to your Citadel directory and run 'citsetup'.
X 	@echo 
X 
X upgrade: install-exec install-doc
X@@ -209,10 +209,6 @@
X 		echo $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \
X 		$(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \
X 	done
X-	- at if test -d $(root)/etc/pam.d; then \
X-		echo $(INSTALL_DATA) $(srcdir)/citadel.pam $(root)/etc/pam.d/citadel; \
X-		$(INSTALL_DATA) $(srcdir)/citadel.pam $(root)/etc/pam.d/citadel; \
X-	fi
X 
X install-data-new:
X 	@for i in network/spoolin network/spoolout network/systems; do \
X@@ -233,10 +229,6 @@
X 	$(srcdir)/mkinstalldirs $(root)$(SPOOL_DIR)/network/spoolin
X 	$(srcdir)/mkinstalldirs $(root)$(SPOOL_DIR)/network/spoolout
X 	$(srcdir)/mkinstalldirs $(root)$(SPOOL_DIR)/network/systems
X-	- at if test -d $(root)/etc/pam.d; then \
X-		echo $(INSTALL_DATA) $(srcdir)/citadel.pam $(root)/etc/pam.d/citadel; \
X-		$(INSTALL_DATA) $(srcdir)/citadel.pam $(root)/etc/pam.d/citadel; \
X-	fi
X 	@for i in bio bitbucket files images info userpics; do \
X 		$(srcdir)/mkinstalldirs $(root)$(DATA_DIR)/$$i; \
X 	done
X@@ -290,21 +282,21 @@
X 	fi
X 
X install-exec-new: all
X-	$(srcdir)/mkinstalldirs $(root)/usr/sbin; 
X-	$(srcdir)/mkinstalldirs $(root)/usr/bin; 
X+	$(srcdir)/mkinstalldirs $(prefix)/sbin; 
X+	$(srcdir)/mkinstalldirs $(prefix)/bin; 
X 	$(srcdir)/mkinstalldirs $(root)$(DOC_DIR); 
X 	@for i in $(SERVER_TARGETS) $(UTIL_TARGETS); do \
X 		if test -f $$i; then \
X-			echo $(INSTALL) $$i $(root)/usr/sbin/$$i; \
X-			$(INSTALL) $$i $(root)/usr/sbin/$$i; \
X+			echo $(INSTALL) $$i $(prefix)/sbin/$$i; \
X+			$(INSTALL) $$i $(prefix)/sbin/$$i; \
X 		fi \
X 	done
X 
X-	$(INSTALL) citmail $(root)/usr/sbin/sendmail;
X+	$(INSTALL) citmail $(prefix)/sbin/sendmail;
X 	@for i in $(CLIENT_TARGETS); do \
X 		if test -f $$i; then \
X-			echo $(INSTALL) $$i $(root)/usr/bin/$$i; \
X-			$(INSTALL) $$i $(root)/usr/bin/$$i; \
X+			echo $(INSTALL) $$i $(prefix)/bin/$$i; \
X+			$(INSTALL) $$i $(prefix)/bin/$$i; \
X 		fi \
X 	done
X 	@for i in utilsmenu database_cleanup.sh citadel-openldap.schema ; do \
END-of-citadel/files/patch-Makefile.in
echo x - citadel/files/citadel.sh.tmpl
sed 's/^X//' >citadel/files/citadel.sh.tmpl << 'END-of-citadel/files/citadel.sh.tmpl'
X#!/bin/sh
X
X# $FreeBSD$
X#
X# PROVIDE: citadel
X# REQUIRE: LOGIN
X# KEYWORD: shutdown
X#
X# Add the following line to /etc/rc.conf to enable Citadel/UX:
X#
X#  citadel_enable="YES"
X#
X# This scripts takes one of the following commands:
X#
X#   start stop restart
X#
X
Xprefix=%%PREFIX%%
X
X. %%RC_SUBR%%
X
Xload_rc_config citadel
X
X# set defaults
Xcitadel_enable=${citadel_enable:-"NO"}
Xcitadel_user=citadel
X
Xname=citadel
Xrcvar=`set_rcvar`
Xcommand=${prefix}/sbin/citserver
Xcommand_args="-t/var/log/citadel.log"
X
Xstart_cmd="citadel_command start"
Xstop_cmd="citadel_command stop"
Xrestart_cmd="citadel_command restart"
X
Xcitadel_command()
X{
X	case "$1" in
X		[Ss][Tt][Aa][Rr][Tt])
X			echo "Starting Citadel/UX Communications Server."
X			${command} ${command_args} -d
X			;;
X
X		[Ss][Tt][Oo][Pp])
X			echo "Stopping Citadel/UX Communications Server."
X			killall citserver
X			;;
X
X		[Rr][Ee][Ss][Tt][Aa][Rr][Tt])
X			echo "Restarting Citadel/UX Communications Server."
X			killall citserver
X			${command} ${command_args} -d
X			;;
X
X		*)
X			echo "Unknown command: $1"
X			;;
X	esac
X}
X    
Xrun_rc_command "$1"
END-of-citadel/files/citadel.sh.tmpl
echo x - citadel/files/pkg-message.in
sed 's/^X//' >citadel/files/pkg-message.in << 'END-of-citadel/files/pkg-message.in'
X
XCitadel/UX Communications Server 6.81 been installed
Xon your computer. The first thing to do is to run:
X
X  %%PREFIX%%/sbin/citsetup
X
XYou can refer to
X%%DOCSDIR%%/README.FreeBSD to know what you should 
Xanswer to citsetup.
XYou may now start the Server by typing:
X
X  %%PREFIX%%/sbin/citserver -t/var/log/citadel.log -d
X
Xand you can connect to your server by using:
X
X  %%PREFIX%%/bin/citadel
X
XTo start the server up with your computer, rename
X/usr/local/etc/rc.d/citadel.sh.example to
X/usr/local/etc/rc.d/citadel.sh
X
XPlease refer to %%PREFIX%%/share/doc/citadel/ for
Xmore information about configuring and using your
Xnew Citadel/UX Server.  Documentation can also be
Xfound at http://uncensored.citadel.org/citadel/
X
END-of-citadel/files/pkg-message.in
echo c - citadel/webcit
mkdir -p citadel/webcit > /dev/null 2>&1
echo x - citadel/pkg-descr
sed 's/^X//' >citadel/pkg-descr << 'END-of-citadel/pkg-descr'
XCitadel/UX Communications Server
XCopyright (c) 1987-2001 by Art Cancro.
XPortions (c) 1998-2001 by Nathan Bryant, Brian Costello, and Ben Mehlman.
XDocumentation (c) 2000 by Steve Williams.
XHP/UX compatibility layer (c) 2000 by Michael Bremen.
Xbase64 encoding/decoding for MIME parser, public domain by John Walker.
X'parsedate' function, public domain by Steven M. Bellovin, et. al.
X
XWWW: http://www.citadel.org/
XAuthor: Arthur J. Cancro <ajc at uncensored.citadel.org>
XRevision: 6.81
X
XThe Citadel/UX Communications Server provides your
Xenterprise with a powerful alternative to products
Xsuch as Microsoft Exchange.  Citadel/UX provides you
Xwith:
X  - Internet E-Mail (SMTP, POP3, IMAP servers built-in)
X  - Real-time Chatting
X  - Instant Messaging
XRefer to the link above for more information about the 
XCitadel/UX Project.
X
X--
XMaintainer: Brian Ledbetter <brian at shadowcom.net>
XMaintainer: Serge Gagnon <serge.gagnon at b2b2c.ca>
END-of-citadel/pkg-descr
echo x - citadel/pkg-install
sed 's/^X//' >citadel/pkg-install << 'END-of-citadel/pkg-install'
X#! /bin/sh
X
X# $FreeBSD$
X
XPATH=/bin:/usr/sbin
XCITUSER=citadel
X
Xcase $2 in
XPRE-INSTALL)
X	# uid taken from /etc/services entry for citadel
X	UID=504
X	GID=${UID}
X	USER=${CITUSER}
X	GROUP=${USER}
X
X	echo
X	echo "I will now attempt to create the user ${CITUSER} (uid/gid ${UID}).  If you"
X	echo "wish to manually create this user, please press CTRL-C and do so now.  This"
X	echo "port expects the user and group to both be named 'citadel' - modification"
X	echo "to the main Makefile may be required to change this username."
X	echo
X	echo "Press CTRL-C within 5 seconds to stop installation."
X	echo
X	sleep 5
X
X	if pw group show "${GROUP}" 2>/dev/null; then
X		echo "You already have a group \"${GROUP}\", so I will use it."
X	else
X		if pw group add ${GROUP} -g ${GID}; then
X			echo "Added group \"${GROUP}\"."
X		else
X			echo "Adding group \"${GROUP}\" failed..."
X			exit 1
X		fi
X	fi
X
X	if 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 pw user add ${USER} -u ${UID} -g ${GROUP} -h - \
X			-d /usr/local/share/citadel -c "Citadel/UX Server"
X		then
X			echo "Added user \"${USER}\"."
X		else
X			echo "Adding user \"${USER}\" failed..."
X			exit 1
X		fi
X	fi
X
X	if ! [ -x /usr/local/share/citadel ] ; then 
X		mkdir -p /usr/local/share/citadel
X		chown -R ${USER}:${GROUP} /usr/local/share/citadel
X	fi
X	;;
Xesac
END-of-citadel/pkg-install
echo x - citadel/pkg-plist
sed 's/^X//' >citadel/pkg-plist << 'END-of-citadel/pkg-plist'
Xetc/citadel/citadel.rc
Xetc/citadel/mail.aliases
Xetc/citadel/public_clients
X%%DATADIR%%/help/aide
X%%DATADIR%%/help/floors
X%%DATADIR%%/help/hours
X%%DATADIR%%/help/intro
X%%DATADIR%%/help/mail
X%%DATADIR%%/help/network
X%%DATADIR%%/help/nice
X%%DATADIR%%/help/policy
X%%DATADIR%%/help/software
X%%DATADIR%%/help/summary
X%%DATADIR%%/messages/aideopt
X%%DATADIR%%/messages/changepw
X%%DATADIR%%/messages/dotopt
X%%DATADIR%%/messages/entermsg
X%%DATADIR%%/messages/entopt
X%%DATADIR%%/messages/goodbye
X%%DATADIR%%/messages/hello
X%%DATADIR%%/messages/help
X%%DATADIR%%/messages/mainmenu
X%%DATADIR%%/messages/newuser
X%%DATADIR%%/messages/readopt
X%%DATADIR%%/messages/register
X%%DATADIR%%/messages/roomaccess
X%%DATADIR%%/messages/unlisted
X%%DOCSDIR%%/README.FreeBSD
X%%DOCSDIR%%/README.txt
X%%DOCSDIR%%/database_cleanup.sh
X%%DOCSDIR%%/docs/citadel.html
X%%DOCSDIR%%/docs/journaling.html
X%%DOCSDIR%%/docs/macintosh-readme.txt
X%%DOCSDIR%%/docs/windows-readme.txt
X%%DOCSDIR%%/techdoc/PAM.txt
X%%DOCSDIR%%/techdoc/binaries.txt
X%%DOCSDIR%%/techdoc/build.txt
X%%DOCSDIR%%/techdoc/chat.txt
X%%DOCSDIR%%/techdoc/citadelapi.txt
X%%DOCSDIR%%/techdoc/delivery-list.txt
X%%DOCSDIR%%/techdoc/developers.txt
X%%DOCSDIR%%/techdoc/hack.txt
X%%DOCSDIR%%/techdoc/netconfigs.txt
X%%DOCSDIR%%/techdoc/package-setup.txt
X%%DOCSDIR%%/techdoc/protocol.txt
X%%DOCSDIR%%/techdoc/roadmap.txt
X%%DOCSDIR%%/techdoc/views.txt
Xbin/citadel
Xbin/stress
Xbin/whobbs
Xsbin/aidepost
Xsbin/base64
Xsbin/citmail
Xsbin/citserver
Xsbin/msgform
Xsbin/sendcommand
Xsbin/sendmail
Xsbin/citsetup
Xsbin/userlist
X at dirrm %%DOCSDIR%%/techdoc
X at dirrm %%DOCSDIR%%/docs
X at dirrm %%DOCSDIR%%
X at exec mkdir -p %D/%%DATADIR%%/userpics
X at dirrm %%DATADIR%%/userpics
X at dirrm %%DATADIR%%/messages
X at exec mkdir -p %D/%%DATADIR%%/info
X at dirrm %%DATADIR%%/info
X at exec mkdir -p %D/%%DATADIR%%/images
X at dirrm %%DATADIR%%/images
X at dirrm %%DATADIR%%/help
X at exec mkdir -p %D/%%DATADIR%%/files
X at dirrm %%DATADIR%%/files
X at exec mkdir -p %D/%%DATADIR%%/bitbucket
X at dirrm %%DATADIR%%/bitbucket
X at exec mkdir -p %D/%%DATADIR%%/bio
X at dirrm %%DATADIR%%/bio
X at dirrm %%DATADIR%%
X at exec mkdir etc/citadel/netconfigs
X at dirrm etc/citadel/netconfigs
X at dirrm etc/citadel
X
END-of-citadel/pkg-plist
echo x - citadel/Makefile
sed 's/^X//' >citadel/Makefile << 'END-of-citadel/Makefile'
X# New ports collection makefile for:    Citadel/UX
X# Date created:         Tue Jun 12 15:42:14 EDT 2001
X# Whom:                 brian at shadowcom.net
X#
X# $FreeBSD: ports/net/citadel/Makefile,v 1.9 2006/09/02 18:06:13 kris Exp $
X#
X
XPORTNAME=	citadel
XPORTVERSION=	6.84
XCATEGORIES=	net
XMASTER_SITES=	http://easyinstall.citadel.org/
X
XMAINTAINER?=	brian at shadowcom.net
XCOMMENT?=	Citadel/UX Communications Server: Open Groupware for UNIX
X
XLIB_DEPENDS=	db-4.4:${PORTSDIR}/databases/db44 \
X		ical:${PORTSDIR}/devel/libical
X
XWRKSRC=		${WRKDIR}/citadel
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XCONFIGURE_ARGS=	--with-db=${LOCALBASE} \
X		--prefix=${PREFIX} \
X		--exec-prefix=${PREFIX} \
X		--includedir=${LOCALBASE}/include \
X		--with-datadir=${DATADIR} \
X		--with-sysconfdir=${PREFIX}/etc/citadel \
X		--with-docdir=${DOCSDIR} \
X		--with-spooldir=${PREFIX}/var/spool/${PORTNAME} \
X		--with-rundir=${PREFIX}/var/spool/${PORTNAME} \
X		--bindir=${PREFIX}/bin \
X		--sbindir=${PREFIX}/sbin \
X		--libexecdir=${PREFIX}/libexec \
X		--disable-pam \
X		--disable-chkpwd
XMAKE_ARGS=	CFLAGS="${CFLAGS} -DHAVE_DB4_DB_H"
XSBIN_FILES=	aidepost base64 citmail citserver citsetup msgform \
X		sendcommand userlist
XBIN_FILES=	citadel whobbs stress
XSHARE_DIRS=	help messages
XEMPTY_DIRS=	bio bitbucket files images info userpics
XDOCS_DIRS=	docs techdoc
XSUB_FILES=	pkg-message
X
XRCSCRIPT=       ${PREFIX}/etc/rc.d/citadel.sh
XUSE_RC_SUBR=    yes
X
X## Set to "yes" to disable the auto-configuration of the Citadel system
XNO_CONFIG?=	no
X
X# Create user accounts for Citadel6 - DEFAULT UID 504, DEFAULT USERNAME citadel
X# THE pkg-install SCRIPT WILL REQUIRE MODIFICATION IF DIFFERENT VALUES ARE DESIRED
Xpre-install:
X	@ ${SETENV} PKG_PREFIX=${PREFIX} \
X		${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
X
Xdo-install:
X# Install system programs
X	${INSTALL_PROGRAM} ${WRKSRC}/citmail ${PREFIX}/sbin/sendmail
X.for f in ${SBIN_FILES}
X	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/sbin
X.endfor
X
X# Install user programs
X.for f in ${BIN_FILES}
X	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
X.endfor
X
X# Install architecture-independent files
X.for f in ${SHARE_DIRS}
X	cd ${WRKSRC} && \
X	${FIND} ${f} -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
X	${FIND} ${f} -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
X.endfor
X.for f in ${EMPTY_DIRS}
X	${MKDIR} -p ${DATADIR}/${f}
X.endfor
X
X# Install configuration file
X	${MKDIR} -p ${PREFIX}/etc/citadel/netconfigs
X.for f in citadel.rc network/mail.aliases public_clients
X	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/citadel/
X.endfor
X
X# Prepare startup script, logs, home path
X	@echo "rcscript ${FILESDIR}/citadel.sh.tmpl -> ${RCSCRIPT}"
X	${SED} -e "s|%%PREFIX%%|${PREFIX}|g; s|%%RC_SUBR%%|${RC_SUBR}|g" "${FILESDIR}/citadel.sh.tmpl" > "${RCSCRIPT}"
X
X# Set permissions on various items
X	${CHOWN} root:wheel ${RCSCRIPT}
X	${CHMOD} 554 ${RCSCRIPT}
X	${TOUCH} /var/log/citadel.log
X	${CHOWN} citadel:wheel /var/log/citadel.log
X	${CHMOD} 0640 /var/log/citadel.log
X
X# Make spool directory
X.for f in spoolin spoolout systems
X	${MKDIR} -p ${PREFIX}/var/spool/citadel/network/${f}
X.endfor
X
X# Install documentation
X.if !defined{NOPORTDOCS}
X	@echo "docs ${DOCSDIR}"
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.in ${DOCSDIR}/README.FreeBSD
X	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/database_cleanup.sh ${DOCSDIR}
X.  for f in ${DOCS_DIRS}
X	cd ${WRKSRC} && \
X	${FIND} ${f} -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
X	${FIND} ${f} -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
X.endfor
X.endif
X
Xpost-install:
X.if !defined{NO_CONFIG}
X	@echo "Configuring Citadel/UX system..."
X	printf "/\nSystem Administrator\ncitadel\n0.0.0.0\n504\n" > ${WRKDIR}/.config_options && \
X		/usr/local/sbin/citsetup -q < ${WRKDIR}/.config_options && \
X		rm -f ${WRKDIR}/.config_options && \
X		echo "Configuration completed successfully"
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-citadel/Makefile
echo x - citadel/distinfo
sed 's/^X//' >citadel/distinfo << 'END-of-citadel/distinfo'
XMD5 (citadel-6.84.tar.gz) = 93eca1a838a3cbbb0bb22573e32708c3
XSHA256 (citadel-6.84.tar.gz) = cdfae35d4e0fbd0a96ae1e4cfec6d0b354f22759512a14571776cb1abce2abd1
XSIZE (citadel-6.84.tar.gz) = 849799
END-of-citadel/distinfo
exit
--- citadel.shar ends here ---


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



More information about the freebsd-ports-bugs mailing list