summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repo/system/liblinear.xibuild18
-rw-r--r--repo/system/libpcap.xibuild18
-rw-r--r--repo/system/lua.xibuild57
-rw-r--r--repo/util/nmap.xibuild17
4 files changed, 110 insertions, 0 deletions
diff --git a/repo/system/liblinear.xibuild b/repo/system/liblinear.xibuild
new file mode 100644
index 0000000..2427bca
--- /dev/null
+++ b/repo/system/liblinear.xibuild
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+MAKEDEPS=(make )
+DEPS=(glibc)
+
+PKG_VER=243
+SOURCE=https://github.com/cjlin1/liblinear/archive/v$PKG_VER/liblinear-$PKG_VER.tar.gz
+DESC="A library for large linear classification"
+
+build () {
+ make lib
+}
+
+package () {
+ install -vm644 linear.h $PKG_DEST/usr/include &&
+ install -vm755 liblinear.so.4 $PKG_DEST/usr/lib &&
+ ln -sfv liblinear.so.4 $PKG_DEST/usr/lib/liblinear.so
+}
diff --git a/repo/system/libpcap.xibuild b/repo/system/libpcap.xibuild
new file mode 100644
index 0000000..a7d8857
--- /dev/null
+++ b/repo/system/libpcap.xibuild
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+MAKEDEPS=(make )
+DEPS=(libnl libusb)
+
+PKG_VER=1.10.1
+SOURCE=https://www.tcpdump.org/release/libpcap-$PKG_VER.tar.gz
+DESC="A library providing user level packet capture"
+
+build () {
+ ./configure \
+ --prefix=/usr
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/lua.xibuild b/repo/system/lua.xibuild
new file mode 100644
index 0000000..8dc9685
--- /dev/null
+++ b/repo/system/lua.xibuild
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+MAKEDEPS=(make )
+DEPS=(readline)
+
+PKG_VER=5.4.4
+SOURCE=https://www.lua.org/ftp/lua-$PKG_VER.tar.gz
+ADDITIONAL=(
+ https://www.linuxfromscratch.org/patches/blfs/svn/lua-$PKG_VER-shared_library-1.patch
+ )
+DESC="A powerful lightweight scripting language"
+
+prepare () {
+ cat > lua.pc << "EOF"
+V=5.4
+R=5.4.4
+
+prefix=/usr
+INSTALL_BIN=${prefix}/bin
+INSTALL_INC=${prefix}/include
+INSTALL_LIB=${prefix}/lib
+INSTALL_MAN=${prefix}/share/man/man1
+INSTALL_LMOD=${prefix}/share/lua/${V}
+INSTALL_CMOD=${prefix}/lib/lua/${V}
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: Lua
+Description: An Extensible Extension Language
+Version: ${R}
+Requires:
+Libs: -L${libdir} -llua -lm -ldl
+Cflags: -I${includedir}
+EOF
+
+ patch lua-$PKG_VER-shared_library-1.patch
+}
+
+build () {
+ make linux
+}
+
+package () {
+ make install
+ make INSTALL_TOP=/usr \
+ DESTDIR=$PKG_DEST \
+ INSTALL_DATA="cp -d" \
+ INSTALL_MAN=/usr/share/man/man1 \
+ TO_LIB="liblua.so liblua.so.${PKG_VER} liblua.so.5.4.4" \
+ install &&
+
+ mkdir -pv $PKG_DEST/usr/share/doc/lua-$PKG_VER &&
+ cp -v doc/*.{html,css,gif,png} $PKG_DEST/usr/share/doc/lua-$PKG_VER &&
+
+ install -v -m644 -D lua.pc $PKG_DEST/usr/lib/pkgconfig/lua.pc
+}
diff --git a/repo/util/nmap.xibuild b/repo/util/nmap.xibuild
new file mode 100644
index 0000000..3d60959
--- /dev/null
+++ b/repo/util/nmap.xibuild
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+MAKEDEPS=(make )
+DEPS=(libpcap lua pcre liblinear)
+
+PKG_VER=7.92
+SOURCE=https://nmap.org/dist/nmap-$PKG_VER.tar.bz2
+DESC="Network exploration and security auditing utility"
+
+build() {
+ ./configure --prefix=/usr
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}