-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |