GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
Digital_Repository
Browse code
- Removed extraneous debugging stuff.
master
1 parent
6817e9e
commit
fb622a38383f35e9d8b957794eefa1f6e46ceebb
nstanger
authored
on 29 Jun 2007
Patch
Showing
1 changed file
OARiNZ/DIY/LiveCD/Makefile.chroot
Ignore Space
Show notes
View
OARiNZ/DIY/LiveCD/Makefile.chroot
#!/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 DPKG=/usr/bin/dpkg # 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 linux-headers-2.6.17-10 \ linux-headers-2.6.17-10-generic linux-headers-generic \ xsane-common 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 \ libmail-rfc822-address-perl libjson-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-oarinz_1.340-0ubuntu1_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 "=== Removing unnecessary packages." $(APTGET_REM) $(REM_OPENOFFICE) @rm -rf /etc/openoffice $(APTGET_REM) $(REM_EVOLUTION) $(APTGET_REM) $(REM_GIMP) $(APTGET_REM) $(REM_GNOME) $(APTGET_REM) $(REM_MISC) add: @echo @echo "=== Adding prerequisite packages." @# Normally you'd just apt-get update here, but I've been having @# problems with the servers. Since it takes so long to get @# back to this point in the process, I've cheated and pre-generated @# the cache index files. They are copied in before this Makefile @# is called. @#$(APTGET) update $(APTGET_INS) $(ADD_EPRINTS) $(APTGET_INS) $(ADD_WEBMIN) $(APTGET_INS) $(ADD_ECONFIG) $(APTGET_INS) $(ADD_MISC) dpkg-add: @echo @echo "=== Adding EPrints packages." # In order: eprints, webmin, oarinz-eprints-config, webmin-eprints $(DPKG) -i $(APT_CACHE)/eprints_3.0-0ubuntu1_all.deb $(DPKG) -i $(APT_CACHE)/webmin-oarinz_1.340-0ubuntu1_all.deb $(DPKG) -i $(APT_CACHE)/oarinz-eprints-config_0.0.1-2_all.deb $(DPKG) -i $(APT_CACHE)/webmin-eprints_0.0.1-1_all.deb cleanup: @echo @echo "=== Cleaning up." $(APTGET) clean $(APTGET) autoclean
#!/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 DPKG=/usr/bin/dpkg # 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 linux-headers-2.6.17-10 \ linux-headers-2.6.17-10-generic linux-headers-generic \ xsane-common 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 \ libmail-rfc822-address-perl libjson-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-oarinz_1.340-0ubuntu1_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 "=== Removing unnecessary packages." $(APTGET_REM) $(REM_OPENOFFICE) @rm -rf /etc/openoffice $(APTGET_REM) $(REM_EVOLUTION) $(APTGET_REM) $(REM_GIMP) $(APTGET_REM) $(REM_GNOME) $(APTGET_REM) $(REM_MISC) add: @echo @echo "=== Adding prerequisite packages." @# Normally you'd just apt-get update here, but I've been having @# problems with the servers. Since it takes so long to get @# back to this point in the process, I've cheated and pre-generated @# the cache index files. They are copied in before this Makefile @# is called. @#$(APTGET) update $(APTGET_INS) $(ADD_EPRINTS) $(APTGET_INS) $(ADD_WEBMIN) $(APTGET_INS) $(ADD_ECONFIG) $(APTGET_INS) $(ADD_MISC) dpkg-add: @echo @echo "=== Adding EPrints packages." # In order: eprints, webmin, oarinz-eprints-config, webmin-eprints $(DPKG) -i $(APT_CACHE)/eprints_3.0-0ubuntu1_all.deb $(DPKG) -i $(APT_CACHE)/webmin-oarinz_1.340-0ubuntu1_all.deb $(DPKG) -i $(APT_CACHE)/oarinz-eprints-config_0.0.1-2_all.deb $(DPKG) -i $(APT_CACHE)/webmin-eprints_0.0.1-1_all.deb cleanup: @echo @echo "=== Cleaning up." $(APTGET) clean $(APTGET) autoclean
Show line notes below