ssl builder for trusty
This commit is contained in:
parent
c184fb490b
commit
ea30eec9fe
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
.DS_Store
|
||||
/src/out/
|
||||
/builds/
|
||||
|
17
ssl/trusty/Makefile
Normal file
17
ssl/trusty/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
all:
|
||||
cd openssl && \
|
||||
./config --prefix=/opt/extpython/ssl/1.1.1k --openssldir=/opt/extpython/ssl/1.1.1k shared zlib && \
|
||||
make -j8
|
||||
#&& \
|
||||
#echo "testing...." && \
|
||||
#make test
|
||||
|
||||
install:
|
||||
cd openssl && \
|
||||
make install
|
||||
|
||||
clean:
|
||||
cd openssl && \
|
||||
make clean || true
|
8
ssl/trusty/build-inner.sh
Executable file
8
ssl/trusty/build-inner.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash -eux
|
||||
|
||||
sudo -Hu builder /src/build-user.sh
|
||||
|
||||
# export the debs
|
||||
OUTDIR="/src/out/trusty/1.1.1k"
|
||||
mkdir -p $OUTDIR
|
||||
cp /build/out/* $OUTDIR
|
30
ssl/trusty/build-user.sh
Executable file
30
ssl/trusty/build-user.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/bash -eux
|
||||
|
||||
function template {
|
||||
perl -p -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' < $1
|
||||
}
|
||||
|
||||
cd /build
|
||||
mkdir work
|
||||
cd work
|
||||
|
||||
mkdir openssl
|
||||
wget -O- -q http://artifact.scc.net.davepedu.com/repo/tar/openssl/openssl/openssl-1.1.1k.tar.gz | tar zxf - -C openssl/ --strip-components=1
|
||||
|
||||
# generate debian metadata
|
||||
mkdir debian
|
||||
export BUILD_DATE=$(date -R)
|
||||
template /src/debian/changelog | tee debian/changelog
|
||||
template /src/debian/control | tee debian/control
|
||||
cp /src/debian/compat debian/
|
||||
cp /src/debian/rules debian/
|
||||
cp /src/Makefile ./
|
||||
|
||||
# build the deb
|
||||
time dpkg-buildpackage -us -uc -b
|
||||
|
||||
cd ..
|
||||
mkdir -p out
|
||||
mv *.deb out/
|
||||
cd out
|
||||
sha256sum *
|
3
ssl/trusty/build.sh
Executable file
3
ssl/trusty/build.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash -eux
|
||||
|
||||
time docker run -it --rm -v $PWD:/src --entrypoint /src/build-inner.sh extbuilder-trusty-deps
|
5
ssl/trusty/debian/changelog
Normal file
5
ssl/trusty/debian/changelog
Normal file
@ -0,0 +1,5 @@
|
||||
extpython-openssl-1-1 (1.1.1k) unstable; urgency=low
|
||||
|
||||
* Initial release
|
||||
|
||||
-- Dave Pedu <dave@davepedu.com> ${BUILD_DATE}
|
1
ssl/trusty/debian/compat
Normal file
1
ssl/trusty/debian/compat
Normal file
@ -0,0 +1 @@
|
||||
9
|
13
ssl/trusty/debian/control
Normal file
13
ssl/trusty/debian/control
Normal file
@ -0,0 +1,13 @@
|
||||
Source: extpython-openssl-1-1
|
||||
Section: unknown
|
||||
Priority: optional
|
||||
Maintainer: ubuntu <ubuntu@unknown>
|
||||
Build-Depends: debhelper (>= 8.0.0)
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: <insert the upstream URL, if relevant>
|
||||
|
||||
Package: extpython-openssl-1-1
|
||||
Architecture: amd64
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: <insert up to 60 chars description>
|
||||
<insert long description, indented with spaces>
|
13
ssl/trusty/debian/rules
Executable file
13
ssl/trusty/debian/rules
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
export DH_VERBOSE=1
|
||||
|
||||
override_dh_usrlocal:
|
||||
override_dh_strip:
|
||||
|
||||
override_dh_shlibdeps:
|
||||
dh_shlibdeps -l /opt/extpython/ssl/1.1.1k/lib
|
||||
|
||||
%:
|
||||
dh $@
|
1
ssl/trusty/out/.gitignore
vendored
Normal file
1
ssl/trusty/out/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*
|
Loading…
x
Reference in New Issue
Block a user