From: Mark W. <ri...@us...> - 2002-01-28 18:44:53
|
Update of /cvsroot/ipcop/ipcop/lfs/ipcop In directory usw-pr-cvs1:/tmp/cvs-serv29111/lfs/ipcop Modified Files: 90-strip compile-busybox compile-dhcp compile-dhcpcd compile-dnsmasq compile-linux compile-mini_httpd compile-snort compile-squid Added Files: 77-install Removed Files: compile-ibod Log Message: Added basic installer --- NEW FILE: 77-install --- export PATH=/usr/share/i386-linux-uclibc-bin:$PATH && cd /usr/src/install && make && strip install iowrap && install -m 755 install iowrap /install/installroot/bin Index: 90-strip =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/ipcop/90-strip,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 90-strip 2002/01/27 19:17:32 1.2 --- 90-strip 2002/01/28 18:44:50 1.3 *************** *** 1,10 **** #!/bin/sh ! find $LFS/{,usr,usr/local}/{bin,sbin} -type f \ -exec strip --strip-all '{}' ';' ! find $LFS/{,usr,usr/local}/lib -type f \ -exec strip --strip-debug '{}' ';' ! find $LFS/{chroot/httpd,chroot/snort,chroot/squid,chroot/dns-dhcp}/bin -type f \ -exec strip --strip-all '{}' ';' --- 1,10 ---- #!/bin/sh ! find /{,usr,usr/local}/{bin,sbin} -type f \ -exec strip --strip-all '{}' ';' ! find /{usr,usr/local}/lib -type f \ -exec strip --strip-debug '{}' ';' ! find /{chroot/httpd,chroot/snort,chroot/squid,chroot/dns-dhcp}/bin -type f \ -exec strip --strip-all '{}' ';' Index: compile-busybox =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/ipcop/compile-busybox,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** compile-busybox 2002/01/25 17:25:10 1.1 --- compile-busybox 2002/01/28 18:44:50 1.2 *************** *** 37,40 **** for i in ash cat chroot echo gzip gunzip halt insmod ifconfig init ls mkswap \ modprobe mount reboot rmmod sh sleep swapon swapoff tar umount wget ; do ! ln -s busybox $i done --- 37,40 ---- for i in ash cat chroot echo gzip gunzip halt insmod ifconfig init ls mkswap \ modprobe mount reboot rmmod sh sleep swapon swapoff tar umount wget ; do ! ln -sf busybox $i done Index: compile-dhcp =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/ipcop/compile-dhcp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** compile-dhcp 2002/01/27 19:17:32 1.3 --- compile-dhcp 2002/01/28 18:44:50 1.4 *************** *** 6,26 **** mkdir -p /chroot/dns-dhcp/etc /chroot/dns-dhcp/lib /chroot/dns-dhcp/bin && mkdir -p /chroot/dns-dhcp/var/lib/dhcp /chroot/dns-dhcp/var/state/dhcp && ! ln /etc/passwd /chroot/dns-dhcp/etc/passwd && ! ln /etc/group /chroot/dns-dhcp/etc/group && ! ln /etc/nsswitch.conf /chroot/dns-dhcp/etc/nsswitch.conf && ! ln /etc/resolv.conf /chroot/dns-dhcp/etc/resolv.conf && ! ln /etc/localtime /chroot/dns-dhcp/etc/localtime && ! ln /lib/libc-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libc.so.6 && ! ln /lib/libcrypt-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libcrypt.so.1 && ! ln /lib/libdl-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libdl.so.2 && ! ln /lib/libm-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libm.so.6 && ! ln /lib/libnsl-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libnsl.so.1 && ! ln /lib/libnss_compat-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libnss_compat.so.2 && ! ln /lib/libnss_dns-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libnss_dns.so.2 && ! ln /lib/libnss_files-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libnss_files.so.2 && ! ln /lib/libresolv-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libresolv.so.2 && ! ln /lib/libutil-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libutil.so.1 && ! ln /lib/ld-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/ld-linux.so.2 && ! mv /usr/sbin/dhcrelay /chroot/dns-dhcp/bin/ && ! mv /usr/sbin/dhcpd /chroot/dns-dhcp/bin/ && touch /chroot/dns-dhcp/var/lib/dhcp/dhcpd.leases --- 6,26 ---- mkdir -p /chroot/dns-dhcp/etc /chroot/dns-dhcp/lib /chroot/dns-dhcp/bin && mkdir -p /chroot/dns-dhcp/var/lib/dhcp /chroot/dns-dhcp/var/state/dhcp && ! ln -f /etc/passwd /chroot/dns-dhcp/etc/passwd && ! ln -f /etc/group /chroot/dns-dhcp/etc/group && ! ln -f /etc/nsswitch.conf /chroot/dns-dhcp/etc/nsswitch.conf && ! ln -f /etc/resolv.conf /chroot/dns-dhcp/etc/resolv.conf && ! ln -f /etc/localtime /chroot/dns-dhcp/etc/localtime && ! ln -f /lib/libc-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libc.so.6 && ! ln -f /lib/libcrypt-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libcrypt.so.1 && ! ln -f /lib/libdl-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libdl.so.2 && ! ln -f /lib/libm-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libm.so.6 && ! ln -f /lib/libnsl-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libnsl.so.1 && ! ln -f /lib/libnss_compat-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libnss_compat.so.2 && ! ln -f /lib/libnss_dns-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libnss_dns.so.2 && ! ln -f /lib/libnss_files-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libnss_files.so.2 && ! ln -f /lib/libresolv-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libresolv.so.2 && ! ln -f /lib/libutil-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/libutil.so.1 && ! ln -f /lib/ld-${LIBC_VERSION}.so /chroot/dns-dhcp/lib/ld-linux.so.2 && ! mv -f /usr/sbin/dhcrelay /chroot/dns-dhcp/bin/ && ! mv -f /usr/sbin/dhcpd /chroot/dns-dhcp/bin/ && touch /chroot/dns-dhcp/var/lib/dhcp/dhcpd.leases Index: compile-dhcpcd =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/ipcop/compile-dhcpcd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** compile-dhcpcd 2002/01/12 13:48:50 1.1 --- compile-dhcpcd 2002/01/28 18:44:50 1.2 *************** *** 3,5 **** make install && mkdir -p /etc/dhcpc && ! ln -s /etc/dhcpc /etc/dhcpcd --- 3,5 ---- make install && mkdir -p /etc/dhcpc && ! ln -sf /etc/dhcpc /etc/dhcpcd Index: compile-dnsmasq =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/ipcop/compile-dnsmasq,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** compile-dnsmasq 2002/01/27 19:17:32 1.2 --- compile-dnsmasq 2002/01/28 18:44:50 1.3 *************** *** 6,8 **** make && make install && ! mv /usr/sbin/dnsmasq /chroot/dns-dhcp/bin/ --- 6,8 ---- make && make install && ! mv -f /usr/sbin/dnsmasq /chroot/dns-dhcp/bin/ Index: compile-linux =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/ipcop/compile-linux,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** compile-linux 2002/01/19 18:11:37 1.1 --- compile-linux 2002/01/28 18:44:50 1.2 *************** *** 1,4 **** cd /usr/src ! ln -s linux-$V linux tar xfz /usr/src/extrasrc/freeswan*.gz --- 1,4 ---- cd /usr/src ! ln -sf linux-$V linux tar xfz /usr/src/extrasrc/freeswan*.gz Index: compile-mini_httpd =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/ipcop/compile-mini_httpd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** compile-mini_httpd 2002/01/27 19:17:32 1.2 --- compile-mini_httpd 2002/01/28 18:44:50 1.3 *************** *** 9,29 **** LIBC_VERSION=`ls -l /lib/libc-* | awk '{print $NF}' | sed 's%^.*-\(.*\).so.*%\1%'` && mkdir -p /chroot/httpd/etc /chroot/httpd/lib /chroot/httpd/sbin && ! ln /etc/passwd /chroot/httpd/etc/passwd && ! ln /etc/group /chroot/httpd/etc/group && ! ln /etc/nsswitch.conf /chroot/httpd/etc/nsswitch.conf && ! ln /etc/resolv.conf /chroot/httpd/etc/resolv.conf && ! ln /etc/localtime /chroot/httpd/etc/localtime && ! ln /lib/libc-${LIBC_VERSION}.so /chroot/httpd/lib/libc.so.6 && ! ln /lib/libcrypt-${LIBC_VERSION}.so /chroot/httpd/lib/libcrypt.so.1 && ! ln /lib/libdl-${LIBC_VERSION}.so /chroot/httpd/lib/libdl.so.2 && ! ln /lib/libm-${LIBC_VERSION}.so /chroot/httpd/lib/libm.so.6 && ! ln /lib/libnsl-${LIBC_VERSION}.so /chroot/httpd/lib/libnsl.so.1 && ! ln /lib/libnss_compat-${LIBC_VERSION}.so /chroot/httpd/lib/libnss_compat.so.2 && ! ln /lib/libnss_dns-${LIBC_VERSION}.so /chroot/httpd/lib/libnss_dns.so.2 && ! ln /lib/libnss_files-${LIBC_VERSION}.so /chroot/httpd/lib/libnss_files.so.2 && ! ln /lib/libresolv-${LIBC_VERSION}.so /chroot/snort/lib/libresolv.so.2 && ! ln /lib/libutil-${LIBC_VERSION}.so /chroot/httpd/lib/libutil.so.1 && ! ln /lib/ld-${LIBC_VERSION}.so /chroot/httpd/lib/ld-linux.so.2 && ! ln /usr/lib/libssl.so.0.9.6 /chroot/httpd/lib/libssl.so.0.9.6 && ! ln /usr/lib/libcrypto.so.0.9.6 /chroot/httpd/lib/libcrypto.so.0.9.6 && ! ln /usr/sbin/mini_httpd /chroot/httpd/sbin/mini_httpd --- 9,29 ---- LIBC_VERSION=`ls -l /lib/libc-* | awk '{print $NF}' | sed 's%^.*-\(.*\).so.*%\1%'` && mkdir -p /chroot/httpd/etc /chroot/httpd/lib /chroot/httpd/sbin && ! ln -f /etc/passwd /chroot/httpd/etc/passwd && ! ln -f /etc/group /chroot/httpd/etc/group && ! ln -f /etc/nsswitch.conf /chroot/httpd/etc/nsswitch.conf && ! ln -f /etc/resolv.conf /chroot/httpd/etc/resolv.conf && ! ln -f /etc/localtime /chroot/httpd/etc/localtime && ! ln -f /lib/libc-${LIBC_VERSION}.so /chroot/httpd/lib/libc.so.6 && ! ln -f /lib/libcrypt-${LIBC_VERSION}.so /chroot/httpd/lib/libcrypt.so.1 && ! ln -f /lib/libdl-${LIBC_VERSION}.so /chroot/httpd/lib/libdl.so.2 && ! ln -f /lib/libm-${LIBC_VERSION}.so /chroot/httpd/lib/libm.so.6 && ! ln -f /lib/libnsl-${LIBC_VERSION}.so /chroot/httpd/lib/libnsl.so.1 && ! ln -f /lib/libnss_compat-${LIBC_VERSION}.so /chroot/httpd/lib/libnss_compat.so.2 && ! ln -f /lib/libnss_dns-${LIBC_VERSION}.so /chroot/httpd/lib/libnss_dns.so.2 && ! ln -f /lib/libnss_files-${LIBC_VERSION}.so /chroot/httpd/lib/libnss_files.so.2 && ! ln -f /lib/libresolv-${LIBC_VERSION}.so /chroot/snort/lib/libresolv.so.2 && ! ln -f /lib/libutil-${LIBC_VERSION}.so /chroot/httpd/lib/libutil.so.1 && ! ln -f /lib/ld-${LIBC_VERSION}.so /chroot/httpd/lib/ld-linux.so.2 && ! ln -f /usr/lib/libssl.so.0.9.6 /chroot/httpd/lib/libssl.so.0.9.6 && ! ln -f /usr/lib/libcrypto.so.0.9.6 /chroot/httpd/lib/libcrypto.so.0.9.6 && ! ln -f /usr/sbin/mini_httpd /chroot/httpd/sbin/mini_httpd Index: compile-snort =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/ipcop/compile-snort,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** compile-snort 2002/01/27 19:17:32 1.2 --- compile-snort 2002/01/28 18:44:50 1.3 *************** *** 16,35 **** LIBC_VERSION=`ls -l /lib/libc-* | awk '{print $NF}' | sed 's%^.*-\(.*\).so.*%\1%'` && mkdir -p /chroot/snort/etc /chroot/snort/lib /chroot/snort/bin && ! ln /etc/passwd /chroot/snort/etc/passwd && ! ln /etc/group /chroot/snort/etc/group && ! ln /etc/nsswitch.conf /chroot/snort/etc/nsswitch.conf && ! ln /etc/localtime /chroot/snort/etc/localtime && ! ln /lib/libc-${LIBC_VERSION}.so /chroot/snort/lib/libc.so.6 && ! ln /lib/libcrypt-${LIBC_VERSION}.so /chroot/snort/lib/libcrypt.so.1 && ! ln /lib/libdl-${LIBC_VERSION}.so /chroot/snort/lib/libdl.so.2 && ! ln /lib/libm-${LIBC_VERSION}.so /chroot/snort/lib/libm.so.6 && ! ln /lib/libnsl-${LIBC_VERSION}.so /chroot/snort/lib/libnsl.so.1 && ! ln /lib/libnss_compat-${LIBC_VERSION}.so /chroot/snort/lib/libnss_compat.so.2 && ! ln /lib/libnss_dns-${LIBC_VERSION}.so /chroot/snort/lib/libnss_dns.so.2 && ! ln /lib/libnss_files-${LIBC_VERSION}.so /chroot/snort/lib/libnss_files.so.2 && ! ln /lib/libresolv-${LIBC_VERSION}.so /chroot/snort/lib/libresolv.so.2 && ! ln /lib/libutil-${LIBC_VERSION}.so /chroot/snort/lib/libutil.so.1 && ! ln /lib/ld-${LIBC_VERSION}.so /chroot/snort/lib/ld-linux.so.2 && ! ln /usr/lib/libssl.so.0.9.6 /chroot/snort/lib/libssl.so.0.9.6 && ! ln /usr/lib/libcrypto.so.0.9.6 /chroot/snort/lib/libcrypto.so.0.9.6 && ! mv /usr/bin/snort /chroot/snort/bin/ --- 16,35 ---- LIBC_VERSION=`ls -l /lib/libc-* | awk '{print $NF}' | sed 's%^.*-\(.*\).so.*%\1%'` && mkdir -p /chroot/snort/etc /chroot/snort/lib /chroot/snort/bin && ! ln -f /etc/passwd /chroot/snort/etc/passwd && ! ln -f /etc/group /chroot/snort/etc/group && ! ln -f /etc/nsswitch.conf /chroot/snort/etc/nsswitch.conf && ! ln -f /etc/localtime /chroot/snort/etc/localtime && ! ln -f /lib/libc-${LIBC_VERSION}.so /chroot/snort/lib/libc.so.6 && ! ln -f /lib/libcrypt-${LIBC_VERSION}.so /chroot/snort/lib/libcrypt.so.1 && ! ln -f /lib/libdl-${LIBC_VERSION}.so /chroot/snort/lib/libdl.so.2 && ! ln -f /lib/libm-${LIBC_VERSION}.so /chroot/snort/lib/libm.so.6 && ! ln -f /lib/libnsl-${LIBC_VERSION}.so /chroot/snort/lib/libnsl.so.1 && ! ln -f /lib/libnss_compat-${LIBC_VERSION}.so /chroot/snort/lib/libnss_compat.so.2 && ! ln -f /lib/libnss_dns-${LIBC_VERSION}.so /chroot/snort/lib/libnss_dns.so.2 && ! ln -f /lib/libnss_files-${LIBC_VERSION}.so /chroot/snort/lib/libnss_files.so.2 && ! ln -f /lib/libresolv-${LIBC_VERSION}.so /chroot/snort/lib/libresolv.so.2 && ! ln -f /lib/libutil-${LIBC_VERSION}.so /chroot/snort/lib/libutil.so.1 && ! ln -f /lib/ld-${LIBC_VERSION}.so /chroot/snort/lib/ld-linux.so.2 && ! ln -f /usr/lib/libssl.so.0.9.6 /chroot/snort/lib/libssl.so.0.9.6 && ! ln -f /usr/lib/libcrypto.so.0.9.6 /chroot/snort/lib/libcrypto.so.0.9.6 && ! mv -f /usr/bin/snort /chroot/snort/bin/ Index: compile-squid =================================================================== RCS file: /cvsroot/ipcop/ipcop/lfs/ipcop/compile-squid,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** compile-squid 2002/01/27 19:17:32 1.3 --- compile-squid 2002/01/28 18:44:50 1.4 *************** *** 6,31 **** LIBC_VERSION=`ls -l /lib/libc-* | awk '{print $NF}' | sed 's%^.*-\(.*\).so.*%\1%'` && mkdir -p /chroot/squid/etc /chroot/squid/lib /chroot/squid/bin /chroot/squid/var/logs && ! ln /etc/passwd /chroot/squid/etc/passwd && ! ln /etc/group /chroot/squid/etc/group && ! ln /etc/nsswitch.conf /chroot/squid/etc/nsswitch.conf && ! ln /etc/resolv.conf /chroot/squid/etc/resolv.conf && ! ln /etc/localtime /chroot/squid/etc/localtime && ! ln /lib/libc-${LIBC_VERSION}.so /chroot/squid/lib/libc.so.6 && ! ln /lib/libcrypt-${LIBC_VERSION}.so /chroot/squid/lib/libcrypt.so.1 && ! ln /lib/libdl-${LIBC_VERSION}.so /chroot/squid/lib/libdl.so.2 && ! ln /lib/libm-${LIBC_VERSION}.so /chroot/squid/lib/libm.so.6 && ! ln /lib/libnsl-${LIBC_VERSION}.so /chroot/squid/lib/libnsl.so.1 && ! ln /lib/libnss_compat-${LIBC_VERSION}.so /chroot/squid/lib/libnss_compat.so.2 && ! ln /lib/libnss_dns-${LIBC_VERSION}.so /chroot/squid/lib/libnss_dns.so.2 && ! ln /lib/libnss_files-${LIBC_VERSION}.so /chroot/squid/lib/libnss_files.so.2 && ! ln /lib/libresolv-${LIBC_VERSION}.so /chroot/squid/lib/libresolv.so.2 && ! ln /lib/libutil-${LIBC_VERSION}.so /chroot/squid/lib/libutil.so.1 && ! ln /lib/ld-${LIBC_VERSION}.so /chroot/squid/lib/ld-linux.so.2 && ! ln /lib/libpthread-0.9.so /chroot/squid/lib/libpthread.so.0 && ! mv /etc/squid /chroot/squid/etc/ && ! mv /usr/sbin/squid /chroot/squid/bin/ && ! mv /usr/sbin/RunAccel /chroot/squid/bin/ && ! mv /usr/sbin/RunCache /chroot/squid/bin/ && ! mv /usr/sbin/squid /chroot/squid/bin/ && ! mv /usr/lib/squid /chroot/squid/lib/ && rm -rf /var/logs --- 6,31 ---- LIBC_VERSION=`ls -l /lib/libc-* | awk '{print $NF}' | sed 's%^.*-\(.*\).so.*%\1%'` && mkdir -p /chroot/squid/etc /chroot/squid/lib /chroot/squid/bin /chroot/squid/var/logs && ! ln -f /etc/passwd /chroot/squid/etc/passwd && ! ln -f /etc/group /chroot/squid/etc/group && ! ln -f /etc/nsswitch.conf /chroot/squid/etc/nsswitch.conf && ! ln -f /etc/resolv.conf /chroot/squid/etc/resolv.conf && ! ln -f /etc/localtime /chroot/squid/etc/localtime && ! ln -f /lib/libc-${LIBC_VERSION}.so /chroot/squid/lib/libc.so.6 && ! ln -f /lib/libcrypt-${LIBC_VERSION}.so /chroot/squid/lib/libcrypt.so.1 && ! ln -f /lib/libdl-${LIBC_VERSION}.so /chroot/squid/lib/libdl.so.2 && ! ln -f /lib/libm-${LIBC_VERSION}.so /chroot/squid/lib/libm.so.6 && ! ln -f /lib/libnsl-${LIBC_VERSION}.so /chroot/squid/lib/libnsl.so.1 && ! ln -f /lib/libnss_compat-${LIBC_VERSION}.so /chroot/squid/lib/libnss_compat.so.2 && ! ln -f /lib/libnss_dns-${LIBC_VERSION}.so /chroot/squid/lib/libnss_dns.so.2 && ! ln -f /lib/libnss_files-${LIBC_VERSION}.so /chroot/squid/lib/libnss_files.so.2 && ! ln -f /lib/libresolv-${LIBC_VERSION}.so /chroot/squid/lib/libresolv.so.2 && ! ln -f /lib/libutil-${LIBC_VERSION}.so /chroot/squid/lib/libutil.so.1 && ! ln -f /lib/ld-${LIBC_VERSION}.so /chroot/squid/lib/ld-linux.so.2 && ! ln -f /lib/libpthread-0.9.so /chroot/squid/lib/libpthread.so.0 && ! mv -f /etc/squid /chroot/squid/etc/ && ! mv -f /usr/sbin/squid /chroot/squid/bin/ && ! mv -f /usr/sbin/RunAccel /chroot/squid/bin/ && ! mv -f /usr/sbin/RunCache /chroot/squid/bin/ && ! mv -f /usr/sbin/squid /chroot/squid/bin/ && ! mv -f /usr/lib/squid /chroot/squid/lib/ && rm -rf /var/logs --- compile-ibod DELETED --- |