Project

General

Profile

« Previous | Next » 

Revision 12548

/Makefile: added separate phppgadmin-Linux target to avoid needing to run the entire postgres-Linux target whenever http://vegbiendev.nceas.ucsb.edu/phppgadmin/ goes down (after some system updates)

View differences:

Makefile
199 199
postgres_reload: _always
200 200
	$($(call forOs,postgresReload))
201 201

  
202
phppgadmin-Linux: _always
203
	-sudo apt-get --yes install phppgadmin
204
	$(editPhppgadmin)
205
	$(editPhppgadminApacheConf)
206
	-sudo ln -s ../conf.d/phppgadmin /etc/apache2/conf-available/phppgadmin.conf
207
	sudo a2enconf phppgadmin
208
	$(editApacheConfForPhppgadmin)
209
	$(if $(nonApacheOnPort80),$(editApachePortsConf))
210
	-sudo apache2ctl restart
211

  
202 212
postgres-Linux: _always
203 213
	echo|sudo add-apt-repository ppa:pitti/postgresql # PostgreSQL 9.2 apt-src
204 214
	sudo tee /etc/apt/sources.list.d/pgdg.list \
......
212 222
	-sudo apt-get --yes install libpq-dev
213 223
	-sudo apt-get --yes install postgresql-$(pgVersion)-postgis-scripts
214 224
	-sudo apt-get --yes install postgresql-$(pgVersion)-postgis
215
	-sudo apt-get --yes install phppgadmin
216
	$(editPhppgadmin)
217
	$(editPhppgadminApacheConf)
218
	-sudo ln -s ../conf.d/phppgadmin /etc/apache2/conf-available/phppgadmin.conf
219
	sudo a2enconf phppgadmin
220
	$(editApacheConfForPhppgadmin)
221
	$(if $(nonApacheOnPort80),$(editApachePortsConf))
222
	-sudo apache2ctl restart
225
	-$(MAKE) phppgadmin-Linux
223 226
	-sudo pip install psycopg2
224 227
	-$(MAKE) $(postgresReload-Linux)
225 228
# run pg_version inline because it needs postgresql to be installed first

Also available in: Unified diff