finalize.sh 2.28 KB
Newer Older
1
2
3
4
5
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x

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
apt-get remove -y --purge \
  autoconf \
  dpkg-dev \
  file \
  flex \
  krb5-multidev \
  libapparmor-dev \
  libapr1-dev \
  libaprutil1-dev \
  libaspell-dev \
  libbsd-dev \
  libbz2-dev \
  libc-client2007e-dev \
  libcurl4-openssl-dev \
  libdb-dev \
  libdb5.3-dev \
  libexpat1-dev \
  libfontconfig1-dev \
  libfreetype6-dev \
  libgcrypt11-dev \
  libgcrypt20-dev \
  libgd-dev \
  libglib2.0-dev \
  libgmp3-dev \
  libgnutls-dev \
  libgpg-error-dev \
  libice-dev \
  libidn11-dev \
  libjbig-dev \
  libjpeg-dev \
  libjpeg-turbo8-dev \
  libjpeg8-dev \
  libkrb5-dev \
  libldap2-dev \
  libltdl-dev \
  liblzma-dev \
  libmagic-dev \
  libmcrypt-dev \
  libmhash-dev \
  libmysqlclient-dev \
  libonig-dev \
  libpcre3-dev \
  libpng12-dev \
  libpq-dev \
  libpspell-dev \
  libqdbm-dev \
  libreadline-dev \
  librecode-dev \
  libsasl2-dev \
  libsctp-dev \
  libsm-dev \
  libsqlite3-dev \
  libssl-dev \
  libsystemd-dev \
  libtidy-dev \
  libtiff5-dev \
  libtool \
  libvpx-dev \
  libwebp-dev \
  libxml2-dev \
  libxmlrpc-epi-dev \
  libxmltok1-dev \
  libxpm-dev \
  libxslt1-dev \
  libxt-dev \
  libzip-dev \
  make \
  pkg-config \
  re2c \
  unixodbc-dev \
  uuid-dev \
  zlib1g-dev \
  autotools-dev \
  comerr-dev \
  icu-devtools \
  libc-client2007e \
  libdpkg-perl \
  libfl-dev \
  libgmp-dev \
  libgmpxx4ldbl \
  libgnutls-openssl27 \
  libgnutlsxx28 \
  libgssrpc4 \
  libicu-dev \
  libisl15 \
  libitm1 \
  libkadm5clnt-mit9 \
  libkadm5srv-mit9 \
  libkdb5-8 \
  liblsan0 \
  libmagic1 \
  libmpc3 \
  libmpfr4 \
  libmpx0 \
  libp11-kit-dev \
  libpam0g-dev \
  libpthread-stubs0-dev \
  libquadmath0 \
  libreadline6-dev \
  libsigsegv2 \
  libstdc++-5-dev \
  libtasn1-6-dev \
  libtinfo-dev \
  libtsan0 \
  libubsan0 \
  libx11-dev \
  libxau-dev \
  libxcb1-dev \
  libxdmcp-dev \
  linux-libc-dev \
  m4 \
  mlock \
  nettle-dev \
  x11proto-core-dev \
  x11proto-input-dev \
  x11proto-kb-dev \
  xorg-sgml-doctools \
  xtrans-dev \
  #

126
127
128
129
130
131
# but keep make and g++ ... to not confuse with above list, just install again if needed
minimal_apt_get_install \
  make \
  g++


132
133
134
135
136
137
138
139
140
141
apt-get clean
rm -rf \
	/var/lib/apt/lists/* \
	/tmp/* \
	/var/tmp/* \
	/usr/local/src/* \
	/usr/include/php/20151012/ext/apcu/ \
	#

rm -rf /pd_build