Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 6033713

Browse files
committed
Initialize packaging
1 parent b251768 commit 6033713

12 files changed

+114
-0
lines changed

Diff for: debian/Makefile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
NAME = libselinux
2+
SOURCES = callbacks.c \
3+
check_context.c \
4+
freecon.c \
5+
init.c \
6+
label.c \
7+
label_file.c \
8+
label_android_property.c
9+
OBJECTS = $(SOURCES:.c=.o)
10+
INCLUDES = -I. -I../include
11+
LOCAL_CFLAGS = -fPIC -c -DHOST
12+
LOCAL_LDFLAGS = -fPIC -shared -rdynamic -lpthread -lpcre
13+
14+
build: $(OBJECTS)
15+
cc $^ -o $(NAME).so.$(UPSTREAM_VERSION) -Wl,-soname,$(NAME).so.5 $(LDFLAGS) $(LOCAL_LDFLAGS)
16+
ar rs $(NAME).a $^
17+
18+
clean:
19+
rm -f *.so.* *.a *.o
20+
21+
$(OBJECTS): %.o: %.c
22+
cc $< -o $@ $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $(LOCAL_CFLAGS)

Diff for: debian/android-libselinux-dev.install

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include/* usr/include/android
2+
src/libselinux.a usr/lib/android

Diff for: debian/android-libselinux-dev.links

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/dh-exec
2+
3+
usr/lib/android/libselinux.so.${UPSTREAM_VERSION} usr/lib/android/libselinux.so

Diff for: debian/android-libselinux.install

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/libselinux.so.* usr/lib/android/

Diff for: debian/android-libselinux.links

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/dh-exec
2+
3+
usr/lib/android/libselinux.so.${UPSTREAM_VERSION} usr/lib/android/libselinux.so.5

Diff for: debian/changelog

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
android-platform-external-libselinux (5.1.1+r8-1) UNRELEASED; urgency=low
2+
3+
* Initial release
4+
5+
-- Kai-Chung Yan <[email protected]> Sat, 25 Jul 2015 21:28:26 +0800

Diff for: debian/compat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

Diff for: debian/control

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Source: android-platform-external-libselinux
2+
Section: libs
3+
Priority: optional
4+
Maintainer: Android tools Maintainer <[email protected]>
5+
Uploaders: Kai-Chung Yan <[email protected]>
6+
Build-Depends: debhelper (>=9),
7+
dh-exec,
8+
libpcre3-dev
9+
Standards-Version: 3.9.6
10+
Vcs-Git: https://anonscm.debian.org/android-tools/android-platform-external-libselinux.git
11+
Vcs-Browser: http://anonscm.debian.org/cgit/android-tools/android-platform-external-libselinux.git
12+
13+
Package: android-libselinux
14+
Section: libs
15+
Architecture: linux-any
16+
Depends: libpcre3,
17+
${misc:Depends},
18+
${shlibs:Depends}
19+
Description: SELinux for Android
20+
This library is only used by Android SDK currently.
21+
22+
Package: android-libselinux-dev
23+
Section: libdevel
24+
Architecture: linux-any
25+
Depends: ${misc:Depends}
26+
Description: SELinux for Android - Development files
27+
This library is only used by Android SDK currently.
28+
.
29+
This package provides the development files.

Diff for: debian/copyright

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
2+
Upstream-Contact: https://source.android.com/compatibility/contact-us.html
3+
Upstream-Name: SELinux for Android
4+
Source: https://android.googlesource.com/platform.external/libselinux
5+
6+
Files: *
7+
Copyright: N/A
8+
License: public-domain
9+
10+
Files: debian/*
11+
Copyright: 2015, Kai-Chung Yan <[email protected]>
12+
License: MIT
13+
14+
License: MIT
15+
Permission is hereby granted, free of charge, to any person obtaining a copy
16+
of this software and associated documentation files (the "Software"), to deal
17+
in the Software without restriction, including without limitation the rights
18+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19+
copies of the Software, and to permit persons to whom the Software is
20+
furnished to do so, subject to the following conditions:
21+
.
22+
The above copyright notice and this permission notice shall be included in
23+
all copies or substantial portions of the Software.
24+
.
25+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
31+
THE SOFTWARE.

Diff for: debian/gbp.conf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[DEFAULT]
2+
pristine-tar = True
3+
sign-tags = True

Diff for: debian/rules

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/make -f
2+
3+
export UPSTREAM_VERSION = 5.1.1.8
4+
5+
%:
6+
dh $@
7+
8+
override_dh_auto_build:
9+
make -C src -f ../debian/Makefile
10+
11+
override_dh_auto_clean:
12+
dh_auto_clean
13+
make -C src clean -f ../debian/Makefile

Diff for: debian/source/format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

0 commit comments

Comments
 (0)