#!/usr/bin/make -f SHELL=/bin/sh # Directories. APT_CACHE=/var/cache/apt/archives # Commands. APTGET=/usr/bin/apt-get -q APTGET_REM=${APTGET} remove --purge --assume-yes APTGET_INS=${APTGET} install --assume-yes # Packages to be removed using apt-get. Note that some additional # dependent packages will be automatically removed as well. REM_MISC=diveintopython ubuntu-artwork ubuntu-docs gaim gaim-data \ screensaver-default-images sound-juicer totem-gstreamer \ totem-mozilla totem rhythmbox REM_GNOME=gnome-games gnome-games-data gnome2-user-guide REM_OPENOFFICE=openoffice.org openoffice.org-base openoffice.org-calc \ openoffice.org-common openoffice.org-core openoffice.org-draw \ openoffice.org-evolution openoffice.org-gnome openoffice.org-gtk \ openoffice.org-help-en-us openoffice.org-impress \ openoffice.org-java-common openoffice.org-l10n-common \ openoffice.org-l10n-en-gb openoffice.org-l10n-en-za \ openoffice.org-math openoffice.org-style-default \ openoffice.org-style-industrial openoffice.org-thesaurus-en-us \ openoffice.org-writer python-uno REM_EVOLUTION=evolution evolution-data-server evolution-data-server-common \ evolution-exchange evolution-plugins evolution-webcal nautilus-sendto REM_GIMP=gimp gimp-data gimp-print gimp-python libgimp2.0 # Packages to be added using apt-get. Some may already be installed, # but that's OK, it won't hurt. It's safer than assuming they're there # and getting it wrong! These will most likely install some other # dependent packages as well. ADD_EPRINTS=apache2 mysql-server perl libapache2-mod-perl2 \ libunicode-string-perl libdbi-perl libdbd-mysql-perl \ libxml-parser-perl wget tar gzip unzip poppler-utils wv lynx \ tetex-bin imagemagick adduser findutils postfix ADD_WEBMIN=bash perl libnet-ssleay-perl openssl libauthen-pam-perl \ libpam-runtime libio-pty-perl libmd5-perl ADD_ECONFIG=perl libxml-dom-perl libppi-perl libstring-random-perl \ libexpect-perl libunicode-string-perl libhtml-parser-perl ADD_MISC=openssh-server # Local packages to be installed using dpkg. DEB_PACKAGES=eprints_3.0-0ubuntu1_all.deb \ oarinz-eprints-config_0.0.1-2_all.deb \ webmin_1.340_all.deb \ webmin-eprints_0.0.1-1_all.deb .PHONY: all add remove dpkg-add all: remove add dpkg-add cleanup remove: @echo @echo "=== Remove packages here." ${APTGET_REM} ${REM_OPENOFFICE} ${APTGET_REM} ${REM_EVOLUTION} ${APTGET_REM} ${REM_GIMP} ${APTGET_REM} ${REM_GNOME} ${APTGET_REM} ${REM_MISC} add: @echo @echo "=== Add apt-get packages here." ${APTGET} update ${APTGET_INS} ${ADD_EPRINTS} ${APTGET_INS} ${ADD_WEBMIN} ${APTGET_INS} ${ADD_ECONFIG} ${APTGET_INS} ${ADD_MISC} dpkg-add: @echo @echo "=== Add dpkg packages here." # In order: eprints, webmin, oarinz-eprints-config, webmin-eprints cleanup: ${APTGET} clean ${APTGET} autoclean