Re-added net and xfce build files
This commit is contained in:
parent
9d657e0a1d
commit
d230f4c1b5
133 changed files with 4728 additions and 189 deletions
188
bldpkg
188
bldpkg
|
@ -45,7 +45,7 @@ fi
|
|||
|
||||
getbuildfileanddir() {
|
||||
srcdir="$PWD"
|
||||
buildfile="${srcdir##*/}.SMBuild"
|
||||
buildfile="smbuild"
|
||||
}
|
||||
|
||||
# Function to error out the build in absence of a build file
|
||||
|
@ -90,17 +90,16 @@ Any option used as an argument with this script overrides the
|
|||
corresponding option, if present, in /etc/bldpkg.conf or '$HOME/.bldpkg.conf'
|
||||
|
||||
If no arguments are provided, this script attempts to first look for
|
||||
a build file with a .SMBuild extension that matches the name of
|
||||
the parent directory, sources that .SMBuild file and starts the build.
|
||||
a build file called "smbuild" and starts the build.
|
||||
|
||||
For example, if the package source directory is $HOME/smlinux/alsa-lib, this script will
|
||||
look and source from alsa-lib.SMBuild and build alsa-lib package
|
||||
look and source from 'smbuild' and build alsa-lib package
|
||||
|
||||
# pwd
|
||||
/home/user/smlinux/alsa-lib
|
||||
|
||||
# ls
|
||||
alsa-lib.SMBuild
|
||||
smbuild alsa-lib-1.0.tar.gz
|
||||
|
||||
# bldpkg
|
||||
Building package 'alsa-lib' version '1.x'...
|
||||
|
@ -129,7 +128,7 @@ Usage:
|
|||
|
||||
-o <file> Copy this file into the package installer rather than the default one
|
||||
the build was initiated from. Usually the default one is either
|
||||
<app>.SMBuild or the one supplied using -f <file> but in certain
|
||||
<smbuild> or the one supplied using -f <file> but in certain
|
||||
exceptional cases a different file is required to be copied into the
|
||||
package installer. Do note that this file will also undergo validation
|
||||
|
||||
|
@ -162,62 +161,50 @@ validatebldfile() {
|
|||
source $buildfile
|
||||
fi
|
||||
|
||||
# Check to prevent a package from being built on an unsupported CPU architecture
|
||||
if [[ -n $apparch ]] ; then
|
||||
local detectedarch="$(uname -m)"
|
||||
if [[ $apparch != $detectedarch ]] ; then
|
||||
info "'$app' not supported on your current CPU '$detectedarch'. Build aborted."
|
||||
buildskipped=1
|
||||
return 0
|
||||
for reqvars in app version build homepage desc requires ; do
|
||||
[[ ! ${!reqvars} ]] && err "Required variable '$reqvars' is not set in $buildfile!"
|
||||
done
|
||||
|
||||
# Check if 'Maintainer' comment exists
|
||||
if ! grep -q "^# Maintainer" "$buildfile" ; then
|
||||
err "Please provide a Maintainer name and email as a comment at the top of the build file"
|
||||
|
||||
# Validate $app
|
||||
elif ! echo "$app" | grep -E -q '[a-z0-9-]+'; then
|
||||
err "Only lower case, numeric characters and dash allowed in the 'app' variable in the build file."
|
||||
|
||||
# Validate $version
|
||||
elif ! echo "$version" | grep -E -q '[a-z0-9.]+'; then
|
||||
err "Only lower case, numeric characters and a period allowed in the 'version' variable in the build file."
|
||||
|
||||
# Validate $homepage
|
||||
elif ! echo "$homepage" | grep -E -q '(https|http|ftp)://[^"]+' ; then
|
||||
err "Invalid URL in the 'homepage' variable in the build file."
|
||||
|
||||
# Validate $desc using bash shell's ability to count variable length
|
||||
elif [[ ${#desc} -gt 100 ]] ; then
|
||||
err "Package description should not exceed 100 characters in the build file."
|
||||
|
||||
# Check if prepbuilddir() function exists in the build file
|
||||
elif ! grep -q '^prepbuilddir() {' "$buildfile" ; then
|
||||
err "'prepbuilddir()' function does not exist in your build file."
|
||||
|
||||
# Check if build() function exists in the build file
|
||||
elif ! grep -q '^build() {' "$buildfile" ; then
|
||||
err "'build()' function does not exist in your build file."
|
||||
fi
|
||||
|
||||
# Validate the download variable separately because it's optional
|
||||
if [[ -n $download ]] ; then
|
||||
if ! echo "$download" | grep -E -q '(https|http|ftp)://[^"]+' ; then
|
||||
err "Invalid URL in the 'download' variable in the build file."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -z $buildskipped ]] ; then
|
||||
for reqvars in app version build homepage desc requires ; do
|
||||
[[ ! ${!reqvars} ]] && err "Required variable '$reqvars' is not set in $buildfile!"
|
||||
done
|
||||
|
||||
# Check if 'Maintainer' comment exists
|
||||
if ! grep -q "^# Maintainer" "$buildfile" ; then
|
||||
err "Please provide a Maintainer name and email as a comment at the top of the build file"
|
||||
|
||||
# Validate $app
|
||||
elif ! echo "$app" | grep -E -q '[a-z0-9-]+'; then
|
||||
err "Only lower case, numeric characters and dash allowed in the 'app' variable in the build file."
|
||||
|
||||
# Validate $version
|
||||
elif ! echo "$version" | grep -E -q '[a-z0-9.]+'; then
|
||||
err "Only lower case, numeric characters and a period allowed in the 'version' variable in the build file."
|
||||
|
||||
# Validate $homepage
|
||||
elif ! echo "$homepage" | grep -E -q '(https|http|ftp)://[^"]+' ; then
|
||||
err "Invalid URL in the 'homepage' variable in the build file."
|
||||
|
||||
# Validate $desc using bash shell's ability to count variable length
|
||||
elif [[ ${#desc} -gt 100 ]] ; then
|
||||
err "Package description should not exceed 100 characters in the build file."
|
||||
|
||||
# Check if prepbuilddir() function exists in the build file
|
||||
elif ! grep -q '^prepbuilddir() {' "$buildfile" ; then
|
||||
err "'prepbuilddir()' function does not exist in your build file."
|
||||
|
||||
# Check if build() function exists in the build file
|
||||
elif ! grep -q '^build() {' "$buildfile" ; then
|
||||
err "'build()' function does not exist in your build file."
|
||||
fi
|
||||
|
||||
# Validate the download variable separately because it's optional
|
||||
if [[ -n $download ]] ; then
|
||||
if ! echo "$download" | grep -E -q '(https|http|ftp)://[^"]+' ; then
|
||||
err "Invalid URL in the 'download' variable in the build file."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check integrity of files defined in sha512sums variable which is expected
|
||||
# in nearly every single package build file
|
||||
if [[ -z $sha512sums ]] ; then
|
||||
err "Please run 'bldpkg -g' to add sha512sums into '$buildfile'!"
|
||||
fi
|
||||
# Check integrity of files defined in sha512sums variable which is expected
|
||||
# in nearly every single package build file
|
||||
if [[ -z $sha512sums ]] ; then
|
||||
err "Please run 'bldpkg -g' to add sha512sums into '$buildfile'!"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -233,14 +220,6 @@ verifychecksums() {
|
|||
unset IFS
|
||||
}
|
||||
|
||||
pythonfix() {
|
||||
if [[ -d $pkg/usr ]] ; then
|
||||
info "Shifting contents out of $pkg/usr"
|
||||
cp -ar $pkg/usr/* $pkg/
|
||||
rm -r $pkg/usr
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to validate MAKEFLAGS passed on by getopts
|
||||
validatemakeflags() {
|
||||
local makeflags="$1"
|
||||
|
@ -344,7 +323,7 @@ sccacheprocess() {
|
|||
mkandenterbuilddir() {
|
||||
|
||||
# Define $pkgdocs. Rest is defined in bldpkg.conf.
|
||||
pkgdocs="$pkg/share/doc/$app-$version"
|
||||
pkgdocs="$pkg/usr/share/doc/$app-$version"
|
||||
|
||||
# Remove any old pkg staging directory left by any previous build having same application name
|
||||
rm -rf "$pkg"
|
||||
|
@ -563,20 +542,10 @@ mkfinalpkg() {
|
|||
cd "$pkg"
|
||||
info "Performing packaging tasks..."
|
||||
|
||||
# Check if /lib64 was created inside $pkg
|
||||
[[ -d lib64 ]] && err "Multilib directory '/lib64' created inside '$pkg' not supported by musl C library."
|
||||
|
||||
# Check if /usr and /sbin were created inside staging directory $pkg.
|
||||
# If they are, check if the directory contains python-specific site-packages
|
||||
# directory or has ignoreusr variable set.
|
||||
for directory in sbin usr ; do
|
||||
# We don't want several directories because we are following the merge-usr principle
|
||||
for directory in bin lib lib64 share include usr/etc usr/sbin usr/lib64 usr/local ; do
|
||||
if [[ -d $directory ]] ; then
|
||||
detectsitepackages="$(find . -name "site-packages" | wc -l)"
|
||||
if [[ $detectsitepackages -gt 0 ]] || [[ -n $ignoreusr ]] ; then
|
||||
pythonfix
|
||||
else
|
||||
err "$pkg/$directory is a symlink to '/bin'. Fix your build options and ensure such a directory is not created"
|
||||
fi
|
||||
err "$pkg/$directory is a symlink to '/usr'. Fix your build file and ensure such a directory is not created"
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -584,17 +553,17 @@ mkfinalpkg() {
|
|||
|
||||
[[ -e $srcdir/doinst.sh ]] && cp "$srcdir/doinst.sh" "install/"
|
||||
|
||||
# If /share/applications directory exists but there is no doinst.sh in the source directory, create one using cat
|
||||
if [[ -d share/applications ]] && [[ ! -e $srcdir/doinst.sh ]] ; then
|
||||
info "Found /share/applications but couldn't find any doinst.sh in the source directory.
|
||||
# If usr/share/applications directory exists but there is no doinst.sh in the source directory, create one using cat
|
||||
if [[ -d usr/share/applications ]] && [[ ! -e $srcdir/doinst.sh ]] ; then
|
||||
info "Found /usr/share/applications but couldn't find any doinst.sh in the source directory.
|
||||
Creating one automatically that refreshes GTK cache."
|
||||
cat << EOF >> "install/doinst.sh"
|
||||
[[ -x /etc/rc.d/rc.gtk ]] && /etc/rc.d/rc.gtk
|
||||
EOF
|
||||
|
||||
# Or if /share/applications directory exists, and there is a doinst.sh file in the source directory, but there is no mention of rc.gtk, then too create one using cat
|
||||
elif [[ -d share/applications ]] && [[ -e $srcdir/doinst.sh ]] && ! grep -q 'rc.gtk' "$srcdir/doinst.sh" ; then
|
||||
info "Found /share/applications but couldn't find any rc.gtk lines inside doinst.sh in the source directory.
|
||||
# Or if usr/share/applications directory exists, and there is a doinst.sh file in the source directory, but there is no mention of rc.gtk, then too create one using cat
|
||||
elif [[ -d usr/share/applications ]] && [[ -e $srcdir/doinst.sh ]] && ! grep -q 'rc.gtk' "$srcdir/doinst.sh" ; then
|
||||
info "Found usr/share/applications but couldn't find any rc.gtk lines inside doinst.sh in the source directory.
|
||||
Creating one automatically that refreshes GTK cache."
|
||||
cat << EOF >> "install/doinst.sh"
|
||||
[[ -x /etc/rc.d/rc.gtk ]] && /etc/rc.d/rc.gtk
|
||||
|
@ -602,10 +571,10 @@ EOF
|
|||
fi
|
||||
|
||||
# Compress and link manpages
|
||||
if [[ -d share/man ]]; then
|
||||
if [[ -d usr/share/man ]]; then
|
||||
info "Compressing and linking man pages..."
|
||||
(
|
||||
cd "share/man"
|
||||
cd "usr/share/man"
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
(
|
||||
cd $manpagedir
|
||||
|
@ -621,24 +590,22 @@ EOF
|
|||
|
||||
# Provide a copy of the package build file as a source of reference for users
|
||||
if [[ -n $origbuildfile ]] && [[ -f $srcdir/$origbuildfile ]] ; then
|
||||
install -Dm 644 "$srcdir/$origbuildfile" "$pkgdocs/$app.SMBuild"
|
||||
install -Dm 644 "$srcdir/$origbuildfile" "$pkgdocs/smbuild"
|
||||
else
|
||||
install -Dm 644 "$srcdir/$buildfile" "$pkgdocs/$app.SMBuild"
|
||||
install -Dm 644 "$srcdir/$buildfile" "$pkgdocs/smbuild"
|
||||
fi
|
||||
|
||||
# Remove libtool archive files
|
||||
if [[ -d lib ]] && [[ "$(findlibtoolfiles | wc -l)" -ge 1 ]] ; then
|
||||
if [[ "$(findlibtoolfiles | wc -l)" -ge 1 ]] ; then
|
||||
info "Discarding libtool archive (.la) files..."
|
||||
findlibtoolfiles -exec rm -v {} \;
|
||||
fi
|
||||
|
||||
# If $preservestaticlibs is not set in the package build file, delete all static libraries
|
||||
if [[ -d lib ]] ; then
|
||||
if [[ -z $preservestaticlibs ]] ; then
|
||||
if [[ "$(findarchivefiles | wc -l)" -ge 1 ]] ; then
|
||||
info "Discarding static libraries..."
|
||||
findarchivefiles | xargs rm -v
|
||||
fi
|
||||
if [[ -z $preservestaticlibs ]] ; then
|
||||
if [[ "$(findarchivefiles | wc -l)" -ge 1 ]] ; then
|
||||
info "Discarding static libraries..."
|
||||
findarchivefiles | xargs rm -v
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -652,9 +619,9 @@ EOF
|
|||
fi
|
||||
|
||||
# Move package documentation and licenses into $pkgdocs
|
||||
if [[ -d share/doc/$app ]] ; then
|
||||
cp -ar share/doc/$app $pkgdocs/
|
||||
rm -r share/doc/$app
|
||||
if [[ -d usr/share/doc/$app ]] ; then
|
||||
cp -ar usr/share/doc/$app $pkgdocs/
|
||||
rm -r usr/share/doc/$app
|
||||
fi
|
||||
|
||||
# Calculate total files, directories, symlinks and uncompressed staging directory size
|
||||
|
@ -689,11 +656,12 @@ EOF
|
|||
fi
|
||||
|
||||
# Discard charset.alias
|
||||
[[ -f lib/charset.alias ]] && rm lib/charset.alias
|
||||
find "$pkg" -name "charset.alias" -exec rm -v {} \;
|
||||
|
||||
# Also discard the lib and install directory if it's empty but don't error out
|
||||
rmdir lib &> /dev/null || true
|
||||
rmdir install &> /dev/null || true
|
||||
for dir in lib usr/lib usr/share usr/lib64 install ; do
|
||||
rmdir $dir &> /dev/null || true
|
||||
done
|
||||
|
||||
tar cvf - . --format gnu \
|
||||
--xform 'sx^\./\(.\)x\1x' \
|
||||
|
@ -753,11 +721,11 @@ EOF
|
|||
}
|
||||
|
||||
findarchivefiles() {
|
||||
find "lib" -type f -name "*.a"
|
||||
find "$pkg" -type f -name "*.a"
|
||||
}
|
||||
|
||||
findlibtoolfiles() {
|
||||
find "lib" -type f -name "*.la" "$@"
|
||||
find "$pkg" -type f -name "*.la" "$@"
|
||||
}
|
||||
|
||||
findelffiles() {
|
||||
|
@ -1018,7 +986,7 @@ stage0prep() {
|
|||
tmpfsenabledforthispackage=1
|
||||
|
||||
# Disable ccache
|
||||
ccache=0
|
||||
ccache=1
|
||||
|
||||
# Override preservebuilddir and preservepackagedir to remove both build and package staging directories
|
||||
preservebuilddir=0
|
||||
|
@ -1159,12 +1127,12 @@ rustc-wrapper = "/bin/sccache"'
|
|||
export CONFIG_SITE
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Do a preliminary package dependency check if $checkdependencies is set to 1 in bldpkg.conf
|
||||
if [[ $checkdependencies = 1 ]] ; then
|
||||
info "Parsing $app 's dependency list..."
|
||||
for packagedep in $requires; do
|
||||
depcount=$(find /share/doc -type f -name "$packagedep.SMBuild" | wc -l)
|
||||
depcount=$(find /usr/share/doc -type f -name "smbuild" | wc -l)
|
||||
# If count is 1, we are ok
|
||||
if [[ $depcount = 1 ]] ; then
|
||||
info "Found dependency '$packagedep'"
|
||||
|
@ -1227,7 +1195,7 @@ autobuild() {
|
|||
diffstatus="1"
|
||||
fi
|
||||
|
||||
if [ "$diffstatus" != "0" ]; then
|
||||
if [[ "$diffstatus" != "0" ]]; then
|
||||
warn "In section '"$section"', the number of packages in the hidden file '.buildlist."$section"' is different to the number of package directories. Some packages may not have been added to this file/section directory. They are listed below:"
|
||||
|
||||
diff -u "$dirfiletemppath" "$packfiletemppath" || true
|
||||
|
|
|
@ -6,17 +6,18 @@ download=""
|
|||
desc=""
|
||||
requires=""
|
||||
|
||||
build() {
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
|
@ -8,7 +8,7 @@
|
|||
# b. Create app directory and download its source
|
||||
# c. Copy sample build file sample.SMBuild from /etc
|
||||
# d. Define app, version, build, homepage, download, desc and requires variables in the build file
|
||||
# e. Optionally add and define sm_distcc, sm_ccache and sm_debug variables
|
||||
# e. Optionally add and define distcc, ccache and debug variables
|
||||
# f. mkandenterbuilddir function removes old package build directory, makes a new one and cd's into $tmp
|
||||
# g. Old source directory is removed from $tmp and new one is extracted into it
|
||||
# h. fixbuilddirpermissions function fixes any permissions inside the new source directory
|
||||
|
@ -46,37 +46,37 @@ desc=""
|
|||
requires=""
|
||||
# ^ Add runtime dependencies to this variable, each dependency separated by a space. This variable *must be defined*.
|
||||
|
||||
sm_distcc=0
|
||||
distcc=0
|
||||
# ^ This variable, when set to 0, will cause the build system to not use distcc
|
||||
# for building this particular package. See also how sm_globaldistcc variable
|
||||
# for building this particular package. See also how globaldistcc variable
|
||||
# in bldpkg.conf affects this option.
|
||||
# This variable is optional.
|
||||
|
||||
sm_ccache=0
|
||||
ccache=0
|
||||
# ^ This variable, when set to 0, will cause the build system to not use ccache
|
||||
# for building this particular package. See also how sm_globalccache variable
|
||||
# for building this particular package. See also how globalccache variable
|
||||
# in bldpkg.conf affects this option.
|
||||
# This variable is optional.
|
||||
|
||||
sm_debug=1
|
||||
debug=1
|
||||
# ^ This variable, when set to 1, will produce a debug build by preserving any
|
||||
# debug symbols in the binaries and libraries contained in $pkg.
|
||||
# Default is to strip all binaries and libraries.
|
||||
# This variable is optional.
|
||||
|
||||
sm_noautoconfsite=1
|
||||
noautoconfsite=1
|
||||
# ^ This variable, when set to 1, will disable exporting of the CONFIG_SITE variable.
|
||||
# CONFIG_SITE points to a file path defined in bldpkg.conf that holds predefined answers
|
||||
# to various configure tests. Use it if a package's configure script returns errors
|
||||
# which it normally wouldn't when the cache file was not used.
|
||||
# This variable is optional.
|
||||
|
||||
sm_skipchecksum=1
|
||||
skipchecksum=1
|
||||
# ^ This variable, when set to 1, will cause the build system to skip checksum verifications. Use it when building
|
||||
# packages that contain files without any extensions, like scripts or any binaries
|
||||
|
||||
build() {
|
||||
# ^ Start of the "build" function. This function lists the steps for the order in which to compile
|
||||
prepbuilddir() {
|
||||
# ^ Start of the "prepbuilddir" function. This function lists the steps for the order in which to compile
|
||||
# a given package. The order basically consists of invoking other functions that are defined
|
||||
# in bldpkg.d.
|
||||
|
||||
|
@ -119,8 +119,7 @@ build() {
|
|||
|
||||
|
||||
./configure \ --------+
|
||||
--prefix="" \ |
|
||||
--sysconfdir=/etc |
|
||||
--prefix=/usr |
|
||||
|
|
||||
make |
|
||||
make install DESTDIR=$pkg |
|
||||
|
@ -129,7 +128,7 @@ build() {
|
|||
| <- the usual compile stuff that goes into building the package
|
||||
mkdir -p build && cd build | prior to installing it into $PKG
|
||||
meson .. \ |
|
||||
--prefix="" \ |
|
||||
--prefix=/usr \ |
|
||||
-Ddocs=false |
|
||||
|
|
||||
ninja |
|
|
@ -1,6 +1,5 @@
|
|||
fail2ban
|
||||
distcc
|
||||
bwm-ng
|
||||
netcat
|
||||
ppp
|
||||
rp-pppoe
|
||||
|
@ -13,14 +12,11 @@ rsync
|
|||
darkstat
|
||||
ifstat
|
||||
iputils
|
||||
nload
|
||||
tcpdump
|
||||
whois
|
||||
iftop
|
||||
mailcheck
|
||||
vnstat
|
||||
smstools
|
||||
minicom
|
||||
sshfs
|
||||
iw
|
||||
openssh
|
||||
|
@ -31,13 +27,13 @@ wget
|
|||
dovecot
|
||||
znc
|
||||
postfix
|
||||
opendkim
|
||||
nginx
|
||||
fcgi
|
||||
fcgiwrap
|
||||
rtl-sdr
|
||||
weechat
|
||||
bindutils
|
||||
dump1090
|
||||
irssi
|
||||
cgit
|
||||
darkhttpd
|
||||
|
@ -56,28 +52,16 @@ unbound
|
|||
wpa-supplicant
|
||||
hostapd
|
||||
sylpheed
|
||||
minidlna
|
||||
hexchat
|
||||
uget
|
||||
maccalc
|
||||
fping
|
||||
mtr
|
||||
cups
|
||||
ghostscript
|
||||
poppler
|
||||
poppler-data
|
||||
evince
|
||||
cups-filters
|
||||
sane-backends
|
||||
sane-frontends
|
||||
wavemon
|
||||
macchanger
|
||||
dhcpcd
|
||||
iperf
|
||||
ipset
|
||||
rrdtool
|
||||
php
|
||||
traceroute
|
||||
privoxy
|
||||
samba
|
||||
net-snmp
|
||||
nfs-utils
|
||||
samba
|
||||
|
|
40
net/bindutils/smbuild
Normal file
40
net/bindutils/smbuild
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=bindutils
|
||||
version=9.16.2
|
||||
build=1sml
|
||||
homepage="https://www.isc.org/bind/"
|
||||
download="https://ftp.isc.org/isc/bind9/$version/bind-$version.tar.xz"
|
||||
desc="domain utility collection packaged separately from BIND source"
|
||||
requires="libxml2 openssl libuv libcap"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf bind-$version
|
||||
|
||||
tar xf $srcdir/bind-$version.tar.?z
|
||||
cd bind-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--without-readline \
|
||||
--without-libjson \
|
||||
--without-python
|
||||
|
||||
for i in dns isc bind9 isccfg irs ; do
|
||||
make -C lib/$i
|
||||
done
|
||||
|
||||
make -C bin/dig install DESTDIR="$pkg"
|
||||
|
||||
cp COPYRIGHT LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
486aa4fd204fa4dcf48fa190a04fc15df84cb8b85397d58bdb96d86389eb1dde44fb76153b42a1ac2d47d5a3f19eda540c74198d0691a7bef8fda9878fdf4926 bind-9.16.2.tar.lz
|
||||
"
|
41
net/cifs-utils/smbuild
Normal file
41
net/cifs-utils/smbuild
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=cifs-utils
|
||||
version=6.8
|
||||
build=1sml
|
||||
homepage="http://wiki.samba.org/index.php/LinuxCIFS_utils"
|
||||
download="https://download.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-$version.tar.bz2"
|
||||
desc="Utilities for managing CIFS filesystems"
|
||||
requires="libcap"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/musl-fix-includes.patch
|
||||
applypatch $srcdir/xattr_size_max.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
# ./configure doesn't care if you change --sbindir to /bin, so we move mount.cifs manually
|
||||
mkdir -p $pkg/bin ; mv $pkg/sbin/* $pkg/bin/ ; rmdir $pkg/sbin
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
d59fb5e82e485df8f7221eadee3f60d6c7f1fb70987e686ca7929119eca113ec98754d3ab8d80f44c6aa926a9fbcfbe16b5e59eb46aa3ab7ba2cc787293d123f cifs-utils-6.8.tar.lz
|
||||
99a2fab05bc2f14a600f89526ae0ed2c183cfa179fe386cb327075f710aee3aed5ae823f7c2f51913d1217c2371990d6d4609fdb8d80288bd3a6139df3c8aebe musl-fix-includes.patch
|
||||
2a9366ec1ddb0389c535d2fa889f63287cb8374535a47232de102c7e50b6874f67a3d5ef3318df23733300fd8459c7ec4b11f3211508aca7800b756119308e98 xattr_size_max.patch
|
||||
"
|
38
net/comgt/smbuild
Normal file
38
net/comgt/smbuild
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=comgt
|
||||
version=0.32
|
||||
build=2sml
|
||||
homepage="https://sourceforge.net/projects/comgt"
|
||||
download="https://sourceforge.net/projects/comgt/files/comgt/$version/comgt.$version.tgz"
|
||||
desc="Utility to interact with 2G, 3G and LTE modems via standard AT command set"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf "$app.$version"
|
||||
|
||||
tar xf $srcdir/$app.$version.tgz
|
||||
cd "$app.$version"
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/002-termios.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
make
|
||||
install -Dm 755 comgt $pkg/usr/bin/comgt
|
||||
|
||||
mkdir -p $pkg/etc/comgt/examples $pkg/usr/share/man/man1
|
||||
cp *.1 $pkg/usr/share/man/man1/
|
||||
cp scripts/* $pkg/etc/comgt/examples/
|
||||
cp $srcdir/balance.* $pkg/etc/comgt/examples/
|
||||
|
||||
cp $srcdir/LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
862e52e4904b57e7e7b551da36c82807dbc16ad505b4e5aac0b1a03a2445919e43b9f8e271f046b179348ea733485d0901461512f83165e3e4751b096c43d3aa comgt.0.32.tgz
|
||||
f5fdea56c91badefedd470f3c68acb492b0885bd632f98f2a7c30c23e9bd2641e088da06b6ff276a8e40c796b68985791cf7c30c599543856431f3a9b2e35947 002-termios.patch
|
||||
"
|
37
net/cyrus-sasl/smbuild
Normal file
37
net/cyrus-sasl/smbuild
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=cyrus-sasl
|
||||
version=2.1.27
|
||||
build=1sml
|
||||
homepage="https://www.cyrusimap.org/sasl/"
|
||||
download="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.27/cyrus-sasl-2.1.27.tar.gz"
|
||||
desc="API to provide authentication and authorization"
|
||||
requires="db"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--sbindir=/usr/bin
|
||||
|
||||
( cd include ; make makemd5 )
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3111b30c6fd34f16dee2ff9499b09c9d32be2258f5c16ef52d99feff4ba01177929e0ee301d5e06c97ac42f25d72f054c7adebf048156e827659b6a4ba0da1bc cyrus-sasl-2.1.27.tar.lz
|
||||
"
|
30
net/darkhttpd/smbuild
Normal file
30
net/darkhttpd/smbuild
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=darkhttpd
|
||||
version=1.12
|
||||
build=1sml
|
||||
homepage="https://unix4lyfe.org/darkhttpd"
|
||||
desc="Simple, secure and lightweight HTTP server"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
make
|
||||
install -Dm 755 darkhttpd $pkg/usr/bin/darkhttpd
|
||||
|
||||
cp $srcdir/LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
92a6e317877f325ba8bf297ab855ff71ea233c0b83e1055dacc8fc2ff0b6eb5f11dca814fa2cce5f480294ef615e28e0551599b017a38ba73d2fd9a16a3ba933 darkhttpd-1.12.tar.lz
|
||||
"
|
36
net/darkstat/smbuild
Normal file
36
net/darkstat/smbuild
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=darkstat
|
||||
version=3.0.721
|
||||
build=1sml
|
||||
homepage="https://github.com/emikulic/darkstat"
|
||||
download="https://github.com/emikulic/darkstat/archive/refs/tags/3.0.721.tar.gz"
|
||||
desc="Gathers and displays network interface statistics over HTTP"
|
||||
requires="zlib libpcap libnl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
autoreconf -vi
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
365adca40e70eb92f26698b1e6207ec21d708858788f10ce631d33031cc8a90556818d8a2e8a8296ac183b6fcfc4c7a0d42426d142bc218052cbd86b26aee0ec darkstat-3.0.721.tar.lz
|
||||
"
|
42
net/dhcpcd/smbuild
Normal file
42
net/dhcpcd/smbuild
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=dhcpcd
|
||||
version=9.1.4
|
||||
build=1sml
|
||||
homepage="https://roy.marples.name/projects/dhcpcd"
|
||||
download="https://github.com/NetworkConfiguration/dhcpcd/archive/refs/tags/dhcpcd-9.1.4.tar.gz"
|
||||
desc="RFC2131 and 1541-compliant DHCP client"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/bin \
|
||||
--libexecdir=/usr/lib/dhcpcd \
|
||||
--datadir=/usr/share \
|
||||
--mandir=/usr/share/man \
|
||||
--dbdir=/var/lib/dhcpcd \
|
||||
--privsepuser=dhcpcd
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
# Rename the config file as .new
|
||||
mv $pkg/etc/dhcpcd.conf $pkg/etc/dhcpcd.conf.new
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
9095276a4492432dd8d7aef2e2a485137bc116240431f01a4d6bc27e484f56178462985485892b7869852f64983811042b636646364c82a3fe8fe84951739658 dhcpcd-9.1.4.tar.lz
|
||||
"
|
49
net/distcc/smbuild
Normal file
49
net/distcc/smbuild
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=distcc
|
||||
version=3.4
|
||||
build=2sml
|
||||
homepage="https://distcc.github.io/"
|
||||
download="https://github.com/distcc/distcc/releases/download/v$version/distcc-$version.tar.gz"
|
||||
desc="Distributed C and C++ compiler daemon for parallel building"
|
||||
requires="popt"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/dcc_gcc_rewrite_fqn-avoid-heap-corruption.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc \
|
||||
--without-libiberty \
|
||||
--without-avahi
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkdir -p $pkg/usr/lib/distcc
|
||||
(
|
||||
cd $pkg/usr/lib/distcc
|
||||
ln -sf ../../bin/distcc gcc
|
||||
ln -sf ../../bin/distcc cc
|
||||
ln -sf ../../bin/distcc g++
|
||||
ln -sf ../../bin/distcc c++
|
||||
)
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c2d7fd2baacee153f722e780b5dc3780eaf2903ceff22c3eb315905d425b984403e1abab540e8cd49829bc03a86ae984b62d31b9defb493adddac7b24f428b09 distcc-3.4.tar.lz
|
||||
9bc411107021d5f621304a73b0bfdec387d1b33121a325503cf4c9c4046924338ee1b4ef093b517249c3df31cf69cd9f19377df2edd6e81be1dac50a5bd0f3d5 dcc_gcc_rewrite_fqn-avoid-heap-corruption.patch
|
||||
"
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /bin/dnsmasq -k 2>&1
|
||||
exec /usr/bin/dnsmasq -k 2>&1
|
||||
|
|
35
net/dnsmasq/smbuild
Normal file
35
net/dnsmasq/smbuild
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=dnsmasq
|
||||
version=2.85
|
||||
build=1sml
|
||||
homepage="https://thekelleys.org.uk/dnsmasq/doc.html"
|
||||
download="https://thekelleys.org.uk/dnsmasq/dnsmasq-$version.tar.xz"
|
||||
desc="Lightweight DNS and DHCP server suitable for a small network"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
SM_BUILDOPTS="-DHAVE_DNSSEC -DHAVE_LIBIDN2 -DHAVE_CONNTRACK"
|
||||
make COPTS="$SM_BUILDOPTS"
|
||||
make COPTS="$SM_BUILDOPTS" PREFIX=/usr BINDIR=/usr/bin DESTDIR="$pkg" install
|
||||
|
||||
install -Dm 600 dnsmasq.conf.example $pkg/etc/dnsmasq.conf.new
|
||||
mkdir -p $pkg/var/lib/misc
|
||||
cp COPYING* $pkgdocs/
|
||||
|
||||
preprunitservice -s dnsmasq -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
6df1aeee42dbccbe2c6727ca761bbf6efe6eb0af63361984e194ef4c5bde3cd66078aab9e48eac253cd4f1468369b4301df976d87a17cece82317738d95b9ed6 dnsmasq-2.85.tar.lz
|
||||
"
|
59
net/dovecot/smbuild
Normal file
59
net/dovecot/smbuild
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=dovecot
|
||||
version=2.2.36
|
||||
build=1sml
|
||||
homepage="https://www.dovecot.org/"
|
||||
download="https://dovecot.org/releases/2.2/dovecot-$version.tar.gz"
|
||||
desc="Open-source IMAP and POP3 server written in C"
|
||||
requires="expat libcap"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
CPPFLAGS="$CFLAGS -D_GNU_SOURCE" \
|
||||
lib_cv_va_copy=yes \
|
||||
lib_cv___va_copy=no \
|
||||
lib_cv_va_val_copy=no \
|
||||
i_cv_inotify_works=yes \
|
||||
i_cv_posix_fallocate_works=no \
|
||||
i_cv_signed_size_t=no \
|
||||
i_cv_gmtime_max_time_t=31 \
|
||||
i_cv_signed_time_t=yes \
|
||||
i_cv_mmap_plays_with_write=yes \
|
||||
i_cv_c99_vsnprintf=yes \
|
||||
i_cv_fd_passing=yes \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--with-ioloop=poll \
|
||||
--with-notify=none \
|
||||
--without-lzma \
|
||||
--without-gc \
|
||||
--without-bzlib \
|
||||
--disable-static
|
||||
|
||||
make -j4
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING* $pkgdocs/
|
||||
|
||||
install -Dm 644 $srcdir/dovecot.conf.sample $pkg/etc/dovecot/dovecot.conf.new
|
||||
|
||||
preprunitservice -s dovecot -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
d10d0f7d1e5ec393de9d1b3b23e80d905e9c4d7fb864cbefe27e6b359928c08b5a6827f501effaca4eee277ddb3336f0d830c0aee4a81301df962f3f491fbfd8 dovecot-2.2.36.tar.lz
|
||||
"
|
34
net/ethtool/smbuild
Normal file
34
net/ethtool/smbuild
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=ethtool
|
||||
version=4.18
|
||||
build=1sml
|
||||
homepage="https://mirrors.edge.kernel.org/pub/software/network/ethtool/"
|
||||
download="https://mirrors.edge.kernel.org/pub/software/network/ethtool/ethtool-$version.tar.xz"
|
||||
desc="Tool for examining and tuning a network interface"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1bb3123dfab3d0fad3aab9c7767af24fe634d449ce38d10bbfed5cf2839c378a1245c85ed410025a47b6eede8430ace377ecb9460ebcfd6db5148f813152b4cf ethtool-4.18.tar.lz
|
||||
"
|
53
net/fail2ban/smbuild
Normal file
53
net/fail2ban/smbuild
Normal file
|
@ -0,0 +1,53 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=fail2ban
|
||||
version=1.0.2
|
||||
build=2sml
|
||||
homepage="http://www.fail2ban.org/wiki/index.php/Main_Page"
|
||||
download="https://github.com/fail2ban/fail2ban/archive/refs/tags/$version.tar.gz"
|
||||
desc="Log-based intrusion detection and prevention system written in Python"
|
||||
requires="python3 iptables"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
sh fail2ban-2to3
|
||||
python setup.py install --root=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
# move config files to .new
|
||||
(
|
||||
cd $pkg/etc/fail2ban
|
||||
for file in $(find . -type f); do
|
||||
mv $file "$file.new"
|
||||
done
|
||||
)
|
||||
|
||||
( cd $pkg/etc/fail2ban ; patch -p0 < $srcdir/jail.conf.patch )
|
||||
|
||||
install -D -m 0644 $srcdir/rc.fail2ban $pkg/etc/rc.d/rc.fail2ban.new
|
||||
install -D -m 0644 $srcdir/paths-smlinux.conf $pkg/etc/fail2ban/paths-smlinux.conf.new
|
||||
rm -f $pkg/etc/fail2ban/paths-{arch,debian,fedora,freebsd,osx,opensuse}.conf.new
|
||||
|
||||
mkdir -p $pkg/var/{run,lib/fail2ban} $pkg/share/man/man1
|
||||
for man in fail2ban-client.1 fail2ban-regex.1 fail2ban-server.1 fail2ban.1 fail2ban-testcases.1 ; do
|
||||
install -Dm 0644 man/$man $pkg/usr/share/man/man1
|
||||
done
|
||||
install -Dm 0644 man/jail.conf.5 $pkg/usr/share/man/man5/jail.conf.5
|
||||
|
||||
mv $pkg/usr/share/doc/$app/* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
688a84361b5794e1658f53d2d200ce752fe1e3320ddb1742c32c4b4b82a79ace16ae464e7ea3eeb94a0e862bcac73c2d3a0e61dd7b28e179a4c857f950d74dbb fail2ban-1.0.2.tar.gz
|
||||
89c6e4bbb1a01f3f7601372bbd49d72dd6a17a58503cce30f754110cdc8b55fc80dfa21b5e97a16525bd80c7cae961af5024e5cca45d922245eeefa83cb54ef2 jail.conf.patch
|
||||
"
|
52
net/fcgi/smbuild
Normal file
52
net/fcgi/smbuild
Normal file
|
@ -0,0 +1,52 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=fcgi
|
||||
version=2.4.0
|
||||
build=1sml
|
||||
homepage="https://web-beta.archive.org/web/20160306034010/http://www.fastcgi.com:80/drupal/"
|
||||
download="https://sourceforge.net/projects/slackbuildsdirectlinks/files/fcgi/fcgi-$version.tar.gz"
|
||||
desc="Simple server and library implementin Fast CGI"
|
||||
requires="gcc-libs"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/fcgi-2.4.0-clientdata-pointer.patch
|
||||
applypatch $srcdir/fcgi-2.4.0-gcc44-fix-include.patch
|
||||
applypatch $srcdir/fcgi-2.4.0-html-updates.patch
|
||||
|
||||
# Create some empty files to make autoreconf happy
|
||||
touch INSTALL NEWS AUTHORS ChangeLog COPYING
|
||||
autoreconf -vif
|
||||
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-static
|
||||
|
||||
make -j1
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
mkdir -p $pkg/usr/share/man/man{1,3}
|
||||
cp -a doc/*.1 $pkg/usr/share/man/man1/
|
||||
cp -a doc/*.3 $pkg/usr/share/man/man3/
|
||||
|
||||
cp LICENSE* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
043ba8cdc284f80611fe79c07df6e90a0f96079534e7e8a5b9114cefa7867cdbbec824c46257c5031ee94ab19512e7ff1d32bcc60d78bd3eacaf16a2837426ac fcgi-2.4.0.tar.lz
|
||||
c5339ae940994daeec4cf8030933ca2ab5a00651b91eb5d2ff3b871673b5a62646bfb8e81c190ad6d83015fcf59df4076bc745f097ddcada220ca0dc4a05db6a fcgi-2.4.0-clientdata-pointer.patch
|
||||
3a95be5e9a7833a6c68c7760d4d7efa7470ba75cd24974ec68134c3003b15ceeca47575e93bfa82af42506b1141a6ea62e4b2dd67f6e231cf662b413973ad7d1 fcgi-2.4.0-gcc44-fix-include.patch
|
||||
79abe9f43150b3163e92030cc9afbee90f69f04bd487254d187abda6fa3484623f605394c96eeb6fd4203d2b06f7e771c9b46f9c21b03cde1aa043da9b3e8d5e fcgi-2.4.0-html-updates.patch
|
||||
"
|
42
net/fcgiwrap/smbuild
Normal file
42
net/fcgiwrap/smbuild
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=fcgiwrap
|
||||
version=1.1.0
|
||||
build=2sml
|
||||
homepage="https://github.com/gnosek/fcgiwrap"
|
||||
download="https://github.com/gnosek/fcgiwrap/archive/refs/tags/$version.tar.gz"
|
||||
desc="Simple FastCGI wrapper for CGI scripts"
|
||||
requires="fcgi"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/share/man
|
||||
|
||||
sed -i 's@-Werror@@g' Makefile
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp $srcdir/LICENSE $pkgdocs/
|
||||
|
||||
install -Dm 0755 $srcdir/spawn-fcgi $pkg/usr/bin/spawn-fcgi
|
||||
install -Dm 0755 $srcdir/rc.spawn-fcgi $pkg/etc/rc.d/rc.spawn-fcgi
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
88234a72b9941532f259f799fd4e4f1b3b854b9a6689bcff943b4fc852013392fda2f43166289f15fa780f5d52bc4a7eabacf90f44d90e4f86346f371cd422ec fcgiwrap-1.1.0.tar.lz
|
||||
"
|
|
@ -1 +0,0 @@
|
|||
[ -x /etc/rc.d/rc.gtk ] && /etc/rc.d/rc.gtk
|
49
net/hostapd/smbuild
Normal file
49
net/hostapd/smbuild
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=hostapd
|
||||
version=2.9
|
||||
build=1sml
|
||||
homepage="https://w1.fi/hostapd/"
|
||||
download="https://w1.fi/releases/hostapd-$version.tar.gz"
|
||||
desc="User space daemon for wifi authentication"
|
||||
requires="libnl openssl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/01.patch
|
||||
applypatch $srcdir/02.patch
|
||||
applypatch $srcdir/03.patch
|
||||
applypatch $srcdir/CVE-2019-16275.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd hostapd
|
||||
cat $srcdir/hostapd.defconfig > .config
|
||||
|
||||
make
|
||||
|
||||
install -Dm 644 hostapd.8 $pkg/usr/share/man/man8/hostapd.8
|
||||
install -Dm 644 hostapd_cli.1 $pkg/usr/share/man/man1/hostapd_cli.1
|
||||
install -Dm 755 hostapd $pkg/usr/bin/hostapd
|
||||
install -Dm 755 hostapd_cli $pkg/usr/bin/hostapd_cli
|
||||
install -Dm 600 hostapd.conf $pkg/etc/hostapd/hostapd.conf.new
|
||||
|
||||
cp ../COPYING $pkgdocs/
|
||||
|
||||
preprunitservice -s hostapd -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
003c5f10607d7383227e396096b6ee86cb9047b32ab7cd8ebea4aa8cef5d77d86028bc54486b59dca46cf5f6778d8657464ca8637a78289bc6d9be3d0a7cee34 hostapd-2.9.tar.lz
|
||||
b76bbca282a74ef16c0303e5dbd2ccd33a62461595964d52c1481b0bfa4f41deacde56830b85409b288803b87ceb6f33cf0ccc69c5b17ec632c2d4784b872f3c 01.patch
|
||||
00cc739e78c42353a555c0de2f29defecff372927040e14407a231d1ead7ff32a37c9fd46bea7cdf1c24e3ac891bc3d483800d44fc6d2c8a12d2ae886523b12c 02.patch
|
||||
69243af20cdcfa837c51917a3723779f4825e11436fb83311355b4ffe8f7a4b7a5747a976f7bf923038c410c9e9055b13b866d9a396913ad08bdec3a70e9f6e0 03.patch
|
||||
63710cfb0992f2c346a9807d8c97cbeaed032fa376a0e93a2e56f7742ce515e9c4dfadbdb1af03ba272281f639aab832f0178f67634c222a5d99e1d462aa9e38 CVE-2019-16275.patch
|
||||
"
|
37
net/hostname/smbuild
Normal file
37
net/hostname/smbuild
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=hostname
|
||||
version=3.22
|
||||
build=1sml
|
||||
homepage="https://packages.debian.org/bullseye/hostname"
|
||||
desc="Hostname utility with extra features from Debian devs"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
make
|
||||
install -Dm 755 hostname $pkg/usr/bin/hostname
|
||||
install -Dm 644 hostname.1 $pkg/usr/share/man/man1/hostname.1
|
||||
|
||||
(
|
||||
cd $pkg/usr/bin
|
||||
for name in dnsdomainname domainname ypdomainname nisdomainname ; do
|
||||
ln -sf hostname $name
|
||||
done
|
||||
)
|
||||
|
||||
cp COPYRIGHT $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f50deba511157e4df404402a6e599f6b59aa4f9393d3ee0100a01c73cc4d3c556a6863aea760d95a37b3780015c5da99c4c2eaee04ccc8ffaf816f2c9068730a hostname-3.22.tar.lz
|
||||
"
|
34
net/ifstat/smbuild
Normal file
34
net/ifstat/smbuild
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=ifstat
|
||||
version=1.1
|
||||
build=1sml
|
||||
homepage="https://gael.roualland.free.fr/ifstat/"
|
||||
download="https://gael.roualland.free.fr/ifstat/ifstat-$version.tar.gz"
|
||||
desc="tiny real-time interface monitoring application"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
install -Dm 755 ifstat $pkg/usr/bin/ifstat
|
||||
install -Dm 644 ifstat.1 $pkg/usr/share/man/man1/ifstat.1
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c8f58066f8b7c68439316e5bcdc46df3708d8f79053572f95b74a264d862cebc75a88849e763914de17a4918de9aacea95beee7363d0b43a1b939bfc989c780d ifstat-1.1.tar.lz
|
||||
"
|
35
net/iftop/smbuild
Normal file
35
net/iftop/smbuild
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=iftop
|
||||
version=0.17
|
||||
build=1sml
|
||||
homepage="https://www.ex-parrot.com/pdw/iftop/"
|
||||
download="https://www.ex-parrot.com/pdw/iftop/download/iftop-$version.tar.gz"
|
||||
desc="Curses-based network interface monitoring application"
|
||||
requires="netbsd-curses libpcap"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--mandir=/usr/share/man
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
9bf6d32ad9e977a01f5e39e6bf2f7710a5d2c867959da67c734506edf152320de00d6dae0954a9b479862aaf2c83599566325e300f7db27180acbbdbf096f29e iftop-0.17.tar.lz
|
||||
"
|
38
net/iperf/smbuild
Normal file
38
net/iperf/smbuild
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=iperf
|
||||
version=3.7
|
||||
build=1sml
|
||||
homepage="https://github.com/esnet/iperf"
|
||||
download="https://github.com/esnet/iperf/archive/refs/tags/$version.tar.gz"
|
||||
desc="Network utility for measuring TCP and UDP bandwidth performance"
|
||||
requires="openssl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
# With profiling enabled, the build fails with ld: Cannot find gcrt1.o: No such file or directory
|
||||
# https://github.com/esnet/iperf/issues/749
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static \
|
||||
--disable-profiling
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f4ac1f9c7efcd6e3331afce43601f355d173653611e0c7c4027e87722a54ca914bf9ac73ad0ddc08851d54367ee15527ffd65a4849d675272a4e7619304adff2 iperf-3.7.tar.lz
|
||||
"
|
36
net/iproute2/smbuild
Normal file
36
net/iproute2/smbuild
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=iproute2
|
||||
version=6.3.0
|
||||
build=1sml
|
||||
homepage="https://wiki.linuxfoundation.org/networking/iproute2"
|
||||
download="https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-$version.tar.xz"
|
||||
desc="Advanced IP routing utilities for the linux kernel"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
#applypatch $srcdir/fix-install-errors.patch
|
||||
#applypatch $srcdir/musl-fixes.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg PREFIX=/usr SBINDIR="/usr/bin" MANDIR="/usr/share/man" LIBDIR="/usr/lib" KERNEL_INCLUDE="/usr/include"
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
aec1d8ceb54c8849a075ec1ce079678638e05ccaec093e8b3cbc7243b5fafea2a8c11f10930fced3df82f52d6750aa325178e44f9058e37a556ab108d4a968bf iproute2-6.3.0.tar.xz
|
||||
"
|
48
net/iputils/smbuild
Normal file
48
net/iputils/smbuild
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=iputils
|
||||
version=20240117
|
||||
build=1sml
|
||||
homepage="https://github.com/iputils/iputils"
|
||||
download="https://github.com/iputils/iputils/releases/download/$version/iputils-$version.tar.gz"
|
||||
desc="Collection of common network tools"
|
||||
requires="libcap iptables"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir -p smbuild && cd smbuild
|
||||
meson .. \
|
||||
--prefix=/usr \
|
||||
-DNO_SETCAP_OR_SUID=true \
|
||||
-DBUILD_MANS=true \
|
||||
-DUSE_IDN=false \
|
||||
-DUSE_GETTEXT=false
|
||||
|
||||
ninja
|
||||
|
||||
install -Dm 4755 ping/ping $pkg/usr/bin/ping
|
||||
for files in arping clockdiff tracepath ; do
|
||||
install -Dm 755 $files $pkg/usr/bin/
|
||||
done
|
||||
|
||||
(
|
||||
cd $pkg/usr/bin
|
||||
ln -s ping ping6
|
||||
ln -s tracepath tracepath6
|
||||
)
|
||||
|
||||
cp ../LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
e0c2ddeebbe713d6efc177de29615813cca904c3154fffcebc080c196f637c3f68d35dbce9afded959f717da77030ff24904e5ad49d2aaa508333d3c394c718c iputils-20240117.tar.gz
|
||||
"
|
34
net/irssi/smbuild
Normal file
34
net/irssi/smbuild
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=irssi
|
||||
version=1.2.2
|
||||
build=1sml
|
||||
homepage="https://irssi.org"
|
||||
download="https://github.com/irssi/irssi/archive/refs/tags/$version.tar.gz"
|
||||
desc="Modular, expandable text-mode IRC client"
|
||||
requires="netbsd-curses glib openssl perl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
LDFLAGS="-lcurses -lterminfo" \
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1f11728a5fe521a4dcad90e8d6414f1980e5c3584b5356b049d850ac9c1c7a82a19886dc688b3df2079d5e69da99c0634bb0a2cb2217b52f866cc2868b2ed0f9 irssi-1.2.2.tar.lz
|
||||
"
|
30
net/iw/smbuild
Normal file
30
net/iw/smbuild
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=iw
|
||||
version=4.14
|
||||
build=1sml
|
||||
homepage="http://wireless.kernel.org/en/users/Documentation/iw"
|
||||
download="https://mirrors.edge.kernel.org/pub/software/network/iw/$version.tar.xz"
|
||||
desc="Tool for configuring Linux wireless devices"
|
||||
requires="libnl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
make
|
||||
make install PREFIX=/usr SBINDIR=/usr/bin MANDIR=/usr/share/man DESTDIR="$pkg"
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3a5c1ff6d2f6ac97ca236bead156a315ced9a3d9c8f9a234d7f2b9f1a3d61213e069ac1dd25d7b1e917f1cccdf1fc557c778a61ed0b0819906fd8bac4fb995de iw-4.14.tar.lz
|
||||
"
|
35
net/libmicrohttpd/smbuild
Normal file
35
net/libmicrohttpd/smbuild
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=libmicrohttpd
|
||||
version=0.9.66
|
||||
build=2sml
|
||||
homepage="https://www.gnu.org/software/libmicrohttpd/"
|
||||
download="https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-$version.tar.gz"
|
||||
desc="Compact C library providing implementation of the HTTP 1.0 and 1.1 web server"
|
||||
requires="curl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-static \
|
||||
--disable-https
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
29d6de85d6b3c446962756d337084cc80258ad6f715621047a3d1c4939997d4c0a661d7e403096a6ffdc54b7c94ad699128339cb97a04d73666373ff133ce65d libmicrohttpd-0.9.66.tar.lz
|
||||
"
|
41
net/lynx/smbuild
Normal file
41
net/lynx/smbuild
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=lynx
|
||||
version=2.8.9.19
|
||||
build=2sml
|
||||
homepage="https://lynx.invisible-island.net"
|
||||
desc="A text-mode web browser"
|
||||
requires="zlib netbsd-curses openssl libidn"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version-dev
|
||||
|
||||
tar xf $srcdir/$app-$version-dev.tar.?z
|
||||
cd $app-$version-dev
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/lynx-resize.patch
|
||||
sed -e 's;__DATE__;"01.01.18";' -e 's;__TIME__;"00:00:00";' -i src/LYMain.c
|
||||
sed -i 's/define ACCEPT_ALL_COOKIES FALSE/define ACCEPT_ALL_COOKIES TRUE/' userdefs.h
|
||||
}
|
||||
|
||||
build() {
|
||||
LIBS="-lcurses -lterminfo -lz" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-ssl \
|
||||
--enable-ipv6
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
900aa23d2bb93fde73f47aef4df08e4057ab1923174d0de87e41d8e15781d746087e81c5a4decaeedc11043232aef24a500814b5c0555b9fde7722a0e998ae32 lynx-2.8.9.19-dev.tar.lz
|
||||
5ac19d9aaee1f27958f922509dfb27157fed7e0a9a6722dd0c8c2332c88192beeead75ba5503901c1d70c2e45056d68d5258b5c06759d6d8ef8ab4be73ec9ecf lynx-resize.patch
|
||||
"
|
28
net/maccalc/smbuild
Normal file
28
net/maccalc/smbuild
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=maccalc
|
||||
version=1.0
|
||||
build=1sml
|
||||
homepage="https://openwrt.org/packages/pkgdata/maccalc"
|
||||
download="https://github.com/openwrt/packages/raw/openwrt-21.02/net/maccalc/src/main.c"
|
||||
desc="Utility to manipulate MAC addresses"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
mkdir -p $app-$version
|
||||
cd $app-$version
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir -p $pkg/usr/bin
|
||||
gcc -Wall -o $pkg/usr/bin/maccalc $srcdir/maccalc.c
|
||||
install -Dm 644 $srcdir/LICENSE $pkgdocs/LICENSE
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5e8c6c70fb315197a039c67b07fc01389d930d9174bf1611d9f0fbe204008f708aee402e94c525870c4ca7dedac0b52ae27ec086ad8dabecf688931fd5897e13 maccalc.c
|
||||
"
|
36
net/macchanger/smbuild
Normal file
36
net/macchanger/smbuild
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=macchanger
|
||||
version=1.7.0
|
||||
build=1sml
|
||||
homepage="https://github.com/alobbs/macchanger"
|
||||
download="https://github.com/alobbs/macchanger/archive/refs/tags/$version.tar.gz"
|
||||
desc="Utility for viewing and manipulating MAC addresses of network interfaces"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
# Thank you sabotage linux
|
||||
sed -i '/#include <sys\/ioctl.h>/a#include <sys/types.h>' src/netinfo.c
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
72fee04fbed6c1c8a1df7a7769fa57956785376d502069034c39b1f04fefc37d16e7d941b7a205c832e704b2b51033fe58f3f2c75a1bb6b1acdc50c9c5740291 macchanger-1.7.0.tar.lz
|
||||
"
|
32
net/mailcheck/smbuild
Normal file
32
net/mailcheck/smbuild
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=mailcheck
|
||||
version=1.91.2
|
||||
build=1sml
|
||||
homepage="http://mailcheck.sourceforge.net/"
|
||||
download="https://sourceforge.net/projects/mailcheck/files/mailcheck/$version/mailcheck_$version.tar.gz"
|
||||
desc="Utility to show read and unread emails inside user directories"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
make
|
||||
install -Dm 755 mailcheck $pkg/usr/bin/mailcheck
|
||||
install -Dm 644 mailcheckrc $pkg/etc/mailcheckrc
|
||||
install -Dm 644 mailcheck.1 $pkg/usr/share/man/man1/mailcheck.1
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
e80980993dd430eb5f04b330906e764b163a60c353baf0d4ee92009be6014667cbc93124049e39ecdb45b0980bd4c5bf3b8310ab30d8bc93331c94569acbe6a4 mailcheck-1.91.2.tar.lz
|
||||
"
|
|
@ -1,24 +0,0 @@
|
|||
--- minicom-2.6.2.orig/src/dial.c
|
||||
+++ minicom-2.6.2/src/dial.c
|
||||
@@ -39,11 +39,9 @@
|
||||
#include "intl.h"
|
||||
|
||||
#ifdef VC_MUSIC
|
||||
-# if defined(__GLIBC__)
|
||||
# include <sys/ioctl.h>
|
||||
# include <sys/kd.h>
|
||||
# include <sys/time.h>
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
enum { CURRENT_VERSION = 6 };
|
||||
--- minicom-2.6.2.orig/src/getsdir.h
|
||||
+++ minicom-2.6.2/src/getsdir.h
|
||||
@@ -22,6 +22,7 @@
|
||||
* and licensing conditions. See the source, Luke.
|
||||
*/
|
||||
|
||||
+#include <sys/param.h>
|
||||
#include <dirent.h>
|
||||
|
||||
typedef struct dirEntry { /* structure of data item */
|
33
net/mktorrent/smbuild
Normal file
33
net/mktorrent/smbuild
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=mktorrent
|
||||
version=1.1
|
||||
build=1sml
|
||||
homepage="https://github.com/pobrn/mktorrent"
|
||||
download="https://github.com/pobrn/mktorrent/archive/refs/tags/v$version.tar.gz"
|
||||
desc="Utility for creating torrent files used in bittorrent protocol"
|
||||
requires="openssl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/makefile.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
make
|
||||
install -Dm 755 mktorrent $pkg/usr/bin/mktorrent
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
d82e3bc32c256a1f204a97f9852d989f1812706fe90fb5a705db5bdf571dd6b1a315a75836d39965f67cad479aa7ef2e2c7b19e48a79411d6268edf22e40f57e mktorrent-1.1.tar.lz
|
||||
3387b71fa334def8f8005629fe3509f8012da16e542bde679176fe5c8e7f71e3393e412ce637b234dac4071e899947d9fe6f2b6f79ed055a72f1af3791693030 makefile.patch
|
||||
"
|
36
net/motion/smbuild
Normal file
36
net/motion/smbuild
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=motion
|
||||
version=4.5.1
|
||||
build=1sml
|
||||
homepage="https://motion-project.github.io/"
|
||||
download="https://github.com/Motion-Project/motion/archive/refs/tags/release-$version.tar.gz"
|
||||
desc="Software-based camera motion detection utility"
|
||||
requires="bzip2 zlib gnutls sqlite libidn libtasn1 nettle libmicrohttpd libxext dbus sdl2 libwebp ffmpeg"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
|
||||
autoreconf -vif
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
99d822131a93fe0244f117284b9b966dc701277d046592af49da05db95a27f92b2d94d83e458e3d56a750e74a89e3c6ebccf8084f1114ec4e6e59af55d50b22f motion-4.5.1.tar.lz
|
||||
"
|
34
net/mtr/smbuild
Normal file
34
net/mtr/smbuild
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=mtr
|
||||
version=0.93
|
||||
build=1sml
|
||||
homepage="https://www.bitwizard.nl/mtr/"
|
||||
download="https://github.com/traviscross/mtr/archive/refs/tags/v$version.tar.gz"
|
||||
desc="Combined traceroute and ping utility for diagnosing networks problems"
|
||||
requires="netbsd-curses libcap gtk2"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp BSDCOPYING COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
9ab524d8be879cd2a56ea959cba69aadb7a94f9934070954252ee0b5b035504e8d39a8bdb4dca1b5fbf422e588d434ba47ebea3f3e9db4dc0cf0deb1d9ea0bd5 mtr-0.93.tar.lz
|
||||
"
|
42
net/mutt/smbuild
Normal file
42
net/mutt/smbuild
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=mutt
|
||||
version=1.10.1
|
||||
build=3sml
|
||||
homepage="https://www.mutt.org"
|
||||
download="http://ftp.mutt.org/pub/mutt/mutt-$version.tar.gz"
|
||||
desc="Advanced text-mode mail client"
|
||||
requires="netbsd-curses zlib libidn openssl cyrus-sasl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
LDFLAGS="-lterminfo" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc/mutt \
|
||||
--enable-imap \
|
||||
--enable-pop \
|
||||
--enable-smtp \
|
||||
--with-ssl \
|
||||
--with-sasl \
|
||||
--disable-doc \
|
||||
--with-homespool=/var/spool
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp GPL COPYRIGHT $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
82e33fbec999f0397b2e2b189dffe6b13e159c4ef5a44f87fa88894a02e24b00f61e8c808d206963e47a9b62b9ebfa025cb444a06866dbc21471ba10116a07eb mutt-1.10.1.tar.lz
|
||||
"
|
64
net/net-snmp/smbuild
Normal file
64
net/net-snmp/smbuild
Normal file
|
@ -0,0 +1,64 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=net-snmp
|
||||
version=5.8
|
||||
build=1sml
|
||||
homepage="http://www.net-snmp.org/"
|
||||
download="https://sourceforge.net/projects/net-snmp/files/net-snmp/$version/net-snmp-$version.tar.gz"
|
||||
desc="Collection of tools for implementing SNMP version 1 and up"
|
||||
requires="libpcap pcre python3"
|
||||
# net-snmp does not like our custom config.cache
|
||||
noautoconfsite=1
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/fix-includes.patch
|
||||
applypatch $srcdir/netsnmp-swinst-crash.patch
|
||||
applypatch $srcdir/report-empty-strings-correctly.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc/snmp \
|
||||
--mandir=/usr/share/man \
|
||||
--with-default-snmp-version="3" \
|
||||
--with-sys-contact="root@localhost" \
|
||||
--with-sys-location="Unknown" \
|
||||
--with-logfile="/var/log/snmpd.log" \
|
||||
--with-persistent-directory="/var/lib/net-snmp" \
|
||||
--with-openssl \
|
||||
--enable-ipv6 \
|
||||
--enable-as-needed \
|
||||
--with-perl-modules="INSTALLDIRS=vendor" \
|
||||
--disable-embedded-perl \
|
||||
--disable-debugging \
|
||||
--without-rpm \
|
||||
--program-suffix= \
|
||||
--program-prefix= \
|
||||
--enable-static=no
|
||||
|
||||
make
|
||||
sed -i 's@INSTALLMAN3DIR = none@INSTALLMAN3DIR = $(DESTDIR)$(INSTALLMAN3DIR)@g' perl/SNMP/Makefile
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
install -Dm 755 $srcdir/rc.snmpd $pkg/etc/rc.d/rc.snmpd.new
|
||||
install -Dm 644 $srcdir/snmpd.conf $pkg/etc/snmp/snmpd.conf.new
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
4b6cf8866c85c296cefab6a409c6c01ddbdee1e053cad6d4663816249b24e4f82cad41056d62a736ae0b4be06dc186b0843eaf0217ffd0a2ccb2b944c35e6e39 net-snmp-5.8.tar.lz
|
||||
87a552bd2e41684bba6e87fbcf6454a85ee912d7a339411fda24cebddf7661f0856729e076a917920a542cf84b687ffd90a091daa15f2c48f0ff64f3a53c0ddb fix-includes.patch
|
||||
4ad92f50b14d5e27ba86256cc532a2dd055502f4d5fbb1700434f9f01f881fd09bb1eadb94e727554e1470f036707558314c64a66d0376b54e71ab31d5e4baa3 netsnmp-swinst-crash.patch
|
||||
633fbf574a76f63b0ae5340cd86439ca89ef2621b890917c35a884fe2d41052d4ec65c88f0d3f94f2bb3481b2bc1989647d3e697f7995b72abee47799300c26b report-empty-strings-correctly.patch
|
||||
"
|
38
net/netcat/smbuild
Normal file
38
net/netcat/smbuild
Normal file
|
@ -0,0 +1,38 @@
|
|||
# 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
|
||||
"
|
39
net/nfs-utils/doinst.sh
Normal file
39
net/nfs-utils/doinst.sh
Normal file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
config var/lib/nfs/etab.new
|
||||
config var/lib/nfs/rmtab.new
|
||||
config var/lib/nfs/state.new
|
||||
rm -f var/lib/nfs/*.new
|
||||
# No, no, no.
|
||||
#chown -R rpc:rpc var/lib/nfs
|
||||
if [ -x etc/rc.d/rc.nfsd ]; then
|
||||
chmod 755 etc/rc.d/rc.nfsd.new
|
||||
else
|
||||
chmod 644 etc/rc.d/rc.nfsd.new
|
||||
fi
|
||||
config etc/default/nfs.new
|
||||
config etc/rc.d/rc.nfsd.new
|
||||
config etc/nfsmount.conf.new
|
||||
config etc/exports.new
|
||||
# If you already had your own /etc/exports, this one is probably useless...
|
||||
rm -f etc/exports.new
|
||||
( cd bin ; rm -rf umount.nfs )
|
||||
( cd bin ; ln -sf mount.nfs umount.nfs )
|
||||
( cd share/man/man8 ; rm -rf rpc.mountd.8.gz )
|
||||
( cd share/man/man8 ; ln -sf mountd.8.gz rpc.mountd.8.gz )
|
||||
( cd share/man/man8 ; rm -rf rpc.nfsd.8.gz )
|
||||
( cd share/man/man8 ; ln -sf nfsd.8.gz rpc.nfsd.8.gz )
|
||||
( cd share/man/man8 ; rm -rf rpc.statd.8.gz )
|
||||
( cd share/man/man8 ; ln -sf statd.8.gz rpc.statd.8.gz )
|
||||
( cd share/man/man8 ; rm -rf rpc.sm-notify.8.gz )
|
||||
( cd share/man/man8 ; ln -sf sm-notify.8.gz rpc.sm-notify.8.gz )
|
4
net/nfs-utils/exports
Normal file
4
net/nfs-utils/exports
Normal file
|
@ -0,0 +1,4 @@
|
|||
# See exports(5) for a description.
|
||||
# This file contains a list of all directories exported to other computers.
|
||||
# It is used by rpc.nfsd and rpc.mountd.
|
||||
|
30
net/nfs-utils/musl-configure_ac.patch
Normal file
30
net/nfs-utils/musl-configure_ac.patch
Normal file
|
@ -0,0 +1,30 @@
|
|||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -578,10 +578,10 @@
|
||||
-Wall \
|
||||
-Wextra \
|
||||
$rpcgen_cflags \
|
||||
- -Werror=missing-prototypes \
|
||||
- -Werror=missing-declarations \
|
||||
+ -Wmissing-prototypes \
|
||||
+ -Wmissing-declarations \
|
||||
-Werror=format=2 \
|
||||
- -Werror=undef \
|
||||
+ -Wundef \
|
||||
-Werror=missing-include-dirs \
|
||||
-Werror=strict-aliasing=2 \
|
||||
-Werror=init-self \
|
||||
@@ -617,11 +617,11 @@
|
||||
|
||||
CHECK_CCSUPPORT([-Werror=format-overflow=2], [flg1])
|
||||
CHECK_CCSUPPORT([-Werror=int-conversion], [flg2])
|
||||
-CHECK_CCSUPPORT([-Werror=incompatible-pointer-types], [flg3])
|
||||
+#CHECK_CCSUPPORT([-Werror=incompatible-pointer-types], [flg3])
|
||||
CHECK_CCSUPPORT([-Werror=misleading-indentation], [flg4])
|
||||
AX_GCC_FUNC_ATTRIBUTE([format])
|
||||
|
||||
-AC_SUBST([AM_CFLAGS], ["$my_am_cflags $flg1 $flg2 $flg3 $flg4"])
|
||||
+AC_SUBST([AM_CFLAGS], ["$my_am_cflags $flg1 $flg2 $flg4"])
|
||||
|
||||
# Make sure that $ACLOCAL_FLAGS are used during a rebuild
|
||||
AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \$(ACLOCAL_FLAGS)"])
|
18
net/nfs-utils/musl-getservbyport.patch
Normal file
18
net/nfs-utils/musl-getservbyport.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
Musl will always return something with getservbyport so we cannot skip
|
||||
ports that returns non-null.
|
||||
|
||||
diff --git a/utils/statd/rmtcall.c b/utils/statd/rmtcall.c
|
||||
index fd576d9..d72a0bf 100644
|
||||
--- a/utils/statd/rmtcall.c
|
||||
+++ b/utils/statd/rmtcall.c
|
||||
@@ -93,8 +93,10 @@
|
||||
__func__);
|
||||
break;
|
||||
}
|
||||
+#if 0
|
||||
se = getservbyport(sin.sin_port, "udp");
|
||||
if (se == NULL)
|
||||
+#endif
|
||||
break;
|
||||
|
||||
if (retries == MAX_BRP_RETRIES) {
|
144
net/nfs-utils/musl-svcgssd-sysconf.patch
Normal file
144
net/nfs-utils/musl-svcgssd-sysconf.patch
Normal file
|
@ -0,0 +1,144 @@
|
|||
--- a/support/nfsidmap/libnfsidmap.c
|
||||
+++ b/support/nfsidmap/libnfsidmap.c
|
||||
@@ -432,11 +432,17 @@ int nfs4_init_name_mapping(char *conffil
|
||||
|
||||
nobody_user = conf_get_str("Mapping", "Nobody-User");
|
||||
if (nobody_user) {
|
||||
- size_t buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
|
||||
+ long scbuflen = sysconf(_SC_GETPW_R_SIZE_MAX);
|
||||
+ size_t buflen = 1024; /*value on my gentoo glibc system that has _SC_GETPW_R_SIZE_MAX*/
|
||||
struct passwd *buf;
|
||||
struct passwd *pw = NULL;
|
||||
int err;
|
||||
|
||||
+ /*sysconf can return -1 when _SC_GETPW_R_SIZE_MAX is not defined, like on musl systems, if cast to size_t this will lead
|
||||
+ to an integer overflow, which leads to a buffer overflow and crashes svcgssd */
|
||||
+ if (scbuflen > 0)
|
||||
+ buflen = (size_t)scbuflen;
|
||||
+
|
||||
buf = malloc(sizeof(*buf) + buflen);
|
||||
if (buf) {
|
||||
err = getpwnam_r(nobody_user, buf, ((char *)buf) + sizeof(*buf), buflen, &pw);
|
||||
@@ -453,11 +459,17 @@ int nfs4_init_name_mapping(char *conffil
|
||||
|
||||
nobody_group = conf_get_str("Mapping", "Nobody-Group");
|
||||
if (nobody_group) {
|
||||
- size_t buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
||||
+ long scbuflen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
||||
+ size_t buflen = 1024; /*value on my gentoo glibc system that has _SC_GETGR_R_SIZE_MAX*/
|
||||
struct group *buf;
|
||||
struct group *gr = NULL;
|
||||
int err;
|
||||
|
||||
+ /*sysconf can return -1 when _SC_GETGR_R_SIZE_MAX is not defined, like on musl systems, if cast to size_t this will lead
|
||||
+ to an integer overflow, which leads to a buffer overflow and crashes svcgssd */
|
||||
+ if (scbuflen > 0)
|
||||
+ buflen = (size_t)scbuflen;
|
||||
+
|
||||
buf = malloc(sizeof(*buf) + buflen);
|
||||
if (buf) {
|
||||
err = getgrnam_r(nobody_group, buf, ((char *)buf) + sizeof(*buf), buflen, &gr);
|
||||
--- a/support/nfsidmap/static.c
|
||||
+++ b/support/nfsidmap/static.c
|
||||
@@ -98,10 +98,14 @@ static struct passwd *static_getpwnam(co
|
||||
{
|
||||
struct passwd *pw;
|
||||
struct pwbuf *buf;
|
||||
- size_t buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
|
||||
+ long scbuflen = sysconf(_SC_GETPW_R_SIZE_MAX);
|
||||
+ size_t buflen = 1024;
|
||||
char *localname;
|
||||
int err;
|
||||
|
||||
+ if (scbuflen > 0)
|
||||
+ buflen = (size_t)scbuflen;
|
||||
+
|
||||
buf = malloc(sizeof(*buf) + buflen);
|
||||
if (!buf) {
|
||||
err = ENOMEM;
|
||||
@@ -149,10 +153,14 @@ static struct group *static_getgrnam(con
|
||||
{
|
||||
struct group *gr;
|
||||
struct grbuf *buf;
|
||||
- size_t buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
||||
+ long scbuflen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
||||
+ size_t buflen = 1024;
|
||||
char *localgroup;
|
||||
int err;
|
||||
|
||||
+ if (scbuflen > 0)
|
||||
+ buflen = (size_t)scbuflen;
|
||||
+
|
||||
buf = malloc(sizeof(*buf) + buflen);
|
||||
if (!buf) {
|
||||
err = ENOMEM;
|
||||
--- a/support/nfsidmap/nss.c
|
||||
+++ b/support/nfsidmap/nss.c
|
||||
@@ -91,9 +91,13 @@ static int nss_uid_to_name(uid_t uid, ch
|
||||
struct passwd *pw = NULL;
|
||||
struct passwd pwbuf;
|
||||
char *buf;
|
||||
- size_t buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
|
||||
+ long scbuflen = sysconf(_SC_GETPW_R_SIZE_MAX);
|
||||
+ size_t buflen = 1024;
|
||||
int err = -ENOMEM;
|
||||
|
||||
+ if (scbuflen > 0)
|
||||
+ buflen = (size_t)scbuflen;
|
||||
+
|
||||
buf = malloc(buflen);
|
||||
if (!buf)
|
||||
goto out;
|
||||
@@ -119,9 +123,13 @@ static int nss_gid_to_name(gid_t gid, ch
|
||||
struct group *gr = NULL;
|
||||
struct group grbuf;
|
||||
char *buf;
|
||||
- size_t buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
||||
+ long scbuflen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
||||
+ size_t buflen = 1024;
|
||||
int err;
|
||||
|
||||
+ if (scbuflen > 0)
|
||||
+ buflen = (size_t)scbuflen;
|
||||
+
|
||||
if (domain == NULL)
|
||||
domain = get_default_domain();
|
||||
|
||||
@@ -192,12 +200,13 @@ static struct passwd *nss_getpwnam(const
|
||||
{
|
||||
struct passwd *pw;
|
||||
struct pwbuf *buf;
|
||||
- size_t buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
|
||||
+ long scbuflen = sysconf(_SC_GETPW_R_SIZE_MAX);
|
||||
+ size_t buflen = 1024;
|
||||
char *localname;
|
||||
int err = ENOMEM;
|
||||
|
||||
- if (buflen > UINT_MAX)
|
||||
- goto err;
|
||||
+ if (scbuflen > 0)
|
||||
+ buflen = (size_t)scbuflen;
|
||||
|
||||
buf = malloc(sizeof(*buf) + buflen);
|
||||
if (buf == NULL)
|
||||
@@ -301,7 +310,8 @@ static int _nss_name_to_gid(char *name,
|
||||
struct group *gr = NULL;
|
||||
struct group grbuf;
|
||||
char *buf, *domain;
|
||||
- size_t buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
||||
+ long scbuflen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
||||
+ size_t buflen = 1024;
|
||||
int err = -EINVAL;
|
||||
char *localname = NULL;
|
||||
char *ref_name = NULL;
|
||||
@@ -327,8 +337,8 @@ static int _nss_name_to_gid(char *name,
|
||||
}
|
||||
|
||||
err = -ENOMEM;
|
||||
- if (buflen > UINT_MAX)
|
||||
- goto out_name;
|
||||
+ if (scbuflen > 0)
|
||||
+ buflen = (size_t)scbuflen;
|
||||
|
||||
do {
|
||||
buf = malloc(buflen);
|
51
net/nfs-utils/musl-time64.patch
Normal file
51
net/nfs-utils/musl-time64.patch
Normal file
|
@ -0,0 +1,51 @@
|
|||
diff --git a/utils/nfsdcltrack/nfsdcltrack.c b/utils/nfsdcltrack/nfsdcltrack.c
|
||||
index b45a904..6b1049f 100644
|
||||
--- a/utils/nfsdcltrack/nfsdcltrack.c
|
||||
+++ b/utils/nfsdcltrack/nfsdcltrack.c
|
||||
@@ -25,9 +25,11 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
-#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
+#include <stdint.h>
|
||||
+#include <inttypes.h>
|
||||
+#include <ctype.h>
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
@@ -525,7 +527,8 @@ cltrack_gracedone(const char *timestr)
|
||||
if (*tail)
|
||||
return -EINVAL;
|
||||
|
||||
- xlog(D_GENERAL, "%s: grace done. gracetime=%ld", __func__, gracetime);
|
||||
+ xlog(D_GENERAL, "%s: grace done. gracetime=%" PRId64, __func__,
|
||||
+ (int64_t)gracetime);
|
||||
|
||||
ret = sqlite_remove_unreclaimed(gracetime);
|
||||
|
||||
diff --git a/utils/nfsdcltrack/sqlite.c b/utils/nfsdcltrack/sqlite.c
|
||||
index 2801201..c4e0cdf 100644
|
||||
--- a/utils/nfsdcltrack/sqlite.c
|
||||
+++ b/utils/nfsdcltrack/sqlite.c
|
||||
@@ -42,6 +42,8 @@
|
||||
#include <errno.h>
|
||||
#include <event.h>
|
||||
#include <stdbool.h>
|
||||
+#include <stdint.h>
|
||||
+#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
@@ -544,8 +546,8 @@ sqlite_remove_unreclaimed(time_t grace_start)
|
||||
int ret;
|
||||
char *err = NULL;
|
||||
|
||||
- ret = snprintf(buf, sizeof(buf), "DELETE FROM clients WHERE time < %ld",
|
||||
- grace_start);
|
||||
+ ret = snprintf(buf, sizeof(buf), "DELETE FROM clients WHERE time < %" PRId64,
|
||||
+ (int64_t)grace_start);
|
||||
if (ret < 0) {
|
||||
return ret;
|
||||
} else if ((size_t)ret >= sizeof(buf)) {
|
10
net/nfs-utils/nfs.default
Normal file
10
net/nfs-utils/nfs.default
Normal file
|
@ -0,0 +1,10 @@
|
|||
# See also /etc/default/rpc
|
||||
|
||||
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
|
||||
# Turn off v2 and v3 protocol support:
|
||||
#RPC_NFSD_OPTS="-N 2 -N 3"
|
||||
# Turn off v4 protocol support:
|
||||
#RPC_NFSD_OPTS="-N 4"
|
||||
# Number of nfs server processes to be started.
|
||||
# The default is 8.
|
||||
#RPC_NFSD_COUNT=8
|
110
net/nfs-utils/rc.nfsd
Normal file
110
net/nfs-utils/rc.nfsd
Normal file
|
@ -0,0 +1,110 @@
|
|||
#!/bin/sh
|
||||
# Start/stop/restart the NFS server.
|
||||
#
|
||||
# This is an init script for the knfsd NFS daemons.
|
||||
# To use NFS, you must first set up /etc/exports.
|
||||
# See exports(5) for information on /etc/exports format.
|
||||
#
|
||||
# Written for Slackware Linux by Patrick J. Volkerding <volkerdi@slackware.com>.
|
||||
|
||||
# Source default settings:
|
||||
if [ -r /etc/default/rpc ]; then
|
||||
. /etc/default/rpc
|
||||
fi
|
||||
if [ -r /etc/default/nfs ]; then
|
||||
. /etc/default/nfs
|
||||
fi
|
||||
|
||||
nfsd_start() {
|
||||
# There used to be "sanity checks" here to exit without starting if various
|
||||
# config files didn't exist, or didn't contain certain expected content.
|
||||
# This behavior led to some bugs and has been removed. It's not our business
|
||||
# to check your config files - that's for the binaries that use them.
|
||||
|
||||
# If we do not detect nfsd support built into the kernel (or previously
|
||||
# loaded as a module), we will try to load the nfsd.ko kernel module:
|
||||
if [ ! -r /proc/1/net/rpc/nfsd ]; then
|
||||
/bin/modprobe nfsd
|
||||
fi
|
||||
|
||||
# Mount the nfsd filesystem:
|
||||
if awk '$NF == "nfsd"' /proc/filesystems | grep -q . ; then
|
||||
if ! awk '$3 == "nfsd" && $2 == "/proc/fs/nfs"' /proc/mounts | grep -q . ; then
|
||||
/bin/mount -t nfsd nfsd /proc/fs/nfs 2> /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
# If basic RPC services are not running, start them:
|
||||
if ! ps axc | grep -q rpc.statd ; then
|
||||
if [ -r /etc/rc.d/rc.rpc ]; then
|
||||
sh /etc/rc.d/rc.rpc start
|
||||
else
|
||||
# Sure, we tested for rpc.statd, but this is the probable cause:
|
||||
echo "FATAL: Can't start NFS server without rpcbind package."
|
||||
sleep 5
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Starting NFS server daemons:"
|
||||
|
||||
if [ -x /bin/exportfs ]; then
|
||||
echo " /bin/exportfs -r"
|
||||
/bin/exportfs -r
|
||||
fi
|
||||
|
||||
if [ -x /bin/rpc.rquotad ]; then
|
||||
if [ -n "$RPC_RQUOTAD_PORT" ]; then
|
||||
RPC_RQUOTAD_OPTS="$RPC_RQUOTAD_OPTS -p $RPC_RQUOTAD_PORT"
|
||||
fi
|
||||
echo " /bin/rpc.rquotad $RPC_RQUOTAD_OPTS"
|
||||
/bin/rpc.rquotad $RPC_RQUOTAD_OPTS
|
||||
fi
|
||||
|
||||
# Start nfsd servers - 8 if not set otherwise (an old Sun standard):
|
||||
if [ -x /bin/rpc.nfsd ]; then
|
||||
if [ -z "$RPC_NFSD_COUNT" ]; then
|
||||
RPC_NFSD_COUNT=8
|
||||
fi
|
||||
echo " /bin/rpc.nfsd $RPC_NFSD_OPTS $RPC_NFSD_COUNT"
|
||||
/bin/rpc.nfsd $RPC_NFSD_OPTS $RPC_NFSD_COUNT
|
||||
fi
|
||||
|
||||
if [ -x /bin/rpc.mountd ]; then
|
||||
if [ -n "$RPC_MOUNTD_PORT" ]; then
|
||||
RPC_MOUNTD_OPTS="$RPC_MOUNTD_OPTS -p $RPC_MOUNTD_PORT"
|
||||
fi
|
||||
echo " /bin/rpc.mountd $RPC_MOUNTD_OPTS"
|
||||
/bin/rpc.mountd $RPC_MOUNTD_OPTS
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
nfsd_stop() {
|
||||
killall rpc.mountd 2> /dev/null
|
||||
killall nfsd 2> /dev/null
|
||||
sleep 1
|
||||
killall -9 nfsd 2> /dev/null # make sure :)
|
||||
killall rpc.rquotad 2> /dev/null
|
||||
/bin/exportfs -au 2> /dev/null
|
||||
}
|
||||
|
||||
nfsd_restart() {
|
||||
nfsd_stop
|
||||
sleep 1
|
||||
nfsd_start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
'start')
|
||||
nfsd_start
|
||||
;;
|
||||
'stop')
|
||||
nfsd_stop
|
||||
;;
|
||||
'restart')
|
||||
nfsd_restart
|
||||
;;
|
||||
*)
|
||||
echo "usage $0 start|stop|restart"
|
||||
esac
|
65
net/nfs-utils/smbuild
Normal file
65
net/nfs-utils/smbuild
Normal file
|
@ -0,0 +1,65 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=nfs-utils
|
||||
version=2.5.1
|
||||
build=1sml
|
||||
homepage="https://mirrors.edge.kernel.org/pub/linux/utils/nfs-utils/"
|
||||
download="https://mirrors.edge.kernel.org/pub/linux/utils/nfs-utils/$version/nfs-utils-$version.tar.xz"
|
||||
desc="Network File System daemons and utilities"
|
||||
requires="libtirpc keyutils"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/musl-configure_ac.patch
|
||||
applypatch $srcdir/musl-getservbyport.patch
|
||||
applypatch $srcdir/musl-svcgssd-sysconf.patch
|
||||
applypatch $srcdir/musl-time64.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--sbindir=/usr/bin \
|
||||
--enable-static=no \
|
||||
--enable-ipv6 \
|
||||
--enable-nfsv4 \
|
||||
--enable-uuid \
|
||||
--enable-libmount-mount \
|
||||
--disable-gss \
|
||||
--with-rpcgen=internal \
|
||||
--without-tcp-wrappers
|
||||
|
||||
make
|
||||
make -j1 install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkdir -p $pkg/var/log/nfsd
|
||||
install -Dm 644 $srcdir/exports $pkg/etc/exports.new
|
||||
install -Dm 644 $srcdir/rc.nfsd $pkg/etc/rc.d/rc.nfsd.new
|
||||
install -Dm 644 $srcdir/nfs.default $pkg/etc/default/nfs.new
|
||||
|
||||
# These might be in use:
|
||||
(
|
||||
cd $pkg/var/lib/nfs
|
||||
for config_file in etab rmtab state ; do
|
||||
mv ${config_file} ${config_file}.new
|
||||
done
|
||||
)
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
b332bb20461a90262855b8860e3e018a375a8d982ef9caed6359eb069b8332a15c6404fea1817c7bec10366d0c3dc30b2e10a9253fadf3768a19ab1554c549c0 nfs-utils-2.5.1.tar.lz
|
||||
3f245b1870a47998d90cee191dba528dede7d2e18abad3f045864f95039057cda5a22708d89fcc086eeed452729c397a0284c73c1c7037277943a9890504e250 musl-configure_ac.patch
|
||||
94d7ba23164660f1da9298494dff75c57f5a300cb32b2922bc2226fcdaded7eaaa0c50a59a145ac7c75639d177558b5f5594fb1f03a50f60f4c577c93b135748 musl-getservbyport.patch
|
||||
52eeade44753f2002bf99d58ad4982086aab74ef8b14de46be547f23508197f58a6ff529145f96de7f031ac0bb7779b648d05fd981cdd91556dd13d068dfe57b musl-svcgssd-sysconf.patch
|
||||
8efc48cdc6f8cfafe476241f95ca8dc89ac7b3402d4230d20ef1e066990c542b8350f9b11f495cc261f25f1a705e35445fa89ca729f0d162e0ed44b0d8a47344 musl-time64.patch
|
||||
"
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
if ! /bin/nginx -tq; then
|
||||
if ! /usr/bin/nginx -tq; then
|
||||
# print configuration errors
|
||||
/bin/nginx -t
|
||||
/usr/bin/nginx -t
|
||||
exit 1
|
||||
fi
|
||||
exec nginx 2>&1
|
||||
exec /usr/bin/nginx 2>&1
|
||||
|
|
66
net/nginx/smbuild
Normal file
66
net/nginx/smbuild
Normal file
|
@ -0,0 +1,66 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=nginx
|
||||
version=1.26.2
|
||||
build=1sml
|
||||
homepage="http://nginx.org"
|
||||
download="http://nginx.org/download/nginx-$version.tar.gz"
|
||||
desc="High-performance HTTP server with support for IMAP3 and POP3 proxies"
|
||||
requires="zlib pcre openssl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/var/lib \
|
||||
--with-http_ssl_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-http_auth_request_module \
|
||||
--with-http_gunzip_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_secure_link_module \
|
||||
--with-http_slice_module \
|
||||
--with-threads \
|
||||
--with-ipv6 \
|
||||
--sbin-path=/usr/bin/nginx \
|
||||
--conf-path=/etc/nginx/nginx.conf \
|
||||
--error-log-path=/var/log/nginx/error.log \
|
||||
--lock-path=/var/lock/nginx.lock \
|
||||
--http-log-path=/var/log/nginx/access.log \
|
||||
--http-client-body-temp-path=/var/spool/nginx\body \
|
||||
--http-fastcgi-temp-path=/var/spool/nginx/fastcgi \
|
||||
--http-proxy-temp-path=/var/spool/nginx/proxy \
|
||||
--http-scgi-temp-path=/var/spool/nginx/scgi \
|
||||
--http-uwsgi-temp-path=/var/spool/nginx/uwsgi
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
mkdir -p $pkg/var/spool/nginx
|
||||
install -Dm 644 $srcdir/nginx.conf.sample $pkg/etc/nginx/nginx.conf.sample
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
preprunitservice -s nginx -d
|
||||
|
||||
(
|
||||
cd $pkg/etc/nginx
|
||||
for conffile in fastcgi_params fastcgi.conf mime.types nginx.conf koi-utf \
|
||||
koi-win scgi_params uwsgi_params win-utf ; do
|
||||
mv $conffile $conffile.new
|
||||
done
|
||||
)
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
e2121f346bda491adb16b4120d93f95ab260ceb35376a204769490aee0dfeeaf44eca0f5ab652a6aeecc4a95e1081a3364bcf60992aa97e2fb082b9ba1a5316b nginx-1.17.3.tar.lz
|
||||
"
|
36
net/nmap/smbuild
Normal file
36
net/nmap/smbuild
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=nmap
|
||||
version=7.94
|
||||
build=1sml
|
||||
homepage="https://nmap.org/"
|
||||
download="https://nmap.org/dist/nmap-$version.tar.bz2"
|
||||
desc="Advanced network exploration and security auditing tool"
|
||||
requires="gcc-libs pcre libpcap openssl python3"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-liblua=included \
|
||||
--without-nmap-update
|
||||
|
||||
make $MAKEFLAGS
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ea95e902c220435ec81bcfae7533c235fc7a91f808c0a3358b413560869309b38e057a49a96fb600bd1b378186f55e1c8dda16915d739d0a6146b90542b12903 nmap-7.94.tar.lz
|
||||
"
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /bin/opendkim -x /etc/opendkim/opendkim.conf -f
|
||||
exec /usr/bin/opendkim -x /etc/opendkim/opendkim.conf -f
|
||||
|
|
48
net/opendkim/smbuild
Normal file
48
net/opendkim/smbuild
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=opendkim
|
||||
version=2.10.3
|
||||
build=1sml
|
||||
homepage="http://opendkim.org/"
|
||||
download="http://downloads.sourceforge.net/opendkim/opendkim-2.10.3.tar.gz"
|
||||
desc="Implementation of the DKIM sender authentication system"
|
||||
requires="db openssl libmilter"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/openssl_1.1.0_compat.patch
|
||||
|
||||
autoreconf -vi
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--with-db \
|
||||
--with-openssl \
|
||||
--with-libcurl
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
install -Dm 640 opendkim/opendkim.conf.simple $pkg/etc/opendkim/opendkim.conf.new
|
||||
|
||||
cp LICENSE* $pkgdocs/
|
||||
|
||||
preprunitservice -s opendkim -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
97923e533d072c07ae4d16a46cbed95ee799aa50f19468d8bc6d1dc534025a8616c3b4b68b5842bc899b509349a2c9a67312d574a726b048c0ea46dd4fcc45d8 opendkim-2.10.3.tar.gz
|
||||
f971979c5687286213218a5f0b420ed3593c262231717fb85eeee51762acde9b6e6fa0be5c7731e2da1fcf2d6761dfb3e9d6a1477ec9675fd2bbefceb734799f openssl_1.1.0_compat.patch
|
||||
"
|
|
@ -5,4 +5,4 @@
|
|||
#[ -f /etc/ssh/ssh_host_ecdsa_key ] || ssh-keygen -t ecdsa -N "" -b 521 -f /etc/ssh/ssh_host_ecdsa_key
|
||||
[ -f /etc/ssh/ssh_host_ed25519_key ] || ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
|
||||
|
||||
exec /bin/sshd -D 2>&1
|
||||
exec /usr/bin/sshd -D 2>&1
|
||||
|
|
62
net/openssh/smbuild
Normal file
62
net/openssh/smbuild
Normal file
|
@ -0,0 +1,62 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=openssh
|
||||
version=8.1p1
|
||||
build=1sml
|
||||
homepage="https://www.openssh.com/"
|
||||
download="https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz"
|
||||
desc="Client-server implementation of the SSH protocol suite"
|
||||
requires="zlib openssl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/openssh-sys_param.patch
|
||||
|
||||
# prevent from installing some things (keysign and maybe others) setuid.
|
||||
sed -i 's@-m 4711@-m 0750@g' Makefile.in
|
||||
}
|
||||
|
||||
build() {
|
||||
CFLAGS+=" -D_BSD_SOURCE -DMISSING_FD_MASK -DMISSING_NFDBITS" \
|
||||
./configure \
|
||||
--prefix= \
|
||||
--bindir=/bin \
|
||||
--sbindir=/bin \
|
||||
--libexecdir=/lib/ssh \
|
||||
--sysconfdir=/etc/ssh \
|
||||
--with-privsep-user=nobody --with-privsep-path=/var/empty --with-xauth="$pkg/bin/xauth" \
|
||||
--without-stackprotect --with-md5-passwords --with-mantype=man \
|
||||
--disable-strip --disable-lastlog --disable-utmp --disable-utmpx \
|
||||
--disable-wtmp --disable-wtmpx --disable-pututline \
|
||||
--disable-pututxline
|
||||
|
||||
mkdir netinet
|
||||
touch netinet/in_systm.h
|
||||
|
||||
sed -i '/USE_BTMP/d' config.h
|
||||
sed -i '/USE_UTMP/d' config.h
|
||||
sed -i 's@HAVE_DECL_HOWMANY 1@HAVE_DECL_HOWMANY 0@' config.h
|
||||
|
||||
make
|
||||
make install-nokeys DESTDIR="$pkg"
|
||||
|
||||
cp LICENCE $pkgdocs/
|
||||
|
||||
rm -f $pkg/etc/ssh/sshd_config
|
||||
cp $srcdir/sshd_config $pkg/etc/ssh/sshd_config.new
|
||||
mv $pkg/etc/ssh/ssh_config $pkg/etc/ssh/ssh_config.new
|
||||
|
||||
preprunitservice -s openssh
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f1069dbef01e86d671d4a6d78955995dcc3956d067d08b44a6b2f86b5805ef8304fa54ac36cf7a92365a1d919e99475c460615fe3ef678ff183015961e77366a openssh-8.1p1.tar.lz
|
||||
c5a3b4382c0f63c1246e2113ee28cb18906fefef7ddffaf98552bb14f3348e42b4e18c14e21919dddfab274a5645947b0aaad190fde514ec12410c74ffeac568 openssh-sys_param.patch
|
||||
"
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
CONFFILE="/etc/openvpn/server.conf"
|
||||
exec openvpn --config "$CONFFILE" 2>&1
|
||||
exec /usr/bin/openvpn --config "$CONFFILE" 2>&1
|
||||
|
|
39
net/openvpn/smbuild
Normal file
39
net/openvpn/smbuild
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=openvpn
|
||||
version=2.4.9
|
||||
build=1sml
|
||||
homepage="https://openvpn.net/"
|
||||
download="https://github.com/OpenVPN/openvpn/archive/refs/tags/v$version.tar.gz"
|
||||
desc="Full-featured SSL-based VPN suite"
|
||||
requires="lzo lz4 openssl iproute2"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc/openvpn \
|
||||
--enable-iproute2 \
|
||||
--disable-plugin-auth-pam
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPY* $pkgdocs/
|
||||
|
||||
preprunitservice -s openvpn -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7415874cef32156e0384c6b21a370e7416afa4140087ceebae23e02b13da1ee38a7049236bb890ec4f33fb183e5f48c6d9d29663c5accc0ddedc77f998c6bebf openvpn-2.4.9.tar.lz
|
||||
"
|
110
net/php/smbuild
Normal file
110
net/php/smbuild
Normal file
|
@ -0,0 +1,110 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=php
|
||||
version=7.4.33
|
||||
rrdversion=2.0.3
|
||||
build=3sml
|
||||
homepage="https://www.php.net/"
|
||||
download="https://www.php.net/distributions/php-$version.tar.xz"
|
||||
desc="Scripting language suited for creating dynamic websites"
|
||||
requires="enchant libgd db gmp icu libsodium libxslt sqlite curl libtool pcre2 postfix aspell openssl oniguruma libffi bzip2 zlib libexif intltool readline libsodium libwebp rrdtool"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
|
||||
# Add the rrd graph module
|
||||
(
|
||||
cd ext
|
||||
tar xf $srcdir/rrd-$rrdversion.tgz
|
||||
)
|
||||
|
||||
fixbuilddirpermissions
|
||||
|
||||
./buildconf -f
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc/php \
|
||||
--sbindir=/usr/bin \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/share/man \
|
||||
--enable-fpm \
|
||||
--with-fpm-user=nobody \
|
||||
--with-fpm-group=nogroup \
|
||||
--with-layout=PHP \
|
||||
--with-config-file-scan-dir=/etc/php \
|
||||
--with-config-file-path=/etc/php/conf.d \
|
||||
--enable-filter \
|
||||
--enable-mbstring \
|
||||
--enable-pcntl \
|
||||
--with-libxml \
|
||||
--with-expat \
|
||||
--with-jpeg \
|
||||
--with-xpm \
|
||||
--with-bz2=shared \
|
||||
--enable-calendar=shared \
|
||||
--with-ffi=shared \
|
||||
--with-openssl=shared \
|
||||
--with-external-pcre \
|
||||
--with-zlib=shared \
|
||||
--with-sqlite3=shared \
|
||||
--with-enchant=shared \
|
||||
--with-gmp=shared \
|
||||
--with-gettext=shared \
|
||||
--with-webp \
|
||||
--enable-exif=shared \
|
||||
--enable-intl=shared \
|
||||
--enable-gd=shared \
|
||||
--with-tsrm-pthreads \
|
||||
--with-sodium=shared \
|
||||
--with-readline \
|
||||
--enable-static=no \
|
||||
--enable-shared=yes \
|
||||
--with-pic \
|
||||
--enable-sockets \
|
||||
--enable-opcache \
|
||||
--with-imap-ssl \
|
||||
--disable-rpath \
|
||||
--with-pdo-sqlite=shared \
|
||||
--with-rrd=shared
|
||||
|
||||
make
|
||||
make install INSTALL_ROOT=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
install -Dm 644 sapi/fpm/init.d.php-fpm $pkg/etc/rc.d/rc.php-fpm.new
|
||||
install -Dm 644 $srcdir/php.ini $pkg/etc/php/php.ini.new
|
||||
|
||||
(
|
||||
cd $pkg/etc/php
|
||||
mv php-fpm.conf.default php-fpm.conf.default.new
|
||||
cd php-fpm.d ; mv www.conf.default www.conf.default.new
|
||||
)
|
||||
|
||||
# Session directory for PHP:
|
||||
mkdir -p $pkg/var/lib/php
|
||||
chmod 770 $pkg/var/lib/php
|
||||
chown root:www-data $pkg/var/lib/php
|
||||
|
||||
# PHP sometimes puts junk in the root directory:
|
||||
(
|
||||
cd $pkg/usr/lib/php
|
||||
rm -rfv .channels .depdb .depdblock .filemap .lock .registry
|
||||
cd $pkg
|
||||
rm -rfv .channels .depdb .depdblock .filemap .lock .registry
|
||||
rm -rfv $pkg/php
|
||||
)
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
213729a46f12230d24dbff2d99f298559269e1aabae748056d9ae16e8fad6081c86f886678a0d8d851c5109f2d523a9d6b84e57a7ec3b8f8899820d6222f1e4c php-7.4.33.tar.lz
|
||||
28679ccead54806d1e92accc6f5ebab582a41db802f95797ddb43e3e15690889be3437f22e2a14939d217422ac2700ef90ae0a9b36244ddead3856343b3e09b4 rrd-2.0.3.tgz
|
||||
"
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec /lib/postfix/master -d 2>&1
|
||||
exec /usr/lib/postfix/master -d 2>&1
|
||||
|
|
69
net/postfix/smbuild
Normal file
69
net/postfix/smbuild
Normal file
|
@ -0,0 +1,69 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=postfix
|
||||
version=3.8.1
|
||||
build=1sml
|
||||
homepage="https://www.postfix.org/"
|
||||
download="https://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-$version.tar.gz"
|
||||
desc="Fast, secure and easy-to-administer mail server"
|
||||
requires="pcre openssl sqlite db icu"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
AUXLIBS="-lssl -lcrypto" \
|
||||
CCARGS="-DNO_NIS -DNO_NISPLUS -DUSE_TLS" \
|
||||
make -f Makefile.init makefiles
|
||||
|
||||
make
|
||||
|
||||
sh postfix-install -non-interactive \
|
||||
install_root=$pkg \
|
||||
daemon_directory=/usr/lib/postfix \
|
||||
manpage_directory=/usr/share/man \
|
||||
command_directory=/usr/bin
|
||||
|
||||
cp COPYRIGHT LICENSE $pkgdocs/
|
||||
|
||||
(
|
||||
cd $pkg/etc/postfix
|
||||
mv master.cf.proto master.cf.proto.new
|
||||
mv aliases aliases.new
|
||||
mv access access.new
|
||||
mv main.cf main.cf.new
|
||||
mv canonical canonical.new
|
||||
mv transport transport.new
|
||||
mv makedefs.out makedefs.out.new
|
||||
mv postfix-files postfix-files.new
|
||||
mv header_checks header_checks.new
|
||||
mv master.cf master.cf.new
|
||||
mv bounce.cf.default bounce.cf.default.new
|
||||
mv virtual virtual.new
|
||||
mv generic generic.new
|
||||
|
||||
cd ../../
|
||||
|
||||
# unnecessary stupidity hardcoded in the Makefile
|
||||
mv usr/sbin/sendmail usr/bin/
|
||||
cd usr/bin
|
||||
ln -s sendmail mailq
|
||||
ln -s sendmail newaliases
|
||||
#rm -rv $pkg/usr
|
||||
)
|
||||
|
||||
preprunitservice -s postfix -d
|
||||
preprunitservice -s postfix.ssl -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
9eb91f2baab327de22dd55fc5ff398de74856e30be461282f41b1801301873881a8f40ce061c16e0505d51d96aaf0eff8d0ac660e5f6c70c6125133f64a4ee80 postfix-3.8.1.tar.gz
|
||||
"
|
71
net/ppp/smbuild
Normal file
71
net/ppp/smbuild
Normal file
|
@ -0,0 +1,71 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=ppp
|
||||
version=2.4.8
|
||||
build=1sml
|
||||
homepage="https://github.com/ppp-project/ppp"
|
||||
download="https://github.com/ppp-project/ppp/archive/refs/tags/ppp-$version.tar.gz"
|
||||
desc="PPP daemon for establishing connectivity over a network"
|
||||
requires="libpcap openssl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
applypatch $srcdir/0011-build-sys-don-t-put-connect-errors-log-to-etc-ppp.patch
|
||||
applypatch $srcdir/fix-bound-check-eap.patch
|
||||
applypatch $srcdir/fix-paths.patch
|
||||
applypatch $srcdir/fix-pppd-magic.h.patch
|
||||
applypatch $srcdir/fix-pppd-pppoe.h.patch
|
||||
applypatch $srcdir/musl-fix-headers.patch
|
||||
applypatch $srcdir/pppd-Ignore-received-EAP-messages-when-not-doing-EAP.patch
|
||||
applypatch $srcdir/radius-Prevent-buffer-overflow-in-rc_mksid.patch
|
||||
|
||||
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
||||
sed -i "s:-O2 -pipe -Wall -g:${CFLAGS}:" pppd/Makefile.linux
|
||||
sed -i "s:-g -O2:${CFLAGS}:" pppd/plugins/Makefile.linux
|
||||
sed -i "s:-O2:${CFLAGS}:" pppstats/Makefile.linux
|
||||
sed -i "s:-O2 -g -pipe:${CFLAGS}:" chat/Makefile.linux
|
||||
sed -i "s:-O:${CFLAGS}:" pppdump/Makefile.linux
|
||||
sed -i "s:^#FILTER=y:FILTER=y:" pppd/Makefile.linux
|
||||
sed -i "s:^#HAVE_INET6=y:HAVE_INET6=y:" pppd/Makefile.linux
|
||||
sed -i "s:^#CBCP=y:CBCP=y:" pppd/Makefile.linux
|
||||
sed -i "s:^#CBCP=y:CBCP=y:" pppd/Makefile.linux
|
||||
sed -i "s:^#USE_CRYPT=y:USE_CRYPT=y:" pppd/Makefile.linux
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--localstatedir=/var
|
||||
|
||||
make COPTS="$CFLAGS"
|
||||
make INSTROOT="$pkg" BINDIR="$pkg"/bin install
|
||||
|
||||
cp README* $pkgdocs/
|
||||
|
||||
install -Dm 644 include/net/ppp_defs.h $pkg/usr/include/net/ppp_defs.h
|
||||
mkdir -p $pkg/etc/ppp
|
||||
cp etc.ppp/* $srcdir/ip-* $pkg/etc/ppp/
|
||||
|
||||
cp scripts/{pon,poff} $pkg/usr/bin/
|
||||
install -Dm 644 scripts/pon.1 $pkg/usr/share/man/man1/pon.1
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
de20c71f9ce25aefc41a0779902a0619690cbec5eaf5f42e8d91d1a56925aec9ece0955e5a8184538f6a33815e1aa46ddc9a7d0fe73db4881e93c57256abf729 ppp-2.4.8.tar.lz
|
||||
b490971d03fef4de66b61123f80a0087270bcb88466ae8ed98ea9a08b35d4c7c46b2dadd304e2970a4206bb5760a14370d7e3873de6240119d88e927ecef840c 0011-build-sys-don-t-put-connect-errors-log-to-etc-ppp.patch
|
||||
ba0c062f93400008ddf47897ac2ab6a2f5017bc7f4167d1a93dd3a5c04068a922490eb4082b0da80f0c3aea6c87fdfbca3568548724a0abc148588ab86a6df32 fix-bound-check-eap.patch
|
||||
8384afb992a98a7f97b484866e6aa1b1de51e901d7837f84f7ce2beba6815591450fab43957f03b65804424c4940c59640a9cd878979240a171aa77427e9c4ff fix-paths.patch
|
||||
d1067defff79d6c9f67121a9214e41a1bcca1e3b8a345ad905d223fdb8835142bad7cc3b556a3eca509ddf51cf808741773f31f4dca74e834b612a15854a5e6b fix-pppd-magic.h.patch
|
||||
d76237c82af0a3ed7ede9e814d6849b94221f1fd15e4ee68cadd33a308a32d87d635acd14f84508c9e38a10ad0a9e96ce391044da37e217d11b89a4f6631abf7 fix-pppd-pppoe.h.patch
|
||||
55642ce365a7cf7dda05366ac6e74f6badba3cc7bc980760e0a2ee7bfa768ea033c4a3880b3387e0787d719742698f627c624f890d68800344d31c0309c0374d musl-fix-headers.patch
|
||||
ce1bf3298f3f99a7de643bd070cb0e7e7b1dd9621926637ffc93fd2ef552781424ce9a68c88de6eb25dc2593d543e8e329eccc2d00982bde2493e8efb7903051 pppd-Ignore-received-EAP-messages-when-not-doing-EAP.patch
|
||||
d175085eaa93ccf8ade7be4f9818efe353017da7cec41d9312ad2c6685e3763834aff76d673e9d2bb0b44336f926537569ddb86a6035ec33ab8b6a7de2340132 radius-Prevent-buffer-overflow-in-rc_mksid.patch
|
||||
"
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
user="nobody"
|
||||
config="/etc/privoxy/config"
|
||||
exec privoxy --no-daemon --user $user $config > /dev/null 2>&1
|
||||
exec /usr/bin/privoxy --no-daemon --user $user $config > /dev/null 2>&1
|
||||
|
|
58
net/privoxy/smbuild
Normal file
58
net/privoxy/smbuild
Normal file
|
@ -0,0 +1,58 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=privoxy
|
||||
version=3.0.33
|
||||
build=2sml
|
||||
homepage="https://www.privoxy.org/"
|
||||
download="https://www.privoxy.org/sf-download-mirror/Sources/$version%20%28stable%29/privoxy-$version-stable-src.tar.gz"
|
||||
desc="Web proxy with advanced filtering capabilities"
|
||||
requires="zlib pcre"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
# Put the docs where we tell them to go:
|
||||
sed -i "/^DOC_DEST/s/= .*/= @docdir@/" GNUmakefile.in
|
||||
|
||||
# The Makefile checks if certain config files exist, and if so, adds a
|
||||
# .new suffix. Turn this behavior off. We will do it below.
|
||||
sed -i "s/\[ -s \"\$(CONF_DEST)\/\$\$i\" \]/false/" GNUmakefile.in
|
||||
|
||||
autoreconf -vif
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc/"$app" \
|
||||
--localstatedir=/var \
|
||||
--with-docbook=no \
|
||||
--with-user=nobody \
|
||||
--with-group=nogroup \
|
||||
--enable-no-gifs \
|
||||
--enable-compression \
|
||||
--enable-large-file-support
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
preprunitservice -s privoxy -d
|
||||
|
||||
(
|
||||
cd $pkg/etc/privoxy
|
||||
for f in config match-all.action regression-tests.action trust user.action user.filter ;
|
||||
do mv $f $f.new
|
||||
done
|
||||
)
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
081eab421edad8c2d24c82e2e36a9dd63376844c22ffdae5f41aff187d6c279ba1bf4c1de90815b49f9bea71f68941c201189278c185c235a14949efeaa1dd99 privoxy-3.0.33.tar.lz
|
||||
"
|
43
net/proftpd/smbuild
Normal file
43
net/proftpd/smbuild
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=proftpd
|
||||
version=1.3.6
|
||||
build=1sml
|
||||
homepage="http://www.proftpd.org/"
|
||||
download="https://github.com/proftpd/proftpd/archive/refs/tags/v$version.tar.gz"
|
||||
desc="Secure and configurable FTP server"
|
||||
requires="attr netbsd-curses libcap"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--sbindir=/usr/bin \
|
||||
--enable-ipv6
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
rm -f $pkg/etc/proftpd/* $pkg/etc/proftpd.conf
|
||||
cat $srcdir/proftpd.conf > $pkg/etc/proftpd.conf.new
|
||||
cat $srcdir/ftpusers > $pkg/etc/ftpusers.new
|
||||
|
||||
mkdir -p $pkg/var/db/proftpd
|
||||
chown nobody:nogroup $pkg/var/db/proftpd
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
434897811595327c368d39f877e1bdf9840682964efc8e71f5a81c85f22451c061fc520e09e26cd0faa6eb69ca7d6bc79ebfd1bf9978c703f6f2277485e50006 proftpd-1.3.6.tar.lz
|
||||
"
|
38
net/rp-pppoe/smbuild
Normal file
38
net/rp-pppoe/smbuild
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=rp-pppoe
|
||||
version=3.13
|
||||
build=1sml
|
||||
homepage="https://dianne.skoll.ca/projects/rp-pppoe/"
|
||||
desc="Client program for establishing connectivity over PPPoE"
|
||||
requires="ppp"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/musl-fix.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd src
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--sbindir=/usr/bin \
|
||||
--enable-plugin=/usr/include/pppd
|
||||
|
||||
make all
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
140e3bf11910cea3c0f04a5b8fe9c72dd607dfdec1a6ef14475c4ff28f1fcb51fb6528d50182d5772e3a7bc3df0f4a795a27de47b0e52b9d3f9443893cc16605 rp-pppoe-3.13.tar.lz
|
||||
5f7e9d50be7c4b007bc2f86cee42b8e5dc4ead6a8def618441c0db0ecb083a6631bd90d6292279c2188986820f7b8f488b41ff6cb186bb541e3e705858a21034 musl-fix.patch
|
||||
"
|
41
net/rrdtool/smbuild
Normal file
41
net/rrdtool/smbuild
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=rrdtool
|
||||
version=1.7.2
|
||||
build=1sml
|
||||
homepage="https://www.rrdtool.org"
|
||||
download="https://oss.oetiker.ch/rrdtool/pub/rrdtool-$version.tar.gz"
|
||||
desc="Data logging and graphing application"
|
||||
requires="perl python3 lua"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--enable-perl \
|
||||
--enable-ruby \
|
||||
--enable-python \
|
||||
--enable-lua \
|
||||
--disable-libwrap \
|
||||
--enable-perl-site-install \
|
||||
--with-perl-options='INSTALLDIRS=vendor'
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYRIGHT $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ed7331f68f4a53e0409237826bbb9747ba81ac99466d15e33cae267137918180f6db31586d19c4e892d9b62eac06a190e6e7ffceb0052ff47616f77afb2cb709 rrdtool-1.7.2.tar.lz
|
||||
"
|
36
net/rsync/smbuild
Normal file
36
net/rsync/smbuild
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=rsync
|
||||
version=3.2.7
|
||||
build=2sml
|
||||
noautoconfsite=1
|
||||
homepage="https://rsync.samba.org/"
|
||||
download="https://download.samba.org/pub/rsync/src/rsync-$version.tar.gz"
|
||||
desc="Tool to backup and synchronise files over a network"
|
||||
requires="acl attr popt"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-locale \
|
||||
--disable-xxhash
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
84cc595340543e3e895c99ec1eba8b5ca0264340ff293db1e1e07f415cdfd781d50f869a96c3e476910a7a32a836bbacc18285f4d6ccca56a4b8dd1cadc195f2 rsync-3.2.7.tar.lz
|
||||
"
|
33
net/rtl-sdr/smbuild
Normal file
33
net/rtl-sdr/smbuild
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=rtl-sdr
|
||||
version=20180603
|
||||
build=1sml
|
||||
homepage="https://osmocom.org/projects/rtl-sdr/wiki/Rtl-sdr"
|
||||
desc="Programs and libraries for communicating with software-defined radios"
|
||||
requires="eudev libusb"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
9a72bb1c3f65965701b05023aff83e7d71e78be5f7a19aa40cdf2c69d06d2e7d592734e06592a588fd8a76db7c2565f8f594cc18d0e048f47aa6aed6f3c918fe rtl-sdr-20180603.tar.lz
|
||||
"
|
34
net/rtorrent/smbuild
Normal file
34
net/rtorrent/smbuild
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=rtorrent
|
||||
version=0.9.8
|
||||
build=1sml
|
||||
homepage="https://github.com/rakshasa/rtorrent"
|
||||
download="https://github.com/rakshasa/rtorrent/archive/refs/tags/v$version.tar.gz"
|
||||
desc="command-line bittorrent client"
|
||||
requires="gcc-libs netbsd-curses zlib openssl curl libtorrent"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
CXXFLAGS+=" -lpthread" \
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5237eed4c9ffe68db11904a1163cded06110626de5e4d675f38b7b6fdad756e1f2bce64cee2ddb06739d1841ca8ef83c36397f7acab981105bc22e3702b036a1 rtorrent-0.9.8.tar.lz
|
||||
"
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/sh
|
||||
PATH=/bin
|
||||
exec nmbd -F 2>&1
|
||||
exec /usr/bin/nmbd -F 2>&1
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/sh
|
||||
PATH=/bin
|
||||
exec smbd -F 2>&1
|
||||
exec /usr/bin/smbd -F 2>&1
|
||||
|
|
88
net/samba/smbuild
Normal file
88
net/samba/smbuild
Normal file
|
@ -0,0 +1,88 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=samba
|
||||
version=4.18.0
|
||||
build=1sml
|
||||
homepage="https://www.samba.org"
|
||||
download="https://download.samba.org/pub/samba/stable/samba-$version.tar.gz"
|
||||
desc="CIFS file and print server, version 4"
|
||||
requires="acl attr netbsd-curses readline libcap tar db popt libaio perl-modules nfs-utils"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/add_missing___compar_fn_t.patch
|
||||
applypatch $srcdir/getpwent_r.patch
|
||||
applypatch $srcdir/missing-headers.patch
|
||||
applypatch $srcdir/musl_rm_unistd_incl.patch
|
||||
applypatch $srcdir/musl_uintptr.patch
|
||||
applypatch $srcdir/netgroup.patch
|
||||
applypatch $srcdir/pidl.patch
|
||||
applypatch $srcdir/samba-bgqd-include-signal-h.patch
|
||||
|
||||
#SAMBAJOBS="$(echo $MAKEFLAGS | sed 's@-j@@')"
|
||||
|
||||
# Enabling quotas results in "[2022/03/05 14:15:09.123806, 0] ../../source3/lib/sysquotas.c:566(sys_get_quota)
|
||||
# sys_path_to_bdev() failed for path [.]!
|
||||
# in logs, so disable them
|
||||
# https://codeberg.org/davidak/nixos-config/issues/5
|
||||
# https://lists.samba.org/archive/samba/2010-October/158650.html
|
||||
}
|
||||
|
||||
build() {
|
||||
unset CFLAGS CXXFLAGS
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--docdir=/doc/"$app-$version" \
|
||||
--with-configdir=/etc/samba \
|
||||
--with-lockdir=/var/lock \
|
||||
--with-logfilebase=/var/log \
|
||||
--with-piddir=/var/run \
|
||||
--with-privatedir=/etc/samba \
|
||||
--without-ldap \
|
||||
--without-ads \
|
||||
--without-pam \
|
||||
--without-ad-dc \
|
||||
--without-systemd \
|
||||
--without-gettext \
|
||||
--without-gpgme \
|
||||
--disable-rpath-install \
|
||||
--disable-python \
|
||||
--without-regedit \
|
||||
--without-quotas \
|
||||
--disable-fault-handling
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
cp examples/smb.conf.default $pkg/etc/samba/smb.conf.new
|
||||
|
||||
rmdir $pkg/bind-dns
|
||||
|
||||
preprunitservice -s smbd -d
|
||||
preprunitservice -s nmbd -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
969acb2ece0c34ff19eac31cdef1362ffc73c6f60abc477a5ab9cb089e13d942b222a7ad7bde8833a551d55d6b42d1cec7d7b19e6919a9a142881458e2611f27 samba-4.18.0.tar.lz
|
||||
bc2df70e327fea5dfbd923600225f1448815d842c37d6937dd74eab7f7699d7f52cd7a8e28a61233974649cf86661a0107dce5019d33b71205e4b41bac73f4e2 add_missing___compar_fn_t.patch
|
||||
58de5e79fdfd06e828d478e112d581d333a8bee88d2602b92204d780f0d707b27dd84f8e2e6b00fca40da81c8fe99aa5bcec70d8b393d3a0a83199c72a4aa48b getpwent_r.patch
|
||||
9642e0de5a39ab940e0f53040ae20fccdbde471bed9bcca713482f26e7c88451e405bd63d719d0548975c7c4c045b51b0006672d34ec4390c3b5a618ea6c8d85 missing-headers.patch
|
||||
9bf4bbc8b03d9ea17d2f8ffeaf3a83541b171936a90bb8d75b08cc5afbdbaaec545c1b3782c90ae2ffc4568ab4e6f15fb21899d80c654a796301e16429c93b65 musl_rm_unistd_incl.patch
|
||||
b7906d66fe55a980a54161ee3f311b51bcbce76b8d4c8cc1ba6d0c5bdf98232cb192b9d2c1aa7b3e2742f5b9848c6cf429347940eefe66c3e0eda1d5aac1bf93 musl_uintptr.patch
|
||||
f997d0bca9de64a567bccc245bec41e4aa00bacb379d8e348678dcafcf7e723e8716608c5d2d266ad816439b8b93bb8ee28371308a01c9d9c50229f1fc8deb67 netgroup.patch
|
||||
c0bbe1186b150a9bb2a0b741a8cfbd7a5109e5fed1eaa07aaa38cf026ebe054d38cc01e2496f0cab7b40f743e1b7ecfbf8a4d5820810226c4152021df65f36dc pidl.patch
|
||||
e98fd19f65d954f04f7e3b5be86e9c4bcc9ac090c40037de77bfeb266617747c514aeb42f3daf84113b2f3374480d25e368bc1fdebc1870458eda12329d2062e samba-bgqd-include-signal-h.patch
|
||||
"
|
33
net/sshfs/smbuild
Normal file
33
net/sshfs/smbuild
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=sshfs
|
||||
version=2.8
|
||||
build=1sml
|
||||
homepage="https://github.com/libfuse/sshfs"
|
||||
download="https://github.com/libfuse/sshfs/archive/refs/tags/sshfs_$version.tar.gz"
|
||||
desc="Network file system client to connect to SSH servers"
|
||||
requires="glib fuse pcre"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
0f3d97f6edb458208f9080bbb539220cfe872e712a8ee8c21ecebcea0bb5541e28032ae715192fbcfef8bc3b22b89a3f22ee743cc8eb2bfa9f709855a419a4bd sshfs-2.8.tar.lz
|
||||
"
|
38
net/sylpheed/smbuild
Normal file
38
net/sylpheed/smbuild
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=sylpheed
|
||||
version=3.7.0
|
||||
build=2sml
|
||||
homepage="https://sylpheed.sraoss.jp/en/"
|
||||
download="https://osdn.net/dl/sylpheed/sylpheed-$version.tar.xz"
|
||||
desc="Simple, lightweight email client based on GTK+"
|
||||
requires="openssl dbus-glib gtkspell"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/sylpheed-pop3-cram-md5.patch
|
||||
applypatch $srcdir/sylpheed-trayicon.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
20beae25533995694809d14595f6b0bd1bbd1843363fdae8147c7ef0b5b8c4edc573c6d2a5bd3cfe2ed817cb94ae6eba3a8142684f6512384e854b59103f920b sylpheed-3.7.0.tar.lz
|
||||
9f59ddb37cc22bcd417b2150e2eafa36a3c2b66cfafda10ce38fc2a83cdecd9987d711aadbad4a0cab885fb06d03c2b999742c257811bcd5ef23c7ea3f4d7eb0 sylpheed-pop3-cram-md5.patch
|
||||
5a673ec49c358b5157e50a8f2149073ab69156380b1b7da6b51045f1434a0e161adb45355bba8b243be38fbde1a8dd7f725def6ff91c45a5ca14e0f40fb3c1ef sylpheed-trayicon.patch
|
||||
"
|
35
net/tcpdump/smbuild
Normal file
35
net/tcpdump/smbuild
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=tcpdump
|
||||
version=4.9.2
|
||||
build=1sml
|
||||
homepage="https://www.tcpdump.org/"
|
||||
download="https://www.tcpdump.org/release/tcpdump-$version.tar.gz"
|
||||
desc="Text-mode network monitoring and packet data acquisition tool"
|
||||
requires="libpcap openssl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
ac_cv_linux_vers=3 \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c299de1f1f12d2fda53b2ae4f60e8930c196d490390d935498970a0d82a76ea2da55dfa67e79784990b01161ed93da521f95e282f997a9081f5fa805ea9f6cb3 tcpdump-4.9.2.tar.lz
|
||||
"
|
44
net/tor/smbuild
Normal file
44
net/tor/smbuild
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=tor
|
||||
version=0.4.1.6
|
||||
build=2sml
|
||||
homepage="https://www.torproject.org/"
|
||||
download="https://archive.torproject.org/tor-package-archive/tor-$version.tar.gz"
|
||||
desc="The second-generation onion router"
|
||||
requires="gcc-libs zlib libcap openssl libevent ca-certificates"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--disable-tool-name-check \
|
||||
--enable-pic
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
rm $pkg/etc/tor/torrc.sample
|
||||
cp $srcdir/torrc.sample $pkg/etc/tor/torrc
|
||||
|
||||
mkdir -p $pkg/var/lib/tor
|
||||
chown -R tor:tor $pkg/var/lib/tor
|
||||
|
||||
preprunitservice -s tor -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
58bf6c233e13fd7dd1cfdeee55aadd3641e727a1f35173b1c2dfb73412591122499c4f78c03f913fed2780f1f2ed3798ab5bc533b0fd98d3960e12d04d375dba tor-0.4.1.6.tar.lz
|
||||
"
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /bin/tor -f /etc/tor/torrc 2>&1
|
||||
exec /usr/bin/tor -f /etc/tor/torrc 2>&1
|
||||
|
|
30
net/traceroute/smbuild
Normal file
30
net/traceroute/smbuild
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=traceroute
|
||||
version=2.1.0
|
||||
build=1sml
|
||||
homepage="http://traceroute.sourceforge.net/"
|
||||
download="https://sourceforge.net/projects/traceroute/files/traceroute/traceroute-$version/traceroute-$version.tar.gz"
|
||||
desc="Utility to track route packets going through a network to a target host"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
make
|
||||
make install prefix=/usr DESTDIR=$pkg
|
||||
|
||||
cp COPYING* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
6683a3d5cd9cdef69f72c0c30ee4d1e8629207f0921a656cd0e8fbb17d809efc4c43b0f75f7c119899ae99b922dcdb4f7ee0bb864b54f8df5c56bdc0586956ca traceroute-2.1.0.tar.lz
|
||||
"
|
33
net/transmission/smbuild
Normal file
33
net/transmission/smbuild
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=transmission
|
||||
version=2.94
|
||||
build=1sml
|
||||
homepage="https://transmissionbt.com/"
|
||||
download="https://github.com/transmission/transmission-releases/raw/master/transmission-$version.tar.xz"
|
||||
desc="Torrent client with text-mode, remote, daemon and GTK+3"
|
||||
requires="intltool curl desktop-file-utils libevent miniupnpc libnotify hicolor-icon-theme gtk3"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ded4533415be4f8db35a195215a40e556447bc428422509c21a8f7ecefe3050c93f05b0d0a4af891002e4610ed09511c85e0df0e2526b9318788db009ca3db37 transmission-2.94.tar.lz
|
||||
"
|
41
net/unbound/smbuild
Normal file
41
net/unbound/smbuild
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=unbound
|
||||
version=1.17.1
|
||||
build=1sml
|
||||
homepage="https://www.nlnetlabs.nl/projects/unbound/about/"
|
||||
download="https://www.nlnetlabs.nl/downloads/unbound/unbound-$version.tar.gz"
|
||||
desc="Validating, recursive, and caching DNSSEC resolver written in C"
|
||||
requires="expat openssl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--sbindir=/usr/bin \
|
||||
--with-username=nobody \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
mv $pkg/etc/unbound/unbound.conf $pkg/etc/unbound/unbound.conf.new
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
preprunitservice -s unbound -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
a31fea727101180db11fe4ce84c35ca558ba3f45822e8c5b745741c9a9ce2d7bd75e3e2e752866d2ac006b80886098ee591d9f8ed576d0c8baab1c8889862132 unbound-1.17.1.tar.lz
|
||||
"
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec unbound -d 2>&1
|
||||
exec /usr/bin/unbound -d 2>&1
|
||||
|
|
39
net/vnstat/smbuild
Normal file
39
net/vnstat/smbuild
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=vnstat
|
||||
version=2.10
|
||||
build=1sml
|
||||
homepage="https://humdi.net/vnstat/"
|
||||
download="https://humdi.net/vnstat/vnstat-$version.tar.gz"
|
||||
desc="Text-mode network traffic monitor and logger"
|
||||
requires="bash sqlite libgd"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc
|
||||
|
||||
make all
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
( cd $pkg/etc ; mv vnstat.conf vnstat.conf.new )
|
||||
|
||||
preprunitservice -s vnstat -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
73bcd991c8a5dbaf4ac2ae0758230ee14981dea18551cf3632fddd43d59245cf1f82245967ea095f1da803f7022665d96436488fe14a00823fc911ec0380a7a8 vnstat-2.10.tar.lz
|
||||
"
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
CONFFILE=/etc/vnstat.conf
|
||||
exec /bin/vnstatd --config $CONFFILE --sync --nodaemon 2>&1
|
||||
exec /usr/bin/vnstatd --config $CONFFILE --sync --nodaemon 2>&1
|
||||
|
|
39
net/wavemon/smbuild
Normal file
39
net/wavemon/smbuild
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=wavemon
|
||||
version=0.9.4
|
||||
build=1sml
|
||||
homepage="https://github.com/uoaerg/wavemon"
|
||||
download="https://github.com/uoaerg/wavemon/archive/refs/tags/v$version.tar.gz"
|
||||
desc="Text-mode 802.11 wireless network monitor"
|
||||
requires="netbsd-curses libcap libnl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
# wavemon doesn't like our CFLAGS...
|
||||
unset CFLAGS
|
||||
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
(
|
||||
mv $pkg/share/wavemon/* $pkgdocs/
|
||||
rmdir $pkg/share/wavemon
|
||||
)
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
9868d060bc30bdc1ac456cd4d411a1a48d4649146124e6d993dde6bc72c77436b2cf3f3f5648df1266e0ad8a413f152586285b38059256a9104f6e23764aea4b wavemon-0.9.4.tar.lz
|
||||
"
|
37
net/weechat/smbuild
Normal file
37
net/weechat/smbuild
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=weechat
|
||||
version=3.8
|
||||
build=2sml
|
||||
homepage="http://www.weechat.org"
|
||||
download="https://weechat.org/files/src/weechat-$version.tar.xz"
|
||||
desc="Fast, modular text-mode IRC client"
|
||||
requires="netbsd-curses openssl curl libidn libtasn1 nettle gmp gnutls libgcrypt aspell perl python3"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir -p smbuild && cd smbuild
|
||||
cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DENABLE_PHP=OFF \
|
||||
-DENABLE_TCL=OFF \
|
||||
-DENABLE_GUILE=OFF \
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp ../COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5e12e9cbaf617a2209ccf8486896fc06ef0e8c6fccf230fc9c0f1311ae503a48374bfe7689d737f838195c77b83b53f2331a4b6bb35e73e304d6958316c01bd0 weechat-3.8.tar.lz
|
||||
"
|
38
net/wget/smbuild
Normal file
38
net/wget/smbuild
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=wget
|
||||
version=1.19
|
||||
build=2sml
|
||||
homepage="https://www.gnu.org/software/wget/"
|
||||
download="https://ftp.gnu.org/gnu/wget/wget-$version.tar.gz"
|
||||
desc="Non-interactive network resource retriever"
|
||||
requires="zlib netbsd-curses openssl e2fsprogs pcre"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-ssl=openssl \
|
||||
--disable-rpath
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
mv $pkg/etc/wgetrc $pkg/etc/wgetrc.new
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
2ea62e217fe6c9e1ade21fb5d4a797dfdc41f87998a713e9760a56beb000d490a73154bc5f61076ff5c8dfc08beb6c1d372a3ccec856561c4f6de9d965519701 wget-1.19.tar.lz
|
||||
"
|
13
net/whois/doinst.sh
Normal file
13
net/whois/doinst.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/whois.conf.new
|
33
net/whois/smbuild
Normal file
33
net/whois/smbuild
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=whois
|
||||
version=5.4.2
|
||||
build=1sml
|
||||
homepage="https://github.com/rfc1036/whois"
|
||||
download="https://github.com/rfc1036/whois/archive/refs/tags/v$version.tar.gz"
|
||||
desc="Improved whois directory client derived from BSD and RIPE whois programs"
|
||||
requires="perl libidn"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
make
|
||||
install -Dm 755 whois $pkg/usr/bin/whois
|
||||
install -Dm 644 whois.conf $pkg/etc/whois.conf.new
|
||||
install -Dm 644 whois.1 $pkg/usr/share/man/man1/whois.1
|
||||
install -Dm 644 mkpasswd.1 $pkg/usr/share/man/man1/mkpasswd.1
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
973a09fa52de9e0292a405287a6d3ae281e2feb6d9f92969c6488247e4fbb31e3b5a67f1f2c49e64271ea0c3511e515c3bc42ee16530332c6c15f86d6fdc6b09 whois-5.4.2.tar.lz
|
||||
"
|
36
net/wireless-tools/smbuild
Normal file
36
net/wireless-tools/smbuild
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=wireless-tools
|
||||
version=29
|
||||
build=1sml
|
||||
altname="$(echo $app | sed 's/-/_/')"
|
||||
homepage="https://hewlettpackard.github.io/wireless-tools/"
|
||||
download="https://hewlettpackard.github.io/wireless-tools/wireless_tools.$version.tar.gz"
|
||||
desc="Set of tools allowing manipulation of wireless extensions"
|
||||
requires="musl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf "$altname.$version"
|
||||
|
||||
tar xf $srcdir/$altname.$version.tar.?z
|
||||
cd "$altname.$version"
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/wireless-tools-Makefile.patch
|
||||
applypatch $srcdir/wireless-tools-headers.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
make INSTALL_MAN="$pkg/usr/share/man" INSTALL_DIR="$pkg/usr/bin"
|
||||
make INSTALL_MAN="$pkg/usr/share/man" INSTALL_DIR="$pkg/usr/bin" install DESTDIR="$pkg"
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
d2f182e60aeb2f3fa6dbb52b49be48a7ed25c1e660116c8b763b6d2baf863855c7459f1d8e0d4ae7d9f526a8f47d3cc5deaf1db5fe5352fdd821a427aa31716a wireless_tools.29.tar.lz
|
||||
629dee411f8b37047613fb8381b431caed8c1dcc24a3ced058c38f3628696ded1b8a0432ce5da75dbc93d42c7c82e54f16c0102fb0d961c840fe925f30377114 wireless-tools-Makefile.patch
|
||||
502e0b879bed0ccbcb6de0580984f4187cdbf4adc87caae44652a6a9ff786103a3930d9dfecd2fbe4754743cde2cc0a310ab67f4a794d0d18e88bdaf41662f14 wireless-tools-headers.patch
|
||||
"
|
57
net/wpa-supplicant/smbuild
Normal file
57
net/wpa-supplicant/smbuild
Normal file
|
@ -0,0 +1,57 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=wpa-supplicant
|
||||
sapp="${app/-/_}"
|
||||
version=2.10
|
||||
build=3sml
|
||||
homepage="https://w1.fi/"
|
||||
download="https://w1.fi/releases/wpa_supplicant-$version.tar.gz"
|
||||
desc="WPA/WPA2/IEEE 802.1X Supplicant"
|
||||
requires="readline openssl libnl dbus"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $sapp-$version
|
||||
|
||||
tar xf $srcdir/$sapp-$version.tar.?z*
|
||||
cd $sapp-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/eloop.patch
|
||||
applypatch $srcdir/unsafe-renegotiation-1.patch
|
||||
applypatch $srcdir/unsafe-renegotiation-2.patch
|
||||
applypatch $srcdir/allow-tlsv1.patch
|
||||
applypatch $srcdir/silence-scan-results,patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd wpa_supplicant
|
||||
cp $srcdir/config .config
|
||||
|
||||
make LIBDIR=/usr/lib BINDIR=/usr/bin all eapol_test
|
||||
make install LIBDIR=/usr/lib BINDIR=/usr/bin DESTDIR=$pkg
|
||||
|
||||
cp ../COPYING $pkgdocs/LICENSE
|
||||
|
||||
install -Dm 644 dbus/fi.w1.wpa_supplicant1.service $pkg/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service
|
||||
install -Dm 644 dbus/dbus-wpa_supplicant.conf $pkg/share/dbus-1/system.d/dbus-wpa_supplicant.conf
|
||||
|
||||
mkdir -p $pkg/share/man/man{5,8}
|
||||
cp doc/docbook/wpa_supplicant.conf.5 $pkg/share/man/man5/
|
||||
cp doc/docbook/{wpa_cli.8,wpa_passphrase.8,wpa_supplicant.8} $pkg/share/man/man8/
|
||||
|
||||
install -Dm 0600 $srcdir/wpa_supplicant.conf $pkg/etc/wpa_supplicant.conf.new
|
||||
install -m 0755 $srcdir/wpa_connect_action.sh $pkg/etc/wpa_connect_action.sh
|
||||
mkdir -p $pkg/var/run/wpa_supplicant
|
||||
|
||||
preprunitservice -s wpa-supplicant -d
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
021c2a48f45d39c1dc6557730be5debaee071bc0ff82a271638beee6e32314e353e49d39e2f0dc8dff6e094dcc7008cfe1c32d0c7a34a1a345a12a3f1c1e11a1 wpa_supplicant-2.10.tar.gz
|
||||
9c20b646cf89fab8919927f6533fa24d5e0ec2e6ca10fb738c6e1c17ad451978ecc9f26c09d518d8936d63f86994c8658cbf757d1b65ebced0481635ad69d89b allow-tlsv1.patch
|
||||
2be055dd1f7da5a3d8e79c2f2c0220ddd31df309452da18f290144d2112d6dbde0fc633bb2ad02c386a39d7785323acaf5f70e5969995a1e8303a094eb5fe232 eloop.patch
|
||||
9528735924faf876a7094de46760605e5e66e265187421a668be06dbf03d7b4db6b84cbad793fcd6bd614e3ba540f82f1f80660d75e8a6070eeb7e9abb54ed28 unsafe-renegotiation-1.patch
|
||||
a92ba3ed3f41022a8af9396d2b703ee47f78aa05c1fddb42919a7fe6a6fad71e3515c63457e97e252ae0a32c6c34d67ea6efe0278df1e141cf36e650237e5295 unsafe-renegotiation-2.patch
|
||||
"
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
IFACE="wlan0"
|
||||
exec /bin/wpa_supplicant -u -O /var/run/wpa_supplicant -i"$IFACE" -c/etc/wpa_supplicant.conf > /dev/null 2>&1
|
||||
exec /usr/bin/wpa_supplicant -u -O /var/run/wpa_supplicant -i"$IFACE" -c/etc/wpa_supplicant.conf > /dev/null 2>&1
|
||||
|
|
37
net/znc/smbuild
Normal file
37
net/znc/smbuild
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=znc
|
||||
version=1.7.5
|
||||
build=1sml
|
||||
homepage="https://wiki.znc.in/ZNC"
|
||||
download="https://znc.in/releases/archive/znc-$version.tar.gz"
|
||||
desc="An advanced IRC bouncer"
|
||||
requires="gcc-libs zlib python3 openssl"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=/etc \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/share/man \
|
||||
--disable-charset \
|
||||
--enable-openssl
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ef0d118c3be309a935c926267d9a72c5614aef368942a2e5c66bcd502f07bcaaf0e214805d3c36eff9039cedd9d3093a6e38cb4cfd1c2d01070e791842790b1f znc-1.7.5.tar.lz
|
||||
"
|
34
xfce/exo/smbuild
Normal file
34
xfce/exo/smbuild
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=exo
|
||||
version=4.16.0
|
||||
build=1sml
|
||||
homepage="https://docs.xfce.org/xfce/exo/start"
|
||||
download="https://archive.xfce.org/xfce/4.16/src/exo-$version.tar.bz2"
|
||||
desc="Extension library for Xfce"
|
||||
requires="gtk3 libxfce4util libxfce4ui"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
10cbdfc2d81290e75c07f851ed562fcff4aea8cb709317bb768387f4a955cd208772927d356e7e3582cc4747f237d1dd34c0de1532bc549bece0306c106f411a exo-4.16.0.tar.lz
|
||||
"
|
31
xfce/faenza-icon-theme/smbuild
Normal file
31
xfce/faenza-icon-theme/smbuild
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=faenza-icon-theme
|
||||
version=1.3
|
||||
build=1sml
|
||||
homepage="https://gnome-look.org/content/show.php/Faenza?content=128143"
|
||||
download="http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/faenza-icon-theme/faenza-icon-theme_$version.tar.gz"
|
||||
desc="Theme pack for GNOME"
|
||||
requires="gtk2 gtk3"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir -p $pkg/share/icons
|
||||
cp -r Faenza{,-Dark,-Darker,-Darkest,-Ambiance,-Radiance} $pkg/share/icons/
|
||||
cp -r emesene $pkg/share/
|
||||
|
||||
cp debian/copyright $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
742c11438fa3a5044765381c4a2a2f9bef3d997ab3bf9a2c2be8fc25f7a9cf95a25b84e5e0dfeeceaeb4b4c3ed6d98c4be860575cd5bebda59226f26e3ed560b faenza-icon-theme-1.3.tar.lz
|
||||
"
|
34
xfce/garcon/smbuild
Normal file
34
xfce/garcon/smbuild
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=garcon
|
||||
version=4.16.1
|
||||
build=1sml
|
||||
homepage="https://docs.xfce.org/xfce/garcon/start"
|
||||
download="https://archive.xfce.org/xfce/4.16/src/garcon-0.8.0.tar.bz2"
|
||||
desc="Menu implementation for Xfce"
|
||||
requires="libxfce4ui"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
8f1b17daa746bbf8eeddc0eb5a17a20f6b987fd4ac30b0de104c22efe91f293292f3d71c548b14e073b616af4bcc68f2dd3bf950786b3ee78ab118d196711fe4 garcon-4.16.1.tar.lz
|
||||
"
|
34
xfce/libxfce4ui/smbuild
Normal file
34
xfce/libxfce4ui/smbuild
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=libxfce4ui
|
||||
version=4.16.0
|
||||
build=1sml
|
||||
homepage="https://docs.xfce.org/xfce/libxfce4ui/start"
|
||||
download="https://archive.xfce.org/xfce/4.16/src/libxfce4ui-$version.tar.bz2"
|
||||
desc="Xfce widget library"
|
||||
requires="libsm libepoxy libxfce4util xfconf gtk3"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make -j1 install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
2a4fa253b954e72a5183c1ede7a101b1469e289d4e6bc24e5e7015160fe3393ca7ddc727fcd1b68cad46fb7d1105867ac42cf3c7ffdb339f4c64de2f2f59cd04 libxfce4ui-4.16.0.tar.lz
|
||||
"
|
35
xfce/libxfce4util/smbuild
Normal file
35
xfce/libxfce4util/smbuild
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=libxfce4util
|
||||
version=4.16.0
|
||||
build=1sml
|
||||
homepage="https://www.xfce.org"
|
||||
download="https://archive.xfce.org/xfce/4.16/src/libxfce4util-$version.tar.bz2"
|
||||
desc="Basic non-GUI utility library for Xfce"
|
||||
requires="glib"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
db9d3da4dda73684ca02eb0ee26ad0120c606095cbacf1264ef0008c3b2dcbda2b2d7f367c4ed442cf4337f939f9c2768fdcc9bee945151612d9c8cc64c1628f libxfce4util-4.16.0.tar.lz
|
||||
"
|
33
xfce/mousepad/smbuild
Normal file
33
xfce/mousepad/smbuild
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
||||
app=mousepad
|
||||
version=0.5.8
|
||||
build=1sml
|
||||
homepage="https://docs.xfce.org/apps/mousepad/start"
|
||||
download="https://archive.xfce.org/src/apps/mousepad/0.5/mousepad-$version.tar.bz2"
|
||||
desc="Fast, easy-to-use text editor for Xfce"
|
||||
requires="desktop-file-utils gspell"
|
||||
|
||||
prepbuilddir() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--prefix=""
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
206054ccfa94e587410c4a90d22d57356c731d52a364f165866f26876848fd78d4a889fd78361fbd6a6a0a6a035e2bc2836739be0f55a5e6b118f69f3f660ba3 mousepad-0.5.8.tar.lz
|
||||
"
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue