Hinzugefügt:

* Midnight Commander 4.6.1 (GLIB/PKG-CONFIG)
Geändert:
  * OpenLDAP
  * PWLib - Compilier-Optionen
  * make-packages - Funktionen erweitert


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@96 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2006-04-09 17:55:27 +00:00
parent 929a3bfc49
commit f8e5510c0f
13 changed files with 557 additions and 87 deletions

View File

@@ -3,7 +3,7 @@
## ##
## Make packages ##
## ##
## (c) www.ipfire.org - GPL ##
## (c) www.ipfire.org - GPL v2 ##
## ##
########################################################
echo "`date -u '+%b %e %T'`: Packing $1" | tee -a $LOGFILE
@@ -13,13 +13,16 @@ cd / && mkdir -p /paks/$1
#
cp -f /usr/src/src/paks/$1/{,un}install.sh /paks/$1
chmod 755 /paks/$1/{,un}install.sh
tar cfz /paks/$1/files.tgz --files=/usr/src/src/paks/$1/ROOTFILES --exclude='#*'
tar cfz /paks/$1/conf.tgz --files=/usr/src/src/paks/$1/CONFFILES --exclude='#*'
cd /paks/$1 && tar cfz ../$2.tar.gz files.tgz conf.tgz install.sh uninstall.sh && cd ..
tar cvfz /paks/$1/files.tgz --files=/usr/src/src/paks/$1/ROOTFILES --exclude='#*'
tar cvfz /paks/$1/conf.tgz --files=/usr/src/src/paks/$1/CONFFILES --exclude='#*'
cd /paks/$1 && tar cvfz ../$2.tar.gz files.tgz conf.tgz install.sh uninstall.sh && cd ..
md5sum $2.tar.gz >> $2.tar.gz.md5
## Clean up!
#
rm -rf /paks/$1
rm -rf /paks
exit 0

View File

@@ -1,45 +1,45 @@
#!/bin/sh
#
# $Id: setreservedports,v 1.1.2.3 2005/09/07 21:38:50 eoberlander Exp $
# Change https server port only at this time,
# it will be integrate in web interface later
# suggested port for https interface could be 5445
SSH=222
if [ $# -lt 1 ]; then
echo "Give an https port number, recommended value is non-assigned port 5445"
else
if [ "$1" -lt "445" -o "$1" -gt "65535" ]; then
echo "support only a port value from 445 to 65535"
echo "recommended value is non-assigned port 5445"
else
HTTPS=$1
/bin/sed -i -e "s+# TCP 67,68,81.*$+# TCP 67,68,81,$SSH,$HTTPS+" \
-e "s+my @tcp_reserved = (81.*$+my @tcp_reserved = (81,$SSH,$HTTPS);+" \
/home/httpd/cgi-bin/portfw.cgi
# only the second Listen only has {3,5} digits if the first is 81
/bin/sed -i -e "+s+Listen [0-9]\{3,5\}$+Listen $HTTPS+" \
-e "s+<VirtualHost _default_.*$+<VirtualHost _default_:$HTTPS>+" \
/etc/httpd/conf/httpd.conf
/bin/sed -i -e "s+:[0-9]\{3,5\}/\$ENV{'PATH_INFO'}+:$HTTPS/\$ENV{'PATH_INFO'}+" \
/var/ipcop/header.pl
/bin/sed -i -e "s+acl IPFire_https port.*$+acl IPCop_https port $HTTPS+" \
/var/ipcop/proxy/acl
/bin/chown nobody:nobody /var/ipcop/proxy/acl
/bin/sed -i -e "s+acl IPFire_https port.*$+acl IPCop_https port $HTTPS+" \
/var/ipcop/proxy/squid.conf
/bin/chown nobody:nobody /var/ipcop/proxy/squid.conf
# restart everything impacted
/bin/killall httpd
sleep 2
/usr/sbin/httpd
/usr/local/bin/restartsquid
/usr/bin/logger -s -p local0.info "$0 :https port shift to $HTTPS"
fi
fi
#!/bin/sh
#
# $Id: setreservedports,v 1.1.2.3 2005/09/07 21:38:50 eoberlander Exp $
# Change https server port only at this time,
# it will be integrate in web interface later
# suggested port for https interface could be 5445
SSH=222
if [ $# -lt 1 ]; then
echo "Give an https port number, recommended value is non-assigned port 5445"
else
if [ "$1" -lt "444" -o "$1" -gt "65535" ]; then
echo "support only a port value from 445 to 65535"
echo "recommended value is non-assigned port 5445"
else
HTTPS=$1
/bin/sed -i -e "s+# TCP 67,68,81.*$+# TCP 67,68,81,$SSH,$HTTPS+" \
-e "s+my @tcp_reserved = (81.*$+my @tcp_reserved = (81,$SSH,$HTTPS);+" \
/home/httpd/cgi-bin/portfw.cgi
# only the second Listen only has {3,5} digits if the first is 81
/bin/sed -i -e "+s+Listen [0-9]\{3,5\}$+Listen $HTTPS+" \
-e "s+<VirtualHost _default_.*$+<VirtualHost _default_:$HTTPS>+" \
/etc/httpd/conf/httpd.conf
/bin/sed -i -e "s+:[0-9]\{3,5\}/\$ENV{'PATH_INFO'}+:$HTTPS/\$ENV{'PATH_INFO'}+" \
/var/ipcop/header.pl
/bin/sed -i -e "s+acl IPFire_https port.*$+acl IPCop_https port $HTTPS+" \
/var/ipcop/proxy/acl
/bin/chown nobody:nobody /var/ipcop/proxy/acl
/bin/sed -i -e "s+acl IPFire_https port.*$+acl IPCop_https port $HTTPS+" \
/var/ipcop/proxy/squid.conf
/bin/chown nobody:nobody /var/ipcop/proxy/squid.conf
# restart everything impacted
/bin/killall httpd
sleep 2
/usr/sbin/httpd
/usr/local/bin/restartsquid
/usr/bin/logger -s -p local0.info "$0 :https port shift to $HTTPS"
fi
fi