milis/talimatname/genel/l/libselinux/talimat

28 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: SELinux kitaplığı ve basit araçları
2017-07-25 22:21:02 +02:00
# URL: http://userspace.selinuxproject.org"
2017-10-27 20:46:27 +02:00
# Paketçi: yasarciv67@gmail.com
# Gerekler: python3 python libsepol pcre
2017-07-25 22:21:02 +02:00
2017-10-28 14:10:23 +02:00
isim=libselinux
surum=2.4
devir=1
2017-07-25 22:21:02 +02:00
2017-10-28 14:10:23 +02:00
kaynak=(https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/${isim}-${surum}.tar.gz
2017-07-25 22:21:02 +02:00
libselinux.tmpfiles.d)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd ${isim}-${surum}
2017-07-25 22:21:02 +02:00
sed -i 's|pkg-config --cflags ruby|pkg-config --cflags ruby-$(RUBYLIBVER)|' src/Makefile
sed -i 's|site_ruby|vendor_ruby|' src/Makefile
#make swigify
make all
#make PYTHON=python2 pywrap
#make PYTHON=python3 pywrap
#make rubywrap
make DESTDIR=${PKG} USRBINDIR=${PKG}/usr/bin LIBDIR=${PKG}/usr/lib SHLIBDIR=${PKG}/usr/lib install
#make DESTDIR=${PKG} USRBINDIR=${PKG}/usr/bin LIBDIR=${PKG}/usr/lib SHLIBDIR=${PKG}/usr/lib PYTHON=python2 install-pywrap
#make DESTDIR=${PKG} USRBINDIR=${PKG}/usr/bin LIBDIR=${PKG}/usr/lib SHLIBDIR=${PKG}/usr/lib PYTHON=python3 install-pywrap
#make DESTDIR=${PKG} USRBINDIR=${PKG}/usr/bin LIBDIR=${PKG}/usr/lib SHLIBDIR=${PKG}/usr/lib install-rubywrap
install -Dm 0644 ${SRC}/libselinux.tmpfiles.d ${PKG}/usr/lib/tmpfiles.d/libselinux.conf
}