]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Erste Version des Paketerstellers.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 25 Mar 2006 15:06:35 +0000 (15:06 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 25 Mar 2006 15:06:35 +0000 (15:06 +0000)
Bisher nur Postfix. :(

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@84 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

doc/packages-list.txt
lfs/postfix
make.sh
src/paks/postfix/CONFFILES [new file with mode: 0644]
src/paks/postfix/ROOTFILES [new file with mode: 0644]
src/paks/postfix/install.sh [new file with mode: 0755]
src/paks/postfix/uninstall.sh [new file with mode: 0755]
src/scripts/make-packages.sh [new file with mode: 0755]

index 88b4191aec2277d72fb0a30975c9aae911cf1e56..342c21f632480e854db5130ab7b2f4ba0aedb6c3 100644 (file)
-!!! List of softwares used to build IPFire Version:1.4
-* 3c5x9setup-1.00
-* 3cp4218-2003-10-22
-* CnxADSL-TgrATMcln-20041004
-* Compress-Zlib-1.35
-* Digest-1.08
-* Digest-HMAC-1.01
-* Digest-SHA1-2.10
-* GD-2.12
-* HTML-Parser-3.45
-* HTML-Tagset-3.04
-* LPRng-3.8.28
-* Linux-PAM-0.99.3.0
-* Net-DNS-0.47
-* Net-IPv4Addr-0.10
-* Net_SSLeay.pm-1.25
-* Python-2.3.4
-* URI-1.35
-* amedyn-2004-08-04
-* apache_1.3.34
-* arping-2.05
-* as86-0.16.17
-* autoconf-2.59
-* automake-1.8.4
-* bash-2.05b
-* bast-0.9.0
-* beep-1.2.2
-* bind-9.2.5
-* binutils-2.15.90.0.3
-* bison-1.875
-* busybox-0.60.5
-* bzip2-1.0.3
-* capi4k-utils-2004-10-06
-* ccache-2.3
-* cdrtools-2.01
-* coreutils-5.93
-* cxacru-2003-10-05
-* cyrus-sasl-2.1.21
-* db-4.4.20
-* dhcp-3.0.2
-* dhcpcd-1.3.22-pl4
-* diffutils-2.8.1
-* dnsmasq-2.22
-* dosfstools-2.11
-* e2fsprogs-1.35
-* eagle-usb-2.3.2
-* eciadsl-usermode-0.11
-* ed-0.2
-* ethtool-3
-* expat-1.95.7
-* ez-ipupdate-3.0.11b8
-* fcdsl-suse8.2-03.11.02
-* fcdsl2-suse9.0-03.11.04
-* fcdslsl-suse8.2-03.11.02
-* fcdslslusb-suse8.2-03.11.04
-* fcdslusb-suse8.2-03.11.02
-* fcron-2.0.2
-* file-4.16
-* findutils-4.1.20
-* flex-2.5.4a
-* gawk-3.1.3
-* gcc-3.3.3
-* gd-2.0.20
-* gdbm-1.8.3
-* gettext-0.14.1
-* glibc-2.3.3-lfs-5.1
-* gmp-4.1.2
-* gnupg-1.4.2
-* grep-2.5.1
-* groff-1.19
-* grub-0.95
-* gzip-1.3.5
-* hdparm-6.3
-* iana-etc-2.00
-* ibod
-* inetutils-1.4.2
-* ipac-ng-1.31
-* ipaddr-1.2
-* iproute2-2.4.7-now-ss010824
-* iptables-1.3.5
-* iptstate-1.4
-* iputils-ss020927
-* isapnptools-1.26
-* isdn4k-utils.v3.2p1
-* kbd-1.12
-* kudzu-0.99.50
-* less-382
-* libcap-1.10
-* libnet-1.1.2.1
-* libpcap-0.8.3
-* libpng-1.2.8
-* libsafe-2.0-16
-* libsafe_2.0-16
-* libtool-1.5.6
-* libusb-0.1.7
-* libwww-perl-5.803
-* linux-2.4.31
-* linux-atm-2.4.1
-* logrotate-3.7
-* logwatch-6.1.2
-* m4-1.4
-* make-3.80
-* make_devices-1.2
-* man-1.5p
-* man-pages-2.17
-* mbr-1.1.8
-* mingetty-1.06
-* misc-progs
-* mktemp-1.5
-* modutils-2.4.27
-* mtools-3.9.9
-* nano-1.2.4
-* nash
-* nasm-0.98.36
-* ncurses-5.4
-* net-tools-1.60
-* newt-utf8_0.50.17
-* noip_updater_v1.6
-* ntp-4.2.0
-* oinkmaster-1.2
-* openh323_1.12.2
-* openssh-3.9p1
-* openssl-0.9.7i
-* openswan-1.0.10
-* pam_mysql-0.7RC1
-* patch-2.5.4
-* pciutils-2.1.11
-* pcmcia-cs-3.2.8
-* pcre-4.5
-* perl-5.8.5
-* popt-1.7
-* postfix-2.2.9
-* ppp-2.4.2
-* pptp-1.6.0
-* procinfo-18
-* procps-3.2.5
-* psmisc-21.4
-* pulsar-4.0.19
-* pwlib_1.5.2
-* rp-pppoe-3.5
-* rrdtool-1.0.49
-* sed-4.0.9
-* setserial-2.17
-* shadow-4.0.4.1
-* slang-1.4.5-mini
-* snort-2.3.3
-* speedtouch-1.2
-* squid-2.5.STABLE12
-* squid-graph-3.1
-* stund_0.96_Aug13
-* sysklogd-1.4.1
-* syslinux-2.11
-* sysvinit-2.86
-* tar-1.13.25
-* tcpdump-3.8.3
-* texinfo-4.7
-* traceroute-1.4a12
-* uClibc-0.9.26
-* unzip552
-* util-linux-2.12r
-* vim-6.3
-* vlan.1.9
-* wireless_tools.27
-* xampp-linux-1.5.1
-* zlib-1.2.3
+====== List of softwares used to build IPFire Version: 1.4 ======
+  * 3c5x9setup-1.00
+  * 3cp4218-2003-10-22
+  * CnxADSL-TgrATMcln-20041004
+  * Compress-Zlib-1.35
+  * Digest-1.08
+  * Digest-HMAC-1.01
+  * Digest-SHA1-2.10
+  * GD-2.12
+  * HTML-Parser-3.45
+  * HTML-Tagset-3.04
+  * LPRng-3.8.28
+  * Linux-PAM-0.99.3.0
+  * Net-DNS-0.47
+  * Net-IPv4Addr-0.10
+  * Net_SSLeay.pm-1.25
+  * Python-2.3.4
+  * URI-1.35
+  * amedyn-2004-08-04
+  * apache_1.3.34
+  * arping-2.05
+  * as86-0.16.17
+  * autoconf-2.59
+  * automake-1.8.4
+  * bash-2.05b
+  * bast-0.9.0
+  * beep-1.2.2
+  * bind-9.2.5
+  * binutils-2.15.90.0.3
+  * bison-1.875
+  * busybox-0.60.5
+  * bzip2-1.0.3
+  * capi4k-utils-2004-10-06
+  * ccache-2.3
+  * cdrtools-2.01
+  * coreutils-5.93
+  * cxacru-2003-10-05
+  * cyrus-sasl-2.1.21
+  * db-4.4.20
+  * dhcp-3.0.2
+  * dhcpcd-1.3.22-pl4
+  * diffutils-2.8.1
+  * dnsmasq-2.22
+  * dosfstools-2.11
+  * e2fsprogs-1.35
+  * eagle-usb-2.3.2
+  * eciadsl-usermode-0.11
+  * ed-0.2
+  * ethtool-3
+  * expat-1.95.7
+  * ez-ipupdate-3.0.11b8
+  * fcdsl-suse8.2-03.11.02
+  * fcdsl2-suse9.0-03.11.04
+  * fcdslsl-suse8.2-03.11.02
+  * fcdslslusb-suse8.2-03.11.04
+  * fcdslusb-suse8.2-03.11.02
+  * fcron-2.0.2
+  * file-4.16
+  * findutils-4.1.20
+  * flex-2.5.4a
+  * gawk-3.1.3
+  * gcc-3.3.3
+  * gd-2.0.20
+  * gdbm-1.8.3
+  * gettext-0.14.1
+  * glibc-2.3.3-lfs-5.1
+  * gmp-4.1.2
+  * gnupg-1.4.2
+  * grep-2.5.1
+  * groff-1.19
+  * grub-0.95
+  * gzip-1.3.5
+  * hdparm-6.3
+  * iana-etc-2.00
+  * ibod
+  * inetutils-1.4.2
+  * ipac-ng-1.31
+  * ipaddr-1.2
+  * iproute2-2.4.7-now-ss010824
+  * iptables-1.3.5
+  * iptstate-1.4
+  * iputils-ss020927
+  * isapnptools-1.26
+  * isdn4k-utils.v3.2p1
+  * kbd-1.12
+  * kudzu-0.99.50
+  * less-382
+  * libcap-1.10
+  * libnet-1.1.2.1
+  * libpcap-0.8.3
+  * libpng-1.2.8
+  * libsafe-2.0-16
+  * libsafe_2.0-16
+  * libtool-1.5.6
+  * libusb-0.1.7
+  * libwww-perl-5.803
+  * linux-2.4.31
+  * linux-atm-2.4.1
+  * logrotate-3.7
+  * logwatch-6.1.2
+  * m4-1.4
+  * make-3.80
+  * make_devices-1.2
+  * man-1.5p
+  * man-pages-2.17
+  * mbr-1.1.8
+  * mingetty-1.06
+  * misc-progs
+  * mktemp-1.5
+  * modutils-2.4.27
+  * mtools-3.9.9
+  * nano-1.2.4
+  * nash
+  * nasm-0.98.36
+  * ncurses-5.4
+  * net-tools-1.60
+  * newt-utf8_0.50.17
+  * noip_updater_v1.6
+  * ntp-4.2.0
+  * oinkmaster-1.2
+  * openh323_1.12.2
+  * openssh-3.9p1
+  * openssl-0.9.7i
+  * openswan-1.0.10
+  * pam_mysql-0.7RC1
+  * patch-2.5.4
+  * pciutils-2.1.11
+  * pcmcia-cs-3.2.8
+  * pcre-4.5
+  * perl-5.8.5
+  * popt-1.7
+  * postfix-2.2.9
+  * ppp-2.4.2
+  * pptp-1.6.0
+  * procinfo-18
+  * procps-3.2.5
+  * psmisc-21.4
+  * pulsar-4.0.19
+  * pwlib_1.5.2
+  * rp-pppoe-3.5
+  * rrdtool-1.0.49
+  * sed-4.0.9
+  * setserial-2.17
+  * shadow-4.0.4.1
+  * slang-1.4.5-mini
+  * snort-2.3.3
+  * speedtouch-1.2
+  * squid-2.5.STABLE12
+  * squid-graph-3.1
+  * stund_0.96_Aug13
+  * sysklogd-1.4.1
+  * syslinux-2.11
+  * sysvinit-2.86
+  * tar-1.13.25
+  * tcpdump-3.8.3
+  * texinfo-4.7
+  * traceroute-1.4a12
+  * uClibc-0.9.26
+  * unzip552
+  * util-linux-2.12r
+  * vim-6.3
+  * vlan.1.9
+  * wireless_tools.27
+  * xampp-linux-1.5.1
+  * zlib-1.2.3
index 8d388b89328fde38e3a5430419c0878f17ba46f7..35244734f89b8fac9f52fc4cd305a9ddf17ef1f9 100644 (file)
@@ -58,6 +58,9 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
+dist: 
+       make-packages.sh postfix $(THISAPP)
+
 ###############################################################################
 # Downloading, checking, md5sum
 ###############################################################################
@@ -86,4 +89,4 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cp -v /usr/src/config/etc/aliases /etc/aliases
        cd /etc/ && postmap aliases
        @rm -rf $(DIR_APP)
-       @$(POSTBUILD)
+       @$(POSTBUILD)
\ No newline at end of file
diff --git a/make.sh b/make.sh
index 6d20f3c83d744852e3a6d3d82524097833a3e5bb..0743d0627ff500a8d8fc11abb5796314e8685fa8 100644 (file)
--- a/make.sh
+++ b/make.sh
@@ -339,6 +339,37 @@ ipcopmake() {
        return 0
 }
 
+ipfiredist() {
+       if [ -f $BASEDIR/build/usr/src/lfs/$1 ]; then
+               echo "`date -u '+%b %e %T'`: Packaging $1" | tee -a $LOGFILE
+               cp -f $BASEDIR/src/scripts/make-packages.sh $BASEDIR/build/usr/sbin/
+               chroot $LFS /tools/bin/env -i   HOME=/root \
+                                               TERM=$TERM PS1='\u:\w\$ ' \
+                                               PATH=/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin \
+                                               VERSION=$VERSION \
+                                               CONFIG_ROOT=$CONFIG_ROOT \
+                                               NAME="$NAME" SNAME="$SNAME" SLOGAN="$SLOGAN" \
+                                               CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
+                                               CCACHE_DIR=/usr/src/ccache CCACHE_HASHDIR=1 \
+                                               KVER=$KVER \
+                                               BUILDTARGET="$BUILDTARGET" MACHINE="$MACHINE" \
+                   /bin/bash -x -c "cd /usr/src/lfs && \
+                   make -f $1 LFS_BASEDIR=/usr/src dist" >>$LOGFILE 2>&1
+               if [ $? -ne 0 ]; then
+                       exiterror "Packaging $1"
+               fi
+       else
+               exiterror "No such file or directory: $BASEDIR/build/usr/src/lfs/$1"
+       fi
+       if [ -e $BASEDIR/packages ]; then
+               mv -f $BASEDIR/build/paks/* $BASEDIR/packages/
+       else
+               mkdir -p $BASEDIR/packages
+               mv -f $BASEDIR/build/paks/* $BASEDIR/packages/
+       fi
+       return 0
+}
+
 
 installmake() {
        if [ -f $BASEDIR/build/usr/src/lfs/$1 ]; then
@@ -719,6 +750,9 @@ buildpackages() {
   # Create ISO for CDRom and USB-superfloppy
   ipcopmake cdrom
   cp $LFS/install/images/{*.iso,*.tgz} $BASEDIR >> $LOGFILE 2>&1
+  
+  # Build IPFire packages
+  ipfiredist postfix
 
   # Cleanup
   stdumount
diff --git a/src/paks/postfix/CONFFILES b/src/paks/postfix/CONFFILES
new file mode 100644 (file)
index 0000000..4196614
--- /dev/null
@@ -0,0 +1,18 @@
+etc/postfix
+#etc/postfix/LICENSE
+#etc/postfix/TLS_LICENSE
+#etc/postfix/access
+#etc/postfix/aliases
+#etc/postfix/canonical
+#etc/postfix/generic
+#etc/postfix/header_checks
+#etc/postfix/main.cf
+#etc/postfix/main.cf.default
+#etc/postfix/makedefs.out
+#etc/postfix/master.cf
+#etc/postfix/post-install
+#etc/postfix/postfix-files
+#etc/postfix/postfix-script
+#etc/postfix/relocated
+#etc/postfix/transport
+#etc/postfix/virtual
\ No newline at end of file
diff --git a/src/paks/postfix/ROOTFILES b/src/paks/postfix/ROOTFILES
new file mode 100644 (file)
index 0000000..e31d0b5
--- /dev/null
@@ -0,0 +1,117 @@
+##
+## Postfix 2.2.9
+##
+usr/bin/mailq
+usr/bin/newaliases
+usr/libexec/postfix
+#usr/libexec/postfix/anvil
+#usr/libexec/postfix/bounce
+#usr/libexec/postfix/cleanup
+#usr/libexec/postfix/discard
+#usr/libexec/postfix/error
+#usr/libexec/postfix/flush
+#usr/libexec/postfix/lmtp
+#usr/libexec/postfix/local
+#usr/libexec/postfix/master
+#usr/libexec/postfix/nqmgr
+#usr/libexec/postfix/oqmgr
+#usr/libexec/postfix/pickup
+#usr/libexec/postfix/pipe
+#usr/libexec/postfix/proxymap
+#usr/libexec/postfix/qmgr
+#usr/libexec/postfix/qmqpd
+#usr/libexec/postfix/scache
+#usr/libexec/postfix/showq
+#usr/libexec/postfix/smtp
+#usr/libexec/postfix/smtpd
+#usr/libexec/postfix/spawn
+#usr/libexec/postfix/tlsmgr
+#usr/libexec/postfix/trivial-rewrite
+#usr/libexec/postfix/verify
+#usr/libexec/postfix/virtual
+#usr/local/man/man1/mailq.1
+#usr/local/man/man1/newaliases.1
+#usr/local/man/man1/postalias.1
+#usr/local/man/man1/postcat.1
+#usr/local/man/man1/postconf.1
+#usr/local/man/man1/postdrop.1
+#usr/local/man/man1/postfix.1
+#usr/local/man/man1/postkick.1
+#usr/local/man/man1/postlock.1
+#usr/local/man/man1/postlog.1
+#usr/local/man/man1/postmap.1
+#usr/local/man/man1/postqueue.1
+#usr/local/man/man1/postsuper.1
+#usr/local/man/man1/sendmail.1
+#usr/local/man/man5
+#usr/local/man/man5/access.5
+#usr/local/man/man5/aliases.5
+#usr/local/man/man5/body_checks.5
+#usr/local/man/man5/canonical.5
+#usr/local/man/man5/cidr_table.5
+#usr/local/man/man5/generic.5
+#usr/local/man/man5/header_checks.5
+#usr/local/man/man5/ldap_table.5
+#usr/local/man/man5/master.5
+#usr/local/man/man5/mysql_table.5
+#usr/local/man/man5/nisplus_table.5
+#usr/local/man/man5/pcre_table.5
+#usr/local/man/man5/pgsql_table.5
+#usr/local/man/man5/postconf.5
+#usr/local/man/man5/regexp_table.5
+#usr/local/man/man5/relocated.5
+#usr/local/man/man5/transport.5
+#usr/local/man/man5/virtual.5
+#usr/local/man/man8/anvil.8
+#usr/local/man/man8/bounce.8
+#usr/local/man/man8/cleanup.8
+#usr/local/man/man8/defer.8
+#usr/local/man/man8/discard.8
+#usr/local/man/man8/error.8
+#usr/local/man/man8/flush.8
+#usr/local/man/man8/lmtp.8
+#usr/local/man/man8/local.8
+#usr/local/man/man8/master.8
+#usr/local/man/man8/oqmgr.8
+#usr/local/man/man8/pickup.8
+#usr/local/man/man8/pipe.8
+#usr/local/man/man8/proxymap.8
+#usr/local/man/man8/qmgr.8
+#usr/local/man/man8/qmqpd.8
+#usr/local/man/man8/scache.8
+#usr/local/man/man8/showq.8
+#usr/local/man/man8/smtp.8
+#usr/local/man/man8/smtpd.8
+#usr/local/man/man8/spawn.8
+#usr/local/man/man8/tlsmgr.8
+#usr/local/man/man8/trace.8
+#usr/local/man/man8/trivial-rewrite.8
+#usr/local/man/man8/verify.8
+#usr/local/man/man8/virtual.8
+usr/sbin/postalias
+usr/sbin/postcat
+usr/sbin/postconf
+usr/sbin/postdrop
+usr/sbin/postfix
+usr/sbin/postkick
+usr/sbin/postlock
+usr/sbin/postlog
+usr/sbin/postmap
+usr/sbin/postqueue
+usr/sbin/postsuper
+usr/sbin/sendmail
+var/spool/postfix
+var/spool/postfix/active
+var/spool/postfix/bounce
+var/spool/postfix/corrupt
+var/spool/postfix/defer
+var/spool/postfix/deferred
+var/spool/postfix/flush
+var/spool/postfix/hold
+var/spool/postfix/incoming
+var/spool/postfix/maildrop
+var/spool/postfix/pid
+var/spool/postfix/private
+var/spool/postfix/public
+var/spool/postfix/saved
+var/spool/postfix/trace
\ No newline at end of file
diff --git a/src/paks/postfix/install.sh b/src/paks/postfix/install.sh
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/src/paks/postfix/uninstall.sh b/src/paks/postfix/uninstall.sh
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/src/scripts/make-packages.sh b/src/scripts/make-packages.sh
new file mode 100755 (executable)
index 0000000..8cd040e
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/bash
+########################################################
+##                                                           ##
+## Make packages                                             ##
+##                                                           ##
+## (c) www.ipfire.org - GPL                                  ##
+##                                                           ##
+########################################################
+echo "`date -u '+%b %e %T'`: Packing $1" | tee -a $LOGFILE
+cd / && mkdir -p /paks/$1
+
+## Copy install.sh/uninstall.sh to pak-dir and make executeable
+#
+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 ..
+md5sum $2.tar.gz >> $2.tar.gz.md5
+
+## Clean up!
+#
+rm -rf /paks/$1
+
+exit 0
\ No newline at end of file