Name: production-server Version: 2.0 Release: 9 Source: ftp://10.1.61.2:/pub/production.tar.gz Copyright: Rebel.com Group: Applications Summary: Files that will setup a production server on a NetWinder Packager: Patrice LaFlamme %description This package installs the necessary files to setup a production server. It installs an NFS-Root image, the tftpboot kernel, the config files for the different services and a perl script to complete the setup. Starting in this version, the server uses eth1 instead of eth0, since the former is faster. %prep %setup -T -D -n p %build cd /home/ftp/pub tar zvcpf nfsroot.tar.gz ./vncroot %install %files /tftpboot /vncroot /home/ftp/pub/tftpboot %config /etc/sysconfig/static-routes %config /etc/rc.d/init.d/dhcpd %config /etc/inetd.conf %config /etc/rc.d/rc.local %config /etc/passwd %config /etc/group %config /etc/ntp.conf %config /etc/ntp/* %dir /etc/ntp /usr/local/bin/setup-server.pl /home/ftp/pub/nfsroot.tar.gz /usr/sbin/in.tftpd /root/reboot /root/shutdown /root/upgrade %pre if [ -d /home/ftp/pub/vncroot ]; then rm -rf /home/ftp/pub/vncroot fi %post cd /home/ftp/pub tar zvxf nfsroot.tar.gz rm nfsroot.tar.gz cd /usr/local/bin adduser service ./setup-server.pl chkconfig --level 3 xntpd on echo "******************************************************" echo "* Don't forget to edit the ntp config files for both *" echo "* the server (/etc) and the client (/vncroot/etc) *" echo "******************************************************" %postun if [ $1 = 0 ]; then cd /home/ftp/pub rm -r vncroot fi %clean rm -f /home/ftp/pub/nfsroot.tar.gz