removed more old stuff
authorArt Cancro <ajc@citadel.org>
Tue, 13 Nov 2018 21:36:07 +0000 (16:36 -0500)
committerArt Cancro <ajc@citadel.org>
Tue, 13 Nov 2018 21:36:07 +0000 (16:36 -0500)
citadel/Makefile.in
citadel/citadel-slapd.conf [deleted file]
citadel/citadel_urlshorteners.rc [deleted file]
citadel/debian/citadel-server.install
citadel/debian/citadel-server.postinst
citadel/include/citadel_dirs.h
citadel/migrate_aliases.sh [deleted file]
citadel/utillib/citadel_dirs.c

index 9ec7b4f42751e8727dc31dd84ea2c6465af7e7b1..f1b1407bc8c62bc47e4c1951f9bab0f900d471d5 100644 (file)
@@ -208,7 +208,7 @@ upgrade: install-exec install-doc
 
 install-data:
        $(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/messages
-       @for i in public_clients citadel_urlshorteners.rc \
+       @for i in public_clients \
                 `find $(srcdir)/messages $(srcdir)/network -type f | grep -v .svn`; do \
                echo $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
                $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
@@ -221,7 +221,6 @@ install-data:
 install-data-new:
        $(srcdir)/mkinstalldirs $(DESTDIR)$(ETC_DIR)/
        $(INSTALL_DATA) $(srcdir)/public_clients $(DESTDIR)$(ETC_DIR)/public_clients
-       $(INSTALL_DATA) $(srcdir)/citadel_urlshorteners.rc $(DESTDIR)$(ETC_DIR)/citadel_urlshorteners.rc
        $(INSTALL_DATA) $(srcdir)/network/mail.aliases $(DESTDIR)$(ETC_DIR)/mail.aliases
 
        $(srcdir)/mkinstalldirs $(DESTDIR)$(STATICDATA_DIR)/messages
@@ -273,7 +272,7 @@ install-exec: all
        $(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/unstripped
        cp $(SERVER_TARGETS) $(DESTDIR)$(prefix)/unstripped/
 
-       @for i in utilsmenu database_cleanup.sh migrate_aliases.sh; do \
+       @for i in utilsmenu database_cleanup.sh ; do \
                if test -f $(srcdir)/$$i; then \
                        echo $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(prefix)/$$i; \
                        $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(prefix)/$$i; \
@@ -293,7 +292,6 @@ install-exec-new: all
                fi \
        done
        cp citserver $(DESTDIR)/$(UTILBIN_DIR)/citserver.unstripped
-       cp migrate_aliases.sh $(DESTDIR)/$(UTILBIN_DIR)/
        @for i in $(UTILBIN_TARGETS); do \
                if test -f $$i; then \
                        echo $(INSTALL) $$i $(DESTDIR)/$(UTILBIN_DIR)/$$i; \
diff --git a/citadel/citadel-slapd.conf b/citadel/citadel-slapd.conf
deleted file mode 100644 (file)
index d4b3cf6..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-# This is a sample OpenLDAP configuration file (usually placed in
-# /etc/openldap/slapd.conf) for use with the Citadel LDAP connector.
-#
-# In this sample, we have a server called "servername.domain.org" and
-# we've built our directory tree's Base DN using the components of that
-# domain name.  You can change this if you'd like.
-#
-# Once you've got this in place, all you have to do is run slapd, configure
-# Citadel to point its LDAP connector at it, and run the IGAB command to
-# initialize the directory.
-
-# A sample schema is included, but you're probably better off
-# just going with "schemacheck off" and using whatever schema came with
-# your system's slapd.
-#
-# include /usr/local/citadel/citadel-openldap.schema
-
-pidfile                /usr/local/citadel/openldap-data/slapd.pid
-argsfile       /usr/local/citadel/openldap-data/slapd.args
-
-database       ldbm
-schemacheck    off
-allow          bind_v2
-suffix         "dc=servername,dc=domain,dc=org"
-rootdn         "cn=manager,dc=servername,dc=domain,dc=org"
-rootpw         secret
-
-directory      /usr/local/citadel/openldap-data
-
-index          objectClass     eq
diff --git a/citadel/citadel_urlshorteners.rc b/citadel/citadel_urlshorteners.rc
deleted file mode 100644 (file)
index 72bd628..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-# these URLs will be expanded when fetching them from 
-# RSS-Feeds with short contents (like twitter feeds)
-# we expect to find a 30x location header, if we find it, 
-# we put it in front of that URL, so the full information
-# whether one wants to click that or not can be expanded.
-http://bit.ly/
-http://krz.ch/
-http://flic.kr/
-http://sns.ly/
-http://wp.me/
-http://ow.ly/
-http://tinyurl.com/
-http://goo.gl/
-http://dld.bz/
-http://tiny.cc/
-http://j.mp/
-http://su.pr/
-#Posting Images to twitter: http://yfrog.com/
-http://t.co/
-http://nblo.gs/
-http://0x4d.ch/
-http://fb.me/
-http://tagi.ch/
-http://post.ly/
-http://aol.it/
index 1676e27f94f996700a20dba4423e9cc356e8b2cb..da69209d50ef4b77225423bbe8683c535be667f2 100644 (file)
@@ -1,6 +1,5 @@
 etc/citadel/mail.aliases
 etc/citadel/public_clients
-etc/citadel/citadel_urlshorteners.rc
 usr/share/citadel-server/help
 etc/citadel/messages
 usr/lib/citadel-server/ctdlmigrate 
@@ -9,7 +8,6 @@ usr/lib/citadel-server/base64
 usr/lib/citadel-server/chkpwd
 usr/lib/citadel-server/chkpw
 usr/lib/citadel-server/citserver.unstripped
-usr/lib/citadel-server/migrate_aliases.sh
 usr/lib/citadel-server/aidepost
 usr/sbin/citmail
 usr/lib/citadel-server/msgform
index b5227a4c2bf149b7efe2c3d15043aada8fa5f8f6..b07a655f510f3b1ee2325b94d1c579d5358104c9 100644 (file)
@@ -52,10 +52,8 @@ case "$1" in
         echo -n "applying your settings.... "
         /usr/lib/citadel-server/setup -q
        echo "done"
-        # we're in a fresh install, so we send the welcome message.
+        # this is a new installation
         if test -z "$2"; then
-           echo "migrating mail aliases from other mailers"
-           /usr/lib/citadel-server/migrate_aliases.sh /etc/citadel/mail.aliases
            i=0;
            while test ! -S /var/run/citadel/lmtp.socket -a "$i" -lt "10"; do
                sleep 1
index 8f532dace17867ac3412145c25f6d164e8bb0476..6956a281039c36170cc704b0fe78a917f6415d0d 100644 (file)
@@ -34,7 +34,6 @@ extern char ctdl_utilbin_dir[PATH_MAX];
 /* some of the frequently used files */
 extern char file_citadel_control[PATH_MAX];
 extern char file_citadel_config[PATH_MAX];
-extern char file_citadel_urlshorteners[PATH_MAX];
 extern char file_lmtp_socket[PATH_MAX];
 extern char file_lmtp_unfiltered_socket[PATH_MAX];
 extern char file_arcq[PATH_MAX];
diff --git a/citadel/migrate_aliases.sh b/citadel/migrate_aliases.sh
deleted file mode 100755 (executable)
index bc5c31e..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-if test -z "$1"; then
-    echo "Usage: $0 mail.aliases"
-    exit
-fi
-
-CITALIAS=$1
-if test -f /etc/aliases; then
-# don't work with temp fils, so they can't get hijacked.
-# sorry users with megabytes of aliases.
-    NLINES=`cat /etc/aliases | \
-       sed -e "s; *;;g" \
-            -e "s;\t*;;g" | \
-       grep -v ^root: | \
-       grep -v ^# | \
-       sed -e "s;:root;,room_aide;" \
-            -e "s;:;,;" |wc -l`
-    
-    for ((i=1; i <= $NLINES; i++)); do 
-       ALIAS=`    cat /etc/aliases | \
-       sed -e "s; *;;g" \
-            -e "s;\t*;;g" | \
-       grep -v ^root: | \
-       grep -v ^# | \
-       sed -e "s;:root;,room_aide;" \
-            -e "s;:;,;" |head -n $i |tail -n 1`
-       ORG=`echo $ALIAS|sed "s;,.*;;"`
-       if grep "$ORG" "$CITALIAS"; then
-           echo "Ignoring Alias $ORG as its already there"
-       else
-           echo "$ALIAS" >>$CITALIAS
-       fi
-    done
-else
-    echo "no /etc/aliases found."
-fi 
\ No newline at end of file
index a642ac8060906f03825237faef4077cbc8079bb2..afb2b544163a66f25f104bfabad72c90c106e4c1 100644 (file)
@@ -51,7 +51,6 @@ char ctdl_bin_dir[PATH_MAX]="";
 /* some of our files, that are needed in several places */
 char file_citadel_control[PATH_MAX]="";
 char file_citadel_config[PATH_MAX]="";
-char file_citadel_urlshorteners[PATH_MAX]="";
 char file_lmtp_socket[PATH_MAX]="";
 char file_lmtp_unfiltered_socket[PATH_MAX]="";
 char file_arcq[PATH_MAX]="";
@@ -198,11 +197,6 @@ void calc_dirs_n_files(int relh, int home, const char *relhome, char  *ctdldir,
                         "%scitadel.config",
                         ctdl_autoetc_dir);
        StripSlashes(file_citadel_config, 0);
-       snprintf(file_citadel_urlshorteners, 
-                        sizeof file_citadel_urlshorteners,
-                        "%scitadel_urlshorteners.rc",
-                        ctdl_etc_dir);
-       StripSlashes(file_citadel_urlshorteners, 0);
        snprintf(file_lmtp_socket, 
                         sizeof file_lmtp_socket,
                         "%slmtp.socket",