Skip to content

Commit

Permalink
Add netcat-openbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
wawrzek committed May 17, 2024
1 parent 3f3ef1f commit 82ec429
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions netcat-openbsd/.footprint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/nc
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man1/
-rw-r--r-- root/root usr/share/man1/nc.1
6 changes: 6 additions & 0 deletions netcat-openbsd/.signature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
untrusted comment: verify with /etc/ports/wawrzek.pub
RWQXc2agtIcYBSzK/vSMwmNkLjTdDS0XCtiUrT0Sal48ftX2dk7Q2EFucnSUK6jNVO6a5SdoiqFmK1JlEvxqGQyHJ9JGowz9VQo=
SHA256 (Pkgfile) = 6d3f95996e2f2feef44dda0b6b50b3de84a95ae7a5aed3e2af7d3079c361eb16
SHA256 (.footprint) = d802289ee363dc6e1b5c512b0f4ebade108c075f11fb652145f88782e40aea93
SHA256 (netcat-openbsd_1.226.orig.tar.gz) = 91c34c3b9ebc18b84e42514ea0328274229afd408853f7e22af897652ee6bfe5
SHA256 (netcat-openbsd_1.226-1.1.debian.tar.xz) = 8fc57cf95e124ce33f41c045d8cf520a94f3a00d0c9f9424c8e81ae48bea9b01
31 changes: 31 additions & 0 deletions netcat-openbsd/Pkgfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Description: Netcat from OpenBSD rewritten by Debian
# URL: https://www.debuan.org/
# Maintainer: Wawrzek Niewodniczanski, main at wawrzek dot name
# Packager: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: libbsd gnutls

name=netcat-openbsd
version=1.226
release=1
source=(
http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${version}.orig.tar.gz
http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${version}-1.1.debian.tar.xz
)

build(){
CFLAGS="${CFLAGS} -I/usr/opt/libbsd/include"
LDFLAGS="${LDFLAGS} -L/usr/opt/libbsd/lib"
LD_LIBRARY_PATH="/usr/oprt/libbsd/lib"
PKG_CONFIG_PATH="/usr/opt/libbsd/lib/pkgconfig"

cd $name-$version

# apply debian patches
for i in `cat $SRC/debian/patches/series`; do
patch -p1 -i $SRC/debian/patches/$i
done

gcc -o nc $CFLAGS -I. ${LDFLAGS} -lgnutls -lssl -lcrypto -lbsd -lresolv *.c
install -D -m755 nc $PKG/usr/bin/nc
install -D -m644 nc.1 $PKG/usr/share/man1/nc.1
}

0 comments on commit 82ec429

Please sign in to comment.