Skip to content

Commit 962ba08

Browse files
committed
Import debian directory
1 parent 5a27f42 commit 962ba08

File tree

8 files changed

+73
-0
lines changed

8 files changed

+73
-0
lines changed

debian/arch/aarch64-linux-android

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
android-arm64

debian/arch/arm-linux-androideabi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
android-arm

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
openssl-android (1.1.1d-1) stable; urgency=medium
2+
3+
* Initial Release.
4+
5+
-- Tobias Junghans <[email protected]> Wed, 22 Jan 2020 15:09:42 +0100

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Source: openssl-android
2+
Section: devel
3+
Priority: optional
4+
Maintainer: Tobias Junghans <[email protected]>
5+
Build-Depends: debhelper (>= 9)
6+
Standards-Version: 3.9.7
7+
8+
Package: openssl-android
9+
Architecture: all
10+
Depends: ${shlibs:Depends}, ${misc:Depends}
11+
Description: OpenSSL library - Android runtime and headers

debian/rules

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#!/usr/bin/make -f
2+
3+
# This has to be exported to make some magic below work.
4+
export DH_OPTIONS
5+
6+
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
7+
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
8+
else
9+
NUMJOBS = 1
10+
endif
11+
12+
TARGETS := arm-linux-androideabi aarch64-linux-android
13+
DESTDIR=$(CURDIR)/debian/openssl-android
14+
15+
export ANDROID_NDK_HOME=/opt/android/ndk
16+
export PATH := $(ANDROID_NDK_HOME)/toolchains/llvm/prebuilt/linux-x86_64/bin/:$(PATH)
17+
18+
%:
19+
dh $@ --parallel
20+
21+
override_dh_auto_clean:
22+
for target in $(TARGETS); do \
23+
rm -rf build-$$target; \
24+
done
25+
dh_auto_clean
26+
27+
override_dh_auto_configure:
28+
for target in $(TARGETS); do \
29+
OPENSSL_ARCH=$$(cat debian/arch/$$target); \
30+
echo $(OPENSSL_ARCH); \
31+
mkdir build-$$target; \
32+
cd build-$$target; \
33+
../openssl/Configure --cross-compile-prefix=$$target --prefix=/usr/$$target --openssldir=/usr/$$target $$OPENSSL_ARCH no-asm no-unit-test -mthumb -fPIC -latomic -D__ANDROID_API__=21; \
34+
cd ..; \
35+
done
36+
37+
override_dh_auto_build:
38+
for target in $(TARGETS); do \
39+
cd build-$$target; \
40+
$(MAKE) SHLIB_VERSION_NUMBER= SHLIB_EXT=.so -j$(NUMJOBS); \
41+
cd ..; \
42+
done
43+
44+
override_dh_auto_install:
45+
for target in $(TARGETS); do \
46+
cd build-$$target; \
47+
$(MAKE) SHLIB_VERSION_NUMBER= SHLIB_EXT=.so DESTDIR=$(DESTDIR) install; \
48+
rm $(DESTDIR)/usr/$$target/lib/*.a; \
49+
cd ..; \
50+
done
51+
52+
override_dh_auto_test:

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

debian/source/options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tar-ignore = .git

0 commit comments

Comments
 (0)