#/bin/sh # MIT License # # Copyright (c) 2018 Joost van Baal-Ilić # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. set -e #PACKAGE_LIST=(\ # BaconQrCode \ # php-oauth2-client \ # php-yubitwee \ # otp \ # php-oauth2-server \ # php-secookie \ # Twig-extensions \ # php-saml-ds \ # php-openvpn-connection-manager \ # vpn-lib-common \ # vpn-server-api \ # vpn-user-portal \ # vpn-server-node \ # vpn-admin-portal \ # php-json-signer \ #) # keep list ordered by dependency PACKAGE_LIST="php-yubitwee php-secookie Twig-extensions php-oauth2-client php-oauth2-server php-otp-verifier php-saml-ds php-openvpn-connection-manager php-json-signer BaconQrCode vpn-lib-common vpn-user-portal vpn-server-node vpn-admin-portal vpn-server-api" # FIXME build fails: BaconQrCode # FIXME current build fails: vpn-lib-common # FIXME depends vpn-user-portal (php-bacon-qr-code) # FIXME php-otp-verifier packaged # FIXME php-sqlite-migrate packaged # FIXME otp is being replaced by php-otp-verifier: not yet tested # # depends: vpn-server-node vpn-admin-portal (vpn-lib-common) # depends: vpn-server-api (vpn-lib-common) # keep ordered by dependency # these all build, as of чет, 16. авг 2018. 14:40:15 CEST PACKAGE_LIST="php-yubitwee php-secookie Twig-extensions php-oauth2-client php-oauth2-server php-saml-ds php-openvpn-connection-manager php-json-signer vpn-lib-common vpn-server-node vpn-admin-portal vpn-server-api" if test -f ~/.pbuilderrc then echo "$0: reusing existing ~/.pbuilderrc" else cat < ~/.pbuilderrc # generated by $0 AUTO_DEBSIGN=${AUTO_DEBSIGN:-no} HOOKDIR=/var/cache/pbuilder/hooks USE_PDEBUILD_INTERNAL=yes EXTRAPACKAGES="lintian eatmydata" BINDMOUNTS="/var/cache/pbuilder/apt-archive" OTHERMIRROR="deb [trusted=yes] file:///var/cache/pbuilder/apt-archive ./" EATMYDATA=yes EOT fi # FIXME this might be needed after _every_ build? sudo pbuilder update # FIXME ./le-repo_setup for f in $PACKAGE_LIST do echo '***' "$0: building $f ..." ( cd "$f" || exit ../le-build ) echo '***' "$0: finished building $f." done echo '***' "$0: completed." # FIXME now it's time to sign Packages.xz