# $Id$
-Summary: Citadel/UX, the flexible, powerful way to build online communities
+Summary: Citadel, the flexible, powerful way to build online communities
Name: citadel
-Version: 6.20
+Version: 6.24
Release: 1
Copyright: GPL
Group: Applications/Communications
-Source0: http://uncensored.citadel.org/pub/citadel/citadel-ux-%{PACKAGE_VERSION}.tar.gz
+Source0: http://my.citadel.org/download/citadel-ux-%{PACKAGE_VERSION}.tar.gz
Buildroot: /var/tmp/citadel-%{PACKAGE_VERSION}-root
-Icon: citux-64x64.xpm
-Vendor: Citadel/UX Development Team
+#Icon: citux-64x64.xpm
+Vendor: Citadel Development Team
URL: http://uncensored.citadel.org/citadel/
+
+# I don't think we should actually Require this because we can be configured
+# not to connect to an LDAP server. So we really only require the client
+# libraries, and the runtime dependency on that is detected automatically by
+# RPM.
+#Requires: openldap-servers
+
+# Note some of these BuildRequire's are Linux specific and possibly even
+# distribution specific, but I am adding them FOR NOW just to document the
+# dependencies and make it more likely that everyone is building identical
+# packages.
+BuildRequires: gcc
+BuildRequires: bison
+BuildRequires: glibc-devel
+BuildRequires: openldap-devel
+BuildRequires: db4-devel >= 4.1
+BuildRequires: pam-devel
+
+# Newt is not supported by redhat for binary compatibility with future
+# distributions, so we've disabled it.
+#BuildRequires: newt-devel
+
+BuildRequires: openssl-devel
+BuildRequires: ncurses-devel
+BuildRequires: zlib-devel
+
+# debuginfo packages don't get built unless this packages is installed:
+# NB: We do not DISTRIBUTE the debuginfo packages - error
+BuildRequires: redhat-rpm-config
+
#Autoprov: false
ExcludeOS: hpux
%setup -n citadel
%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --with-pam
+CFLAGS="$RPM_OPT_FLAGS" ./configure --with-pam --enable-autologin --with-ldap --without-newt --with-libical
make
%install
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
make root=$RPM_BUILD_ROOT install
touch $RPM_BUILD_ROOT/usr/local/citadel/.hushlogin
+# Things that shouldn't be "installed" but were anyway
+rm -f $RPM_BUILD_ROOT/"/usr/local/citadel/help/?"
+rm -f $RPM_BUILD_ROOT/usr/local/citadel/README.txt
+rm -rf $RPM_BUILD_ROOT/usr/local/citadel/docs
+rm -rf $RPM_BUILD_ROOT/usr/local/citadel/techdoc
%clean
rm -rf "$RPM_BUILD_ROOT"
%package server
-Summary: Citadel/UX, the flexible, powerful way to build online communities
+Summary: Citadel, the flexible, powerful way to build online communities
Group: System Environment/Daemons
Requires: citadel-data
Obsoletes: citadel
Obsoletes: citadel-ux
+Obsoletes: citadel-smtp
+Obsoletes: citadel-pop3
+Obsoletes: citadel-imap
+Obsoletes: citadel-mrtg
+Obsoletes: citadel-calendar
%description server
-Citadel/UX is an advanced messaging system which can be used for BBS,
-groupware, and online community applications. It is multithreaded,
+Citadel is an advanced messaging system which can be used for BBS, email,
+groupware and online community applications. It is multithreaded,
client/server, database driven, and accessible via a growing selection of
-front ends. Remember to run /usr/local/citadel/setup after installing or
-upgrading this package.
+front ends.
%defattr(-,root,root)
%files server
/etc/pam.d/citadel
-%doc docs/chat.txt
-%doc docs/citadel-with-berkeley-db.txt
-%doc docs/COPYING.txt
-%doc docs/copyright.txt
-%doc docs/import-export.txt
-%doc docs/inetsiteconfig.txt
-%doc docs/mailinglists.txt
-%doc docs/room-sharing-howto.txt
-%doc docs/siteconfig.txt
-%doc docs/sysop.txt
-%doc docs/upgrading.txt
-%doc docs/utils.txt
+%doc docs/*
+%doc techdoc
+%doc README.txt
%dir /usr/local/citadel/bio
%dir /usr/local/citadel/bitbucket
%dir /usr/local/citadel/files
%attr(4755,root,root) /usr/local/citadel/chkpwd
/usr/local/citadel/citmail
/usr/local/citadel/citserver
-/usr/local/citadel/libcitserver.so
-/usr/local/citadel/libcitserver.la
-/usr/local/citadel/migratenet
/usr/local/citadel/msgform
-/usr/local/citadel/readlog
/usr/local/citadel/sendcommand
/usr/local/citadel/setup
-/usr/local/citadel/stats
+/usr/local/citadel/stress
/usr/local/citadel/userlist
/usr/local/citadel/utilsmenu
-/usr/local/citadel/modules/libbio.so
-/usr/local/citadel/modules/libbio.la
-/usr/local/citadel/modules/libchat.so
-/usr/local/citadel/modules/libchat.la
-/usr/local/citadel/modules/libexpire.so
-/usr/local/citadel/modules/libexpire.la
-/usr/local/citadel/modules/libinetcfg.so
-/usr/local/citadel/modules/libinetcfg.la
-/usr/local/citadel/modules/liblistsub.so
-/usr/local/citadel/modules/liblistsub.la
-/usr/local/citadel/modules/libnetfilter.so
-/usr/local/citadel/modules/libnetfilter.la
-/usr/local/citadel/modules/libnetwork.so
-/usr/local/citadel/modules/libnetwork.la
-/usr/local/citadel/modules/libpas2.so
-/usr/local/citadel/modules/libpas2.la
-/usr/local/citadel/modules/librwho.so
-/usr/local/citadel/modules/librwho.la
-/usr/local/citadel/modules/libspam.so
-/usr/local/citadel/modules/libspam.la
-/usr/local/citadel/modules/libupgrade.so
-/usr/local/citadel/modules/libupgrade.la
-/usr/local/citadel/modules/libvandelay.so
-/usr/local/citadel/modules/libvandelay.la
-/usr/local/citadel/modules/libvcard.so
-/usr/local/citadel/modules/libvcard.la
%pre server
# Add the "bbs" user
/usr/sbin/useradd -c "Citadel" -s /bin/false -r -d /usr/local/citadel \
%post server
if [ -f /etc/inittab ]; then
if ! grep 'citserver' /etc/inittab > /dev/null; then
- echo "c1:2345:/usr/local/citadel/citserver -h/usr/local/citadel -t/usr/local/citadel/citserver.trace" >> /etc/inittab
+ echo "c1:2345:respawn:/usr/local/citadel/citserver -h/usr/local/citadel -x7 -llocal4" >> /etc/inittab
fi
fi
if [ -f /etc/services ]; then
echo "citadel 504/tcp # citadel" >> /etc/services
fi
fi
-/sbin/ldconfig -n /usr/local/citadel /usr/local/citadel/modules
cd /usr/local/citadel
/usr/local/citadel/setup -q
%postun server
fi
%package data
-Summary: Data files for the Citadel/UX messaging system.
+Summary: Data files for the Citadel messaging system.
Group: System Environment/Daemons
%description data
-Default data files for the Citadel/UX messaging system. These files are
-required by the Citadel/UX server.
+Default data files for the Citadel messaging system. These files are
+required by the Citadel server.
%defattr(-,root,root)
%files data
/usr/local/citadel/.hushlogin
%dir /usr/local/citadel/network/spoolin
%dir /usr/local/citadel/network/spoolout
%dir /usr/local/citadel/network/systems
-%config(noreplace) /usr/local/citadel/network/filterlist
%config(noreplace) /usr/local/citadel/network/mail.aliases
-%config(noreplace) /usr/local/citadel/network/mailinglists
-%config(noreplace) /usr/local/citadel/network/rnews.xref
%config(noreplace) /usr/local/citadel/public_clients
%config /usr/local/citadel/help/aide
%config /usr/local/citadel/help/software
%post data
# Yes, this is supposed to be executed twice; as ? might not yet exist
# but we want it to be listed. It's kludgey; sue me.
-ls /usr/local/citadel/help > "/usr/local/citadel/help/?"
-ls /usr/local/citadel/help > "/usr/local/citadel/help/?"
+/bin/ls /usr/local/citadel/help > "/usr/local/citadel/help/?"
+/bin/ls /usr/local/citadel/help > "/usr/local/citadel/help/?"
%package client
-Summary: Client for the Citadel/UX messaging system
+Summary: Client for the Citadel messaging system
Group: Applications/Communications
%description client
-This is the text client software for the Citadel/UX messaging system.
-Install this software if you need to connect to a Citadel/UX server.
+This is the text client software for the Citadel messaging system.
+Install this software if you need to connect to a Citadel server.
%defattr(-,root,root)
%files client
/usr/local/citadel/citadel
/usr/local/citadel/citadel.rc
-%doc docs/chat.txt
+/usr/local/citadel/whobbs
%post client
if [ -f /etc/services ]; then
if ! grep '^citadel' /etc/services > /dev/null; then
echo "citadel 504/tcp # citadel" >> /etc/services
fi
fi
-
-%package smtp
-Summary: SMTP server for the Citadel/UX messaging system
-Group: System Environment/Daemons
-Requires: citadel-server
-%description smtp
-This package provides the Citadel/UX SMTP service, which provides inbound
-and outbound SMTP service for the Citadel/UX messaging system. Install this
-package if your Citadel/UX users should be able to send and receive Internet
-e-mail. If you also run another SMTP server you will need to read
-docs/inetmailsetupmx.txt to configure SMTP service.
-%defattr(-,root,root)
-%files smtp
-/usr/local/citadel/modules/libsmtp.so
-/usr/local/citadel/modules/libsmtp.la
-%doc docs/inetmailsetupmx.txt
-%doc docs/inetmailsetup.txt
-
-%package imap
-Summary: IMAP server for the Citadel/UX messaging system
-Group: System Environment/Daemons
-Requires: citadel-server
-%description imap
-This package provides the Citadel/UX IMAP service, which provides IMAP
-connectivity. Install this package if you want to connect to the Citadel/UX
-server with IMAP clients such as Outlook Express or Netscape. Using this
-access method, users can access both e-mail and all public rooms on the server.
-%defattr(-,root,root)
-%files imap
-/usr/local/citadel/modules/libimap.so
-/usr/local/citadel/modules/libimap.la
-
-%package pop3
-Summary: POP3 server for the Citadel/UX messaging system
-Group: System Environment/Daemons
-Requires: citadel-server
-%description pop3
-This package provides the Citadel/UX POP3 service, which provides POP3
-connectivity. Install this package if you want to connect to the Citadel/UX
-server with POP3 clients such as Outlook Express or Netscape. Note that the
-POP3 client can only receive mail; install citadel-smtp as well if you want
-users to be able to send mail.
-%defattr(-,root,root)
-%files pop3
-/usr/local/citadel/modules/libpop3.so
-/usr/local/citadel/modules/libpop3.la
-
-%package mrtg
-Summary: Export Citadel/UX statistics to MRTG
-Group: System Environment/Daemons
-Requires: citadel-server
-Requires: mrtg
-%description mrtg
-This package allows Citadel/UX to export server statistics in a format
-compatible with the Multi Router Traffic Grapher.
-%files mrtg
-/usr/local/citadel/modules/libmrtg.so
-/usr/local/citadel/modules/libmrtg.la
-
-%package calendar
-Summary: Citadel/UX calendaring and scheduling services
-Group: System Environment/Daemons
-Requires: citadel-server
-Requires: libical.so
-%description calendar
-This package provides calendaring and scheduling services for Citadel/UX.
-It will interoperate with other calendaring packages that support the Internet
-standard vCalendar formats. Currently only meeting scheduling is supported.
-(This is an experimental package!)
-%files calendar
-/usr/local/citadel/modules/libcalendar.so
-/usr/local/citadel/modules/libcalendar.la
-