#!/bin/sh
#item   ####description                                      ###on off ###
TMP=/var/log/setup/tmp
if [ ! -d $TMP ]; then
  mkdir -p $TMP
fi
cat /dev/null > $TMP/SeTnewtag
dialog --title "SELECTING PACKAGES FROM SERIES N (NETWORK/NEWS/MAIL/UUCP)" \
       --checklist "Please confirm the packages you wish to install \
from series N.  Use the UP/DOWN keys to scroll through the list, and \
the SPACE key to deselect any items you don't want to install.  \
Press ENTER when you are done." \
21 72 11 \
"MailScanner" "Mailscanner" "on" \
"alpine" "Alpine menu-driven mail program" "on" \
"autofs" "Linux automounter" "on" \
"avahi" "service discovery aka zeroconf" "on" \
"biff+comsat" "Announces email delivery" "on" \
"bind" "Berkeley Internet Name Domain server" "on" \
"bluez" "Bluetooth userspace (libs/utils) support" "on" \
"bluez-firmware" "Firmware for Bluetooth(TM) devices" "on" \
"bluez-hcidump" "Bluetooth(TM) network analyzer" "on" \
"bootp" "Internet Bootstrap Protocol server" "on" \
"bridge-utils" "Tools for setting up Ethernet bridges" "on" \
"bsd-finger" "BSD finger daemon and client" "on" \
"ca-certificates" "PEM certificates to verify SSL connections" "on" \
"chkrootkit" "rootkit toolkit" "on" \
"cifs-utils" "CIFS filesystem utilities" "on" \
"clamav" "ClamAV AntiVirus" "on" \
"curl" "Command-line URL transfer utility" "on" \
"cyrus-sasl" "SASL email authentication library" "on" \
"dhcp" "DHCP server (and client) utilities" "on" \
"dhcpcd" "DHCP client daemon" "on" \
"dirmngr" "Certificate Revocation Lists Manager for GPG" "on" \
"dnsmasq" "Small DNS/DHCP server for a LAN" "on" \
"dovecot" "Dovecot IMAP server" "on" \
"dovecot-pigeonhole" "Dovecot sieve plugin" "on" \
"efg" "Easy Firewall Generator" "on" \
"ethtool" "A tool for configuring Ethernet devices" "on" \
"fail2ban" "Fail2ban" "on" \
"fetchmail" "Fetch mail from POP/IMAP/ETRN servers" "on" \
"getmail" "POP3 mail retrieval tool" "on" \
"gnupg" "GNU Privacy Guard public key encryption" "on" \
"gnupg2" "GNU Privacy Guard version 2.x" "on" \
"gnutls" "GNU TLS/SSL (secure communications) library" "on" \
"gpa" "GNU Privacy Assistant" "on" \
"gpgme" "GnuPG Made Easy library" "on" \
"heimdal" "KTH Heimdal Kerberos" "on" \
"htdig" "Indexing and search engine" "on" \
"httpd" "Apache WWW (HTTP) server" "on" \
"hylafax" "Hylafax open source FAX Server" "on" \
"icmpinfo" "Dump or log ICMP packets" "on" \
"idnkit" "internationalized domain names toolkit" "on" \
"iftop" "Display bandwidth usage on an interface" "on" \
"imapd" "ipop3d/imapd remote mail access daemons" "on" \
"inetd" "Internet super server daemon" "on" \
"iproute2" "Kernel routing and traffic control" "on" \
"iptables" "Firewall configuration utility" "on" \
"iptraf-ng" "Network monitoring program" "on" \
"iputils" "Some common network tools" "on" \
"ipw2100-fw" "Firmware for Intel ipw2100 wireless." "on" \
"ipw2200-fw" "Firmware for Intel ipw2200 wireless." "on" \
"irssi" "IRSSI Internet Relay Chat (IRC) client" "on" \
"iw" "Utility for mac80211 based wireless devices" "on" \
"iwlwifi-100-ucode" "Microcode for Intel Centrino N 100 wireless" "on" \
"iwlwifi-1000-ucode" "Microcode for Intel 1000 wireless chips." "on" \
"iwlwifi-3945-ucode" "Microcode for Intel 3945 wireless chips." "on" \
"iwlwifi-4965-ucode" "Microcode for Intel 4965 wireless chips." "on" \
"iwlwifi-5000-ucode" "Microcode for Intel 5000 wireless chips." "on" \
"iwlwifi-5150-ucode" "Microcode for Intel 5150 wireless chips." "on" \
"iwlwifi-6000-ucode" "Microcode for Intel 6000 wireless chips." "on" \
"iwlwifi-6xxx-ucode" "Microcode for Intel 6XXX wireless chips" "on" \
"lftp" "Shell-like FTP and HTTP transfer program" "on" \
"libassuan" "Interprocess Communication Library for GPG" "on" \
"libgcrypt" "General purpose crypto library" "on" \
"libgpg-error" "GnuPG Error Definitions Library" "on" \
"libksba" "X.509 & CMS library for S/MIME and TLS" "on" \
"lightsquid" "lite and fast log analizer for squid proxy" "on" \
"links" "Text-based WWW browser (with frames)" "on" \
"lynx" "Classic text-based WWW browser" "on" \
"madwifi" "Madwifi wireless drivers" "on" \
"mailx" "A simple user mail program" "on" \
"mcabber" "Jabber messaging client for the console" "on" \
"memcached" "memcached (object caching system)" "on" \
"metamail" "Metamail multimedia mail extensions" "on" \
"modperl" "mod_perl for apache" "on" \
"mtr" "Network diagnosic tool" "on" \
"mutt" "The Mutt E-Mail Client" "on" \
"nc" "Netcat network utility" "on" \
"ncftp" "NcFTP file transfer utilities" "on" \
"net-snmp" "Simple Network Management Protocol tools" "on" \
"net-tools" "Utilities required for networking on Linux" "on" \
"netatalk" "Print/file server for Apple Macs" "on" \
"netdate" "A simple network time utility" "on" \
"netkit-bootparamd" "A diskless client server used with Suns" "on" \
"netkit-ftp" "The BSD FTP client" "on" \
"netkit-ntalk" "BSD talk daemon/client" "on" \
"netkit-routed" "An (old) BSD dynamic routing daemon" "on" \
"netkit-rsh" "BSD rsh suite.  Most people use ssh instead." "on" \
"netkit-rusers" "BSD utility to see who is logged in on a net" "on" \
"netkit-rwall" "Write to every user on a system" "on" \
"netkit-rwho" "See information about users on the local net" "on" \
"netkit-timed" "BSD time server daemon" "on" \
"netpipes" "Network pipe utilities" "on" \
"nettle" "Cryptographic library" "on" \
"netwatch" "Another network monitoring program" "on" \
"network-scripts" "Scripts required for networking on Slackware" "on" \
"netwrite" "Write to users on a remote machine" "on" \
"newspost" "Posts multipart binaries on USENET" "on" \
"nfs-utils" "Network File System daemons" "on" \
"nmap" "Network scanning utility" "on" \
"nn" "The NN news reader" "on" \
"nss-mdns" "NSS-mDNS (Multicast DNS host name resolution NSS module)" "on" \
"ntp" "Network Time Protocol" "on" \
"obexftp" "Object Exchange FTP client/server" "on" \
"openldap" "OpenLDAP Server" "on" \
"openldap-data" "Openldap DB" "on" \
"openobex" "Object Exchange protocol library" "on" \
"openslp" "openslp" "on" \
"openssh" "OpenSSH Secure Shell" "on" \
"openssl" "OpenSSL Secure Sockets Layer toolkit" "on" \
"openvpn" "Secure IP VPN tunnel daemon" "on" \
"openconnect" "Client for Cisco's AnyConnect SSL VPN" "on" \
"openl2tp" "Layer Two Tunneling Protocol Version 2" "on" \
"p11-kit" "PKCS 11 public key toolkit" "on" \
"php" "PHP scripting language for Apache" "on" \
"php-suhosin" "Suhosin PHP security extension" "on" \
"phpldapadmin" "Web front-end for LDAP" "on" \
"pidentd" "TCP/IP IDENT protocol server" "on" \
"pine" "Pine menu-driven mail program" "on" \
"pinentry" "PIN Entry dialogs" "on" \
"popa3d" "Post Office Protocol v. 3 (POP3) server" "on" \
"portmap" "Manages NFS and other RPC connections" "on" \
"postfix" "Postfix mail server" "on" \
"ppp" "Point-to-point protocol" "on" \
"pptp" "a PPTP Client for Linux" "on" \
"pptpd" "PoPToP Point to Point Tunneling Server" "on" \
"procmail" "Mail delivery/filtering utility" "on" \
"proftpd" "The Professional FTP (file transfer) daemon" "on" \
"pssh" "Parallel versions of the openssh tools" "on" \
"pth" "GNU Portable Threads" "on" \
"rdist" "Remote file distribution utility" "on" \
"rkhunter" "rootkit toolkit" "on" \
"rp-pppoe" "Connect to ADSL ISPs that use PPPoE" "on" \
"rsync" "Enhanced replacement for rcp" "on" \
"rt2860-firmware" "Firmware for rt2860 PCI wireless cards." "on" \
"rt2870-firmware" "Firmware for rt2870 USB wireless cards." "on" \
"rt61-firmware" "Firmware for rt61 wireless cards." "on" \
"rt71w-firmware" "Firmware for rt71w wireless cards." "on" \
"samba" "SMB print/file server for Windows LANs" "on" \
"sarg" "Squid Analysis Report Generator" "on" \
"sendmail" "The sendmail mail transport agent" "on" \
"sendmail-cf" "Extra configuration files for sendmail" "on" \
"scannedonly" "A scanning daemon for samba" "on" \
"slrn" "slrn (s-lang read news) news reader" "on" \
"smbldap-tools" "smbldap-tools perl scripts" "on" \
"spamassassin" "spamassasin spam filter" "on" \
"squid" "squid proxy server" "on" \
"squirrelmail" "Squirrelmail Webmail" "on" \
"sshfs-fuse" "SSHFS (Secure SHell FileSystem)" "on" \
"stunnel" "Universal SSL tunnel" "on" \
"strongswan" "ipsec-based VPN" "on" \
"tcp_wrappers" "A daemon and wrapper to increase security" "on" \
"tcpdump" "Tool for dumping network packets" "on" \
"telnet" "The telnet client and telnetd daemon" "on" \
"tftp-hpa" "A TFTP implementation" "on" \
"torrentflux" "PHP based bittorrent client" "on" \
"traceroute" "Packet tracing utility" "on" \
"trn" "A threaded news reader" "on" \
"uucp" "Taylor UUCP with HDB && Taylor configs" "on" \
"varnish" "web application accelerator" "on" \
"vlan" "Virtual LAN configuration tool" "on" \
"vsftpd" "The Very Secure FTP (file transfer) daemon" "on" \
"webalizer" "webalizer" "on" \
"weberp" "WebERP software" "on" \
"webmin" "Webmin Front-end" "on" \
"iftop" "Display bandwidth usage on an interface" "on" \
"wget" "WWW/FTP retrieval tool" "on" \
"whois" "Enhanced whois client" "on" \
"wireless-tools" "Tools for wireless networking" "on" \
"wpa_supplicant" "WPA/WPA2/IEEE 802.1X (wireless) Supplicant" "on" \
"wvdial" "wvdial" "on" \
"yptools" "NIS servers and clients" "on" \
2> $TMP/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
 rm -f $TMP/SeTpkgs
 > $TMP/SeTnewtag
 for pkg in \
MailScanner autofs avahi alpine biff+comsat bind bluez bluez-firmware bluez-hcidump bootp bridge-utils bsd-finger ca-certificates cifs-utils chkrootkit clamav curl cyrus-sasl dhcp dhcpcd dirmngr dnsmasq dovecot dovecot-pigeonhole efg ethtool fail2ban fetchmail getmail gnupg gnupg2 gnutls gpa gpgme gtk+ gtk+2 heimdal htdig httpd hylafax icmpinfo iftop idnkit imapd inetd iproute2 iptables iptraf-ng iputils ipw2100-fw ipw2200-fw irssi iw iwlwifi-100-ucode iwlwifi-1000-ucode iwlwifi-3945-ucode iwlwifi-4965-ucode iwlwifi-5000-ucode iwlwifi-5150-ucode iwlwifi-6000-ucode iwlwifi-6xxx-ucode lftp libassuan libgcrypt libgpg-error libksba lightsquid links lynx madwifi mailx mcabber memcached metamail modperl mtr nc ncftp net-snmp net-tools netatalk netdate netkit-bootparamd netkit-ftp netkit-ntalk netkit-routed netkit-rsh netkit-rusers netkit-rwall netkit-rwho netkit-timed netpipes nettle netwatch network-scripts netwrite newspost nfs-utils nmap nn nss-mdns ntp obexftp openldap openldap-data openobex openslp openssh openssl openvpn openconnect openl2tp p11-kit php php-suhosin phpldapadmin pidentd pinentry popa3d portmap postfix ppp pptp pptpd procmail proftpd pssh pth rdist rkhunter rp-pppoe rsync rt2860-firmware rt2870-firmware rt61-firmware rt71w-firmware samba sarg scannedonly sendmail sendmail-cf slrn smbldap-tools spamassassin squid squirrelmail sshfs-fuse stunnel strongswan tcp_wrappers tcpdump telnet tftp-hpa torrentflux traceroute trn uucp varnish vlan vsftpd webalizer weberp webmin wget whois wireless-tools wpa_supplicant wvdial yptools \
  ; do
  echo "$pkg: SKP" >> $TMP/SeTnewtag
 done
 exit
fi
cat /dev/null > $TMP/SeTnewtag
for PACKAGE in \
MailScanner autofs avahi alpine biff+comsat bind bluez bluez-firmware bluez-hcidump bootp bridge-utils bsd-finger ca-certificates cifs-utils chkrootkit clamav curl cyrus-sasl dhcp dhcpcd dirmngr dnsmasq dovecot dovecot-pigeonhole efg ethtool fail2ban fetchmail getmail gnupg gnupg2 gnutls gpa gpgme gtk+ gtk+2 heimdal htdig httpd hylafax icmpinfo iftop idnkit imapd inetd iproute2 iptables iptraf-ng iputils ipw2100-fw ipw2200-fw irssi iw iwlwifi-100-ucode iwlwifi-1000-ucode iwlwifi-3945-ucode iwlwifi-4965-ucode iwlwifi-5000-ucode iwlwifi-5150-ucode iwlwifi-6000-ucode iwlwifi-6xxx-ucode lftp libassuan libgcrypt libgpg-error libksba lightsquid links lynx madwifi mailx mcabber memcached metamail modperl mtr nc ncftp net-snmp net-tools netatalk netdate netkit-bootparamd netkit-ftp netkit-ntalk netkit-routed netkit-rsh netkit-rusers netkit-rwall netkit-rwho netkit-timed netpipes nettle netwatch network-scripts netwrite newspost nfs-utils nmap nn nss-mdns ntp obexftp openldap openldap-data openobex openslp openssh openssl openvpn openconnect openl2tp p11-kit php php-suhosin phpldapadmin pidentd pinentry popa3d portmap postfix ppp pptp pptpd procmail proftpd pssh pth rdist rkhunter rp-pppoe rsync rt2860-firmware rt2870-firmware rt61-firmware rt71w-firmware samba sarg scannedonly sendmail sendmail-cf slrn smbldap-tools spamassassin squid squirrelmail sshfs-fuse stunnel strongswan tcp_wrappers tcpdump telnet tftp-hpa torrentflux traceroute trn uucp varnish vlan vsftpd webalizer weberp webmin wget whois wireless-tools wpa_supplicant wvdial yptools \
 ; do
 if fgrep \"$PACKAGE\" $TMP/SeTpkgs 1> /dev/null 2> /dev/null ; then
  echo "$PACKAGE: ADD" >> $TMP/SeTnewtag
 else
  echo "$PACKAGE: SKP" >> $TMP/SeTnewtag
 fi
done
rm -f $TMP/SeTpkgs
