|
1 | 1 | package: |
2 | 2 | name: pgpool2-4.6 |
3 | 3 | version: "4.6.5" |
4 | | - epoch: 1 |
| 4 | + epoch: 2 |
5 | 5 | description: Middleware that works between PostgreSQL servers and a PostgreSQL database client. |
6 | 6 | copyright: |
7 | 7 | - license: BSD-3-Clause AND MIT |
@@ -144,6 +144,44 @@ subpackages: |
144 | 144 | stat /opt/pgpool-II/bin/start.sh |
145 | 145 | stat /opt/pgpool-II/bin/entrypoint.sh |
146 | 146 |
|
| 147 | + # iamguarded variant of pgpool2 with a different confdir |
| 148 | + - name: ${{package.name}}-iamguarded |
| 149 | + description: "Iamguarded pkg that builds with specific confdir" |
| 150 | + dependencies: |
| 151 | + provides: |
| 152 | + - pgpool2-iamguarded=${{package.full-version}} |
| 153 | + runtime: |
| 154 | + - bash |
| 155 | + - postgresql |
| 156 | + - postgresql-client |
| 157 | + pipeline: |
| 158 | + - uses: autoconf/configure |
| 159 | + with: |
| 160 | + opts: | |
| 161 | + --prefix=/opt/iamguarded/pgpool --sysconfdir=/opt/iamguarded/pgpool/etc --libdir=/opt/iamguarded/pgpool/lib --with-openssl |
| 162 | + # build src/parser explicitly to avoid build failures due to missing parser files with -j flag |
| 163 | + - runs: | |
| 164 | + make -C src/parser V=1 |
| 165 | + - uses: autoconf/make |
| 166 | + with: |
| 167 | + opts: "clean" # The binary embeds the sysconfdir path at build time into the binary, so we do a clean rebuild. |
| 168 | + - uses: autoconf/make-install |
| 169 | + - uses: strip |
| 170 | + - runs: | |
| 171 | + mkdir -p "${{targets.contextdir}}/var/run/pgpool" |
| 172 | + mkdir -p ${{targets.contextdir}}/usr/bin/ |
| 173 | + # To enable backwards compatibility with existing iamguarded-compat package, we copy binaries to /usr/bin |
| 174 | + cp -p ${{targets.contextdir}}/opt/iamguarded/pgpool/bin/* ${{targets.contextdir}}/usr/bin/ |
| 175 | + test: |
| 176 | + pipeline: |
| 177 | + - uses: test/tw/ver-check |
| 178 | + with: |
| 179 | + bins: "/opt/iamguarded/pgpool/bin/pgpool" |
| 180 | + version: ${{package.version}} |
| 181 | + - uses: test/tw/help-check |
| 182 | + with: |
| 183 | + bins: "/opt/iamguarded/pgpool/bin/pgpool" |
| 184 | + |
147 | 185 | - name: ${{package.name}}-iamguarded-compat |
148 | 186 | description: "Compatibility package for iamguarded variant of pgpool2" |
149 | 187 | dependencies: |
@@ -211,7 +249,6 @@ subpackages: |
211 | 249 | package: pgpool2 |
212 | 250 | version: ${{vars.major-version}} |
213 | 251 | - runs: | |
214 | | - test -f /opt/iamguarded/pgpool/bin/pgpool |
215 | 252 | test -f /opt/iamguarded/postgresql/bin/psql |
216 | 253 |
|
217 | 254 | update: |
|
0 commit comments