38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
app=netcat
|
|
version=1.10
|
|
build=1sml
|
|
homepage="https://salsa.debian.org/debian/netcat"
|
|
download="https://salsa.debian.org/debian/netcat/-/archive/upstream/$version/netcat-upstream-$version.tar.bz2"
|
|
desc="Utility to read and write data across network connections"
|
|
requires="openssl libpcap"
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf nc-110
|
|
|
|
tar xf $srcdir/nc-110.tar.?z*
|
|
cd nc-110
|
|
fixbuilddirpermissions
|
|
|
|
applypatch $srcdir/nc-110-21.diff
|
|
applypatch $srcdir/nc.diff
|
|
}
|
|
|
|
build() {
|
|
make linux
|
|
install -Dm 755 nc $pkg/usr/bin/nc
|
|
install -Dm 644 debian/nc.1 $pkg/usr/share/man/man1/nc.1
|
|
|
|
( cd $pkg/usr/bin ; ln -s nc netcat )
|
|
|
|
cp $srcdir/NOLICENSE-COPYRIGHT $pkgdocs/
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
sha512sums="
|
|
80359fc233f1f5dd450cb15a496f733fd4d7b65087f4f54474d2307b316282b8faf3e54f80caad847bbfd703d6197e5053dd7b8b4ef28fe0c34ed6b81c294733 nc-110.tar.xz
|
|
d52a70eaf5cd0b86ef35bc2940ac4418e6f6ff608815bd1fd04466858f727e4216cf5412ed7dea051223e4ab41535bc69d1f125981c464815c2686e8f4c29781 nc-110-21.diff
|
|
870d2a3d7cd0f2cbe9049f4a54cfbf8258d40a77fc38e44b59cd4683360a1ca6bfa737303cbd4810d28127fb96ef052f8102646f59b26234cfe9db22b51276a3 nc.diff
|
|
"
|