File: phppgadmin.packages

package info (click to toggle)
yada 0.34
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,160 kB
  • ctags: 83
  • sloc: perl: 3,554; makefile: 26; sh: 12
file content (178 lines) | stat: -rw-r--r-- 6,686 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
Source: phppgadmin
Section: web
Priority: extra
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.5.6
Upstream-Source: <URL:http://prdownloads.sourceforge.net/phppgadmin/>
Home-Page: <URL:http://phppgadmin.sourceforge.net/>
Description: a set of PHP-scripts to administrate PostgreSQL over the WWW
Packaged-For: Debian
Copyright: GPL
   Copyright (C) 1999-2000 Dan Wilson <killroyboy@users.sourceforge.net>
   Copyright (C) 1998-1999 Tobias Ratschiller <tobias@dnet.it>
Major-Changes:
 [001] default configuration
 [002] HTML header modifications and META Content-Type with charset
 [004] display tables which has 'pg' substring
 [005] fix documentation files suffix (.htm -> .html)
 [006] don't use file_exists, it is broken if file name is too large
Patches: *.diff

Package: phppgadmin
Architecture: all
Depends: php4 | php4-cgi, php4-pgsql | php4-cgi-pgsql, apache | httpd, wwwconfig-common (>= 0.0.7), []
Suggests: postgresql-doc, postgresql
Description: A set of PHP-scripts to administrate PostgreSQL over the WWW.
 phpPgAdmin is intended to handle the administration of PostgreSQL over
 the WWW.  Currently it can:
  - create and drop databases
  - create, copy, drop and alter tables/views/sequences/functions
  - edit and add fields (to the extent Postgres does)
  - execute any SQL-statement, even batch-queries
  - manage keys on fields
  - load text files into tables
  - create and read dumps of tables
  - administer one single database
  - administer postgres users
Install: sh
 yada install -data -into /usr/share/phppgadmin *.php *.js
 yada install -data -into /usr/share/phppgadmin -as config.inc.php config.inc.php-dist
 yada install -data -into /usr/share/phppgadmin/images images/*
 yada install -dir /etc/phppgadmin
 for i in config footer header; do
     mv -f $ROOT/usr/share/phppgadmin/$i.inc.php $ROOT/etc/phppgadmin/
     ln -s /etc/phppgadmin/$i.inc.php $ROOT/usr/share/phppgadmin/
 done
 yada install -dir /usr/share/phppgadmin/lang
 for i in \
     castellano \
     catala \
     chinese_big5 \
     chinese_gb \
     danish \
     english \
     french \
     german \
     italian \
     norwegian \
     portuguese \
     russian-koi8 \
     russian-win1251 \
     spanish
 do
     mv -f $ROOT/usr/share/phppgadmin/$i.inc.php $ROOT/usr/share/phppgadmin/lang/
 done
 yada install -data -into /usr/share/phppgadmin Documentation.html
 yada install -data -into /usr/share/phppgadmin ChangeLog README
 yada install -conffile -into /etc/phppgadmin -as apache.conf debian/phppgadmin.apache.conf
 yada install -doc DEVELOPERS README TODO
 yada install -doc Documentation.html
 yada install -doc -as changelog ChangeLog
 yada install -doc -as README.Debian debian/README
Templates:
 Template: phppgadmin/webserver
 Type: select
 Choices: Apache, Apache-SSL, Both, None
 Choices-pl: Apache, Apache-SSL, Obydwa, aden
 Choices-ru: Apache, Apache-SSL, ,  
 Default: ${webserver}
 Description: Which web server would you like to reconfigure automatically?
  phpPgAdmin supports any web server that php3/php4 does, but this
  automatic configuration process only supports Apache and Apache-SSL.
 Description-de: Welcher Webserver soll automatisch konfiguriert werden?
  phpPgAdmin untersttzt alle von PHP3 und PHP4 untersttzen Webserver.
  Die automatische Konfiguration kann jedoch nur bei Apache und
  Apache-SSL stattfinden.
 Description-pl: Ktry serwer WWW przekonfigurowa automatycznie?
  phpPgAdmin dziaa z dowolnym serwerem WWW ktry obsuguje pliki php3/php4,
  ale automatyczna konfiguracja dziaa tylko dla Apache i Apache-SSL.
 Description-ru:       ?
  phpPgAdmin   -,    php3/php4,
         Apache  
  Apache-SSL.
Config: bash
 db_subst "phppgadmin/webserver" "webserver" "Apache" || true
 db_input medium "phppgadmin/webserver" || true
 db_go
Postinst: bash
 if [ "$1" = "configure" ]; then
     db_get "phppgadmin/webserver"
     webserver="$RET"
     case "$webserver" in
         Apache)        webservers="apache";;
 	 Apache-SSL)	webservers="apache-ssl";;
 	 Both)		webservers="apache apache-ssl";;
 	 *)		webservers="";;
     esac
 .
     . /usr/share/wwwconfig-common/php.get
 .
     for server in $webservers; do
         test -d /etc/$server || continue
 .
 	 if [ "$phpver" = "php4" ]; then
 	     extension=".php"
             typestr="application/x-httpd-php"
             . /usr/share/wwwconfig-common/apache-addtype_all.sh
 	     [ "$status" = "uncommented" -o "$status" = "added" -o "$status" = "lineadded" ] && restart="$server $restart"
 	 elif [ "$phpver" = "php3" ]; then
 	     extension=".php"
             typestr="application/x-httpd-php3"
             . /usr/share/wwwconfig-common/apache-addtype_all.sh
 	     [ "$status" = "uncommented" -o "$status" = "added" -o "$status" = "lineadded" ] && restart="$server $restart"
 	 fi
 .
         . /usr/share/wwwconfig-common/apache-php.sh
 	 [ "$status" = "uncomment" ] && restart="$server $restart"
 .
 	 includefile=/etc/phppgadmin/apache.conf
 	 . /usr/share/wwwconfig-common/apache-include_all.sh
 	 [ "$status" = "uncomment" -o "$status" = "include" ] && restart="$server $restart"
 .
 	 index=index.php
 	 . /usr/share/wwwconfig-common/apache-index_all.sh
 	 [ "$status" = "added" ] && restart="$server $restart"
     done     
 .
     servers="apache-ssl apache"
     . /usr/share/wwwconfig-common/restart.sh
 fi
Postrm: bash
 if [ -f /etc/apache/httpd.conf \
   -a -f /usr/share/wwwconfig-common/apache-uninclude_all.sh ]; then
     db_get "phppgadmin/webserver" || true
     webserver="$RET"
     case "$webserver" in
         Apache)	webservers="apache";;
         Apache-SSL)	webservers="apache-ssl";;
         Both)		webservers="apache apache-ssl";;
         *)		webservers="";;
     esac
     includefile=/etc/phppgadmin/apache.conf
 .
     if [ "$1" = "purge" ]; then
         for server in $webservers; do
             test -d /etc/$server || continue
 .
             . /usr/share/wwwconfig-common/apache-uninclude_all.sh
 	     if [ "$status" = "purge" ]; then
 	         restart="$restart $server"
 	     fi
         done
         test -d /etc/phppgadmin && rm -rf /etc/phppgadmin
     fi
 .
     if [ "$1" = "remove" ]; then
         for server in $webservers; do
             test -d /etc/$server || continue
 .
             . /usr/share/wwwconfig-common/apache-cominclude_all.sh
 	     if [ "$status" = "comment" ]; then
 	         restart="$restart $server"
 	     fi
         done
     fi
 .
     servers="apache-ssl apache"
     . /usr/share/wwwconfig-common/restart.sh
 fi