Added net section
This commit is contained in:
parent
0360d5f231
commit
a4a2602654
304 changed files with 49024 additions and 0 deletions
104
net/.buildlist.net
Normal file
104
net/.buildlist.net
Normal file
|
@ -0,0 +1,104 @@
|
|||
fail2ban
|
||||
avahi
|
||||
distcc
|
||||
x11vnc
|
||||
bwm-ng
|
||||
netcat
|
||||
ppp
|
||||
rp-pppoe
|
||||
wireless-tools
|
||||
hostname
|
||||
ethtool
|
||||
openntpd
|
||||
iproute2
|
||||
openvpn
|
||||
rsync
|
||||
darkstat
|
||||
ifstat
|
||||
iputils
|
||||
nload
|
||||
tcpdump
|
||||
whois
|
||||
iftop
|
||||
mailcheck
|
||||
vnstat
|
||||
smstools
|
||||
minicom
|
||||
sshfs
|
||||
iw
|
||||
openssh
|
||||
nmap
|
||||
mktorrent
|
||||
rtorrent
|
||||
wget
|
||||
dovecot
|
||||
znc
|
||||
postfix
|
||||
nginx
|
||||
fcgi
|
||||
fcgiwrap
|
||||
rtl-sdr
|
||||
weechat
|
||||
bindutils
|
||||
dump1090
|
||||
irssi
|
||||
cgit
|
||||
darkhttpd
|
||||
lynx
|
||||
xdg-utils
|
||||
tor
|
||||
transmission
|
||||
cyrus-sasl
|
||||
mutt
|
||||
proftpd
|
||||
libmicrohttpd
|
||||
motion
|
||||
comgt
|
||||
samba3
|
||||
cifs-utils
|
||||
dnsmasq
|
||||
unbound
|
||||
wpa_supplicant
|
||||
hostapd
|
||||
sylpheed
|
||||
minidlna
|
||||
hexchat
|
||||
remotefs
|
||||
uget
|
||||
x2x
|
||||
maccalc
|
||||
fping
|
||||
mtr
|
||||
aircrack-ng
|
||||
lftp
|
||||
autossh
|
||||
gtk-vnc
|
||||
privoxy
|
||||
conky
|
||||
cups
|
||||
ghostscript
|
||||
poppler
|
||||
poppler-data
|
||||
evince
|
||||
cups-filters
|
||||
samba4
|
||||
rpcbind
|
||||
nfs-utils
|
||||
net-snmp
|
||||
sane-backends
|
||||
sane-frontends
|
||||
gpsd
|
||||
foxtrotgps
|
||||
vinagre
|
||||
wavemon
|
||||
macchanger
|
||||
dhcpcd
|
||||
geocode-glib
|
||||
geoclue
|
||||
redshift
|
||||
balsa
|
||||
iperf
|
||||
ipset
|
||||
rrdtool
|
||||
php
|
||||
traceroute
|
31
net/aircrack-ng/aircrack-ng.SMBuild
Executable file
31
net/aircrack-ng/aircrack-ng.SMBuild
Executable file
|
@ -0,0 +1,31 @@
|
|||
app=aircrack-ng
|
||||
version=1.6
|
||||
build=1sml
|
||||
homepage="https://www.aircrack-ng.org"
|
||||
download="https://download.aircrack-ng.org/aircrack-ng-1.6.tar.gz"
|
||||
desc="Set of tools for auditing WiFi networks"
|
||||
requires="gcc-libs zlib openssl pcre sqlite libnl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
bc1121538968becf54bd076a998e8ac71e589967bf8fdbf2b1493fd0cea74a5c42673a358ead94ad92d4ca3652db354217f52677ea1b022095d5fef453236f78 aircrack-ng-1.6.tar.lz
|
||||
"
|
32
net/autossh/autossh.SMBuild
Executable file
32
net/autossh/autossh.SMBuild
Executable file
|
@ -0,0 +1,32 @@
|
|||
app=autossh
|
||||
version=1.4g
|
||||
build=1sml
|
||||
homepage="http://www.harding.motd.ca/autossh/"
|
||||
download="https://www.harding.motd.ca/autossh/autossh-1.4g.tgz"
|
||||
desc="Utility to automatically restart SSH sessions and tunnels"
|
||||
requires="musl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tgz
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc
|
||||
|
||||
make
|
||||
install -Dm 755 autossh $pkg/bin/autossh
|
||||
install -Dm 644 autossh.1 $pkg/share/man/man1/autossh.1
|
||||
|
||||
cp README autossh.host rscreen $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
499b560d978736f4e764d5d828282fdaba1cbf94811ae6be0be5434d9c1cdc6ca5513d728b6372aa243843cb1b91e61cfc5fdeb77ddb0b6a7ce027218ba67466 autossh-1.4g.tgz
|
||||
"
|
53
net/avahi/avahi.SMBuild
Executable file
53
net/avahi/avahi.SMBuild
Executable file
|
@ -0,0 +1,53 @@
|
|||
app=avahi
|
||||
version=0.8
|
||||
build=1sml
|
||||
homepage="https://www.avahi.org/"
|
||||
download="http://avahi.org/download/avahi-0.8.tar.gz"
|
||||
desc="Implementation of service discovery aka zeroconf"
|
||||
requires="glib dbus expat gdbm libcap libdaemon libevent"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--sysconfdir=/etc \
|
||||
--with-distro=slackware \
|
||||
--disable-static \
|
||||
--enable-glib \
|
||||
--enable-gtk3 \
|
||||
--disable-gobject \
|
||||
--disable-qt5 \
|
||||
--disable-python \
|
||||
--disable-pygobject \
|
||||
--disable-python-dbus \
|
||||
--disable-mono \
|
||||
--disable-monodoc \
|
||||
--disable-manpages \
|
||||
--disable-xmltoman \
|
||||
--disable-tests \
|
||||
--disable-doxygen-doc \
|
||||
--disable-nls \
|
||||
--with-autoipd-user=avahi \
|
||||
--with-autoipd-group=avahi \
|
||||
--enable-compat-libdns_sd
|
||||
|
||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||
make || true
|
||||
cd avahi-ui && make LDFLAGS="-L../avahi-glib" LIBS="-lavahi-glib" && cd ..
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c6ba76feb6e92f70289f94b3bf12e5f5c66c11628ce0aeb3cadfb72c13a5d1a9bd56d71bdf3072627a76cd103b9b056d9131aa49ffe11fa334c24ab3b596c7de avahi-0.8.tar.gz
|
||||
"
|
38
net/balsa/balsa.SMBuild
Executable file
38
net/balsa/balsa.SMBuild
Executable file
|
@ -0,0 +1,38 @@
|
|||
app=balsa
|
||||
version=2.5.11
|
||||
build=1sml
|
||||
homepage="https://pawsa.fedorapeople.org/balsa/"
|
||||
download="https://pawsa.fedorapeople.org/balsa/balsa-2.5.11.tar.bz2"
|
||||
desc="GTK+3 mail client with support for GPG"
|
||||
requires="gcc-libs pcre netbsd-curses libpng libical libnotify gnutls libgpg-error sqlite icu libogg libvorbis gtk3 graphite2"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $srcdir/misc.c.patch
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--with-html-widget=no \
|
||||
--with-sqlite \
|
||||
--with-libsecret \
|
||||
--with-canberra \
|
||||
--with-gcr
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
cf29c86424b5323db4c85743c193b57e9515ffd62f6774c5dffa4cd41d84301333d9fdca804d72c6a79d2228ec75ff1b4f0548a2239e7cc89dfdf19abe74035b balsa-2.5.11.tar.lz
|
||||
4e01113f17e8a3feef4a231ece5babc93d67b0caf7484aba69cd5a9fbee7e70062e78e279b5b3dfe4936e9596706ce2b4f7dde89bd50fa1f5b36d10578cfdec4 misc.c.patch
|
||||
"
|
1
net/balsa/doinst.sh
Normal file
1
net/balsa/doinst.sh
Normal file
|
@ -0,0 +1 @@
|
|||
[ -x /etc/rc.d/rc.gtk ] && /etc/rc.d/rc.gtk
|
10
net/balsa/misc.c.patch
Normal file
10
net/balsa/misc.c.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/libbalsa/misc.c 2020-06-27 12:47:54.228984871 +0530
|
||||
+++ b/libbalsa/misc.c 2020-06-27 12:47:40.385206539 +0530
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/utsname.h>
|
||||
+#include <asm-generic/fcntl.h>
|
||||
|
||||
#include "libbalsa.h"
|
||||
#include "libbalsa_private.h"
|
37
net/bindutils/bindutils.SMBuild
Executable file
37
net/bindutils/bindutils.SMBuild
Executable file
|
@ -0,0 +1,37 @@
|
|||
app=bindutils
|
||||
version=9.16.2
|
||||
build=1sml
|
||||
homepage="https://www.isc.org/bind/"
|
||||
download="https://ftp.isc.org/isc/bind9/9.16.2/bind-9.16.2.tar.xz"
|
||||
desc="domain utility collection packaged separately from BIND source"
|
||||
requires="libxml2 openssl libuv"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf bind-$version
|
||||
|
||||
tar xf $srcdir/bind-$version.tar.?z
|
||||
cd bind-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--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
|
||||
"
|
286
net/bwm-ng/001-Use-static-inline-instead-of-inline.patch
Normal file
286
net/bwm-ng/001-Use-static-inline-instead-of-inline.patch
Normal file
|
@ -0,0 +1,286 @@
|
|||
From d5daf15c2098040b8b01753d3cdce8c1c79fc528 Mon Sep 17 00:00:00 2001
|
||||
From: David Seifert <soap@gentoo.org>
|
||||
Date: Fri, 10 Feb 2017 21:30:49 +0100
|
||||
Subject: [PATCH] Use `static inline` instead of `inline`
|
||||
|
||||
`inline` by itself is not portably guaranteed to emit
|
||||
an external definition when needed in C99. The current
|
||||
code base implicitly relies on GNU89 inline semantics,
|
||||
which _always_ emit an external definition. More recent
|
||||
versions of GCC and Clang switch to C99/C11 inline semantics
|
||||
by default, which fails with undefined references.
|
||||
|
||||
See also:
|
||||
* http://www.greenend.org.uk/rjk/tech/inline.html
|
||||
* https://clang.llvm.org/compatibility.html#inline
|
||||
* http://blahg.josefsipek.net/?p=529
|
||||
---
|
||||
src/bwm-ng.c | 4 ++--
|
||||
src/help.c | 4 ++--
|
||||
src/options.c | 16 ++++++++--------
|
||||
src/output.c | 22 +++++++++++-----------
|
||||
src/process.c | 28 ++++++++++++++--------------
|
||||
5 files changed, 37 insertions(+), 37 deletions(-)
|
||||
|
||||
diff --git a/src/bwm-ng.c b/src/bwm-ng.c
|
||||
index ad94ccd..c2ab0db 100644
|
||||
--- a/src/bwm-ng.c
|
||||
+++ b/src/bwm-ng.c
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
/* handle interrupt signal */
|
||||
void sigint(int sig) FUNCATTR_NORETURN;
|
||||
-inline void init(void);
|
||||
+static inline void init(void);
|
||||
|
||||
/* clear stuff and exit */
|
||||
#ifdef __STDC__
|
||||
@@ -98,7 +98,7 @@ void sigint(int sig) {
|
||||
deinit(0, NULL);
|
||||
}
|
||||
|
||||
-inline void init(void) {
|
||||
+static inline void init(void) {
|
||||
if_count=0;
|
||||
delay=500;
|
||||
#if EXTENDED_STATS
|
||||
diff --git a/src/help.c b/src/help.c
|
||||
index 7fd9ca4..4853297 100644
|
||||
--- a/src/help.c
|
||||
+++ b/src/help.c
|
||||
@@ -24,9 +24,9 @@
|
||||
#include "global_vars.h"
|
||||
#include "help.h"
|
||||
|
||||
-inline void print_help_line(const char *short_c,const char * long_c,const char *descr);
|
||||
+static inline void print_help_line(const char *short_c,const char * long_c,const char *descr);
|
||||
|
||||
-inline void print_help_line(const char *short_c,const char * long_c,const char *descr) {
|
||||
+static inline void print_help_line(const char *short_c,const char * long_c,const char *descr) {
|
||||
#ifdef LONG_OPTIONS
|
||||
printf(" %-23s",long_c);
|
||||
#else
|
||||
diff --git a/src/options.c b/src/options.c
|
||||
index 1b65eeb..30dccb4 100644
|
||||
--- a/src/options.c
|
||||
+++ b/src/options.c
|
||||
@@ -30,12 +30,12 @@ static char* getToken(char** str, const char* delims);
|
||||
char *trim_whitespace(char *str);
|
||||
int read_config(const char *config_file);
|
||||
#endif
|
||||
-inline int str2output_unit(char *optarg);
|
||||
+static inline int str2output_unit(char *optarg);
|
||||
#if EXTENDED_STATS
|
||||
-inline int str2output_type(char *optarg);
|
||||
+static inline int str2output_type(char *optarg);
|
||||
#endif
|
||||
-inline int str2out_method(char *optarg);
|
||||
-inline int str2in_method(char *optarg);
|
||||
+static inline int str2out_method(char *optarg);
|
||||
+static inline int str2in_method(char *optarg);
|
||||
|
||||
#ifdef CONFIG_FILE
|
||||
/******************************************************************************
|
||||
@@ -65,7 +65,7 @@ static char* getToken(char** str, const char* delims) {
|
||||
/******************************************************************************/
|
||||
#endif
|
||||
|
||||
-inline int str2output_unit(char *optarg) {
|
||||
+static inline int str2output_unit(char *optarg) {
|
||||
if (optarg) {
|
||||
if (!strcasecmp(optarg,"bytes")) return BYTES_OUT;
|
||||
if (!strcasecmp(optarg,"bits")) return BITS_OUT;
|
||||
@@ -76,7 +76,7 @@ inline int str2output_unit(char *optarg) {
|
||||
}
|
||||
|
||||
#if EXTENDED_STATS
|
||||
-inline int str2output_type(char *optarg) {
|
||||
+static inline int str2output_type(char *optarg) {
|
||||
if (optarg) {
|
||||
if (!strcasecmp(optarg,"rate")) return RATE_OUT;
|
||||
if (!strcasecmp(optarg,"max")) return MAX_OUT;
|
||||
@@ -87,7 +87,7 @@ inline int str2output_type(char *optarg) {
|
||||
}
|
||||
#endif
|
||||
|
||||
-inline int str2out_method(char *optarg) {
|
||||
+static inline int str2out_method(char *optarg) {
|
||||
if (optarg) {
|
||||
if (!strcasecmp(optarg,"plain")) return PLAIN_OUT;
|
||||
#ifdef HAVE_CURSES
|
||||
@@ -109,7 +109,7 @@ inline int str2out_method(char *optarg) {
|
||||
}
|
||||
|
||||
|
||||
-inline int str2in_method(char *optarg) {
|
||||
+static inline int str2in_method(char *optarg) {
|
||||
if (optarg) {
|
||||
#ifdef PROC_NET_DEV
|
||||
if (!strcasecmp(optarg,"proc")) return PROC_IN;
|
||||
diff --git a/src/output.c b/src/output.c
|
||||
index 653e444..1425b3c 100644
|
||||
--- a/src/output.c
|
||||
+++ b/src/output.c
|
||||
@@ -25,13 +25,13 @@
|
||||
#include "output.h"
|
||||
|
||||
inline static const char *output_type2str(void);
|
||||
-inline const char *input2str(void);
|
||||
-inline const char *show_all_if2str(void);
|
||||
-inline ullong direction2value(char mode,struct inout_long stats);
|
||||
+static inline const char *input2str(void);
|
||||
+static inline const char *show_all_if2str(void);
|
||||
+static inline ullong direction2value(char mode,struct inout_long stats);
|
||||
#if EXTENDED_STATS
|
||||
-inline double direction_max2value(char mode,struct inouttotal_double stats,int items);
|
||||
+static inline double direction_max2value(char mode,struct inouttotal_double stats,int items);
|
||||
#endif
|
||||
-inline char *dyn_byte_value2str(double value,char *str,int buf_size);
|
||||
+static inline char *dyn_byte_value2str(double value,char *str,int buf_size);
|
||||
char *values2str(char mode,t_iface_speed_stats stats,t_iface_stats full_stats,float multiplier,char *str,int buf_size);
|
||||
|
||||
inline static const char *output_type2str(void) {
|
||||
@@ -59,7 +59,7 @@ inline static const char *output_type2str(void) {
|
||||
}
|
||||
|
||||
|
||||
-inline const char *input2str(void) {
|
||||
+static inline const char *input2str(void) {
|
||||
switch (input_method) {
|
||||
#ifdef SYSCTL
|
||||
case SYSCTL_IN:
|
||||
@@ -121,7 +121,7 @@ inline const char *input2str(void) {
|
||||
return "";
|
||||
}
|
||||
|
||||
-inline const char *show_all_if2str(void) {
|
||||
+static inline const char *show_all_if2str(void) {
|
||||
switch (show_all_if) {
|
||||
case 1:
|
||||
return " (all)";
|
||||
@@ -262,7 +262,7 @@ int print_header(int option) {
|
||||
}
|
||||
|
||||
|
||||
-inline ullong direction2value(char mode,struct inout_long stats) {
|
||||
+static inline ullong direction2value(char mode,struct inout_long stats) {
|
||||
switch (mode) {
|
||||
case 0:
|
||||
return stats.in;
|
||||
@@ -275,7 +275,7 @@ inline ullong direction2value(char mode,struct inout_long stats) {
|
||||
}
|
||||
|
||||
#if EXTENDED_STATS
|
||||
-inline double direction_max2value(char mode,struct inouttotal_double stats,int items) {
|
||||
+static inline double direction_max2value(char mode,struct inouttotal_double stats,int items) {
|
||||
switch (mode) {
|
||||
case 0:
|
||||
return (double)(stats.in/items);
|
||||
@@ -288,7 +288,7 @@ inline double direction_max2value(char mode,struct inouttotal_double stats,int i
|
||||
}
|
||||
#endif
|
||||
|
||||
-inline char *dyn_byte_value2str(double value,char *str,int buf_size) {
|
||||
+static inline char *dyn_byte_value2str(double value,char *str,int buf_size) {
|
||||
if (dynamic) {
|
||||
if (value<1024)
|
||||
snprintf(str,buf_size,"%15.2f ",value);
|
||||
@@ -306,7 +306,7 @@ inline char *dyn_byte_value2str(double value,char *str,int buf_size) {
|
||||
return str;
|
||||
}
|
||||
|
||||
-inline char *dyn_bit_value2str(double value,char *str,int buf_size) {
|
||||
+static inline char *dyn_bit_value2str(double value,char *str,int buf_size) {
|
||||
if (dynamic) {
|
||||
if (value<1000)
|
||||
snprintf(str,buf_size,"%15.2f ",value);
|
||||
diff --git a/src/process.c b/src/process.c
|
||||
index 59eccf0..d06c6dd 100644
|
||||
--- a/src/process.c
|
||||
+++ b/src/process.c
|
||||
@@ -26,19 +26,19 @@
|
||||
|
||||
short show_iface(char *instr, char *searchstr,char iface_is_up);
|
||||
#if HAVE_GETTIMEOFDAY
|
||||
-inline long tvdiff(struct timeval newer, struct timeval older);
|
||||
+static inline long tvdiff(struct timeval newer, struct timeval older);
|
||||
float get_time_delay(int iface_num);
|
||||
#endif
|
||||
-inline ullong calc_new_values(ullong new, ullong old);
|
||||
+static inline ullong calc_new_values(ullong new, ullong old);
|
||||
t_iface_speed_stats convert2calced_values(t_iface_speed_stats new, t_iface_speed_stats old);
|
||||
t_iface_speed_stats convert2calced_disk_values(t_iface_speed_stats new, t_iface_speed_stats old);
|
||||
#if EXTENDED_STATS
|
||||
-inline void sub_avg_values(struct inouttotal_double *values,struct inouttotal_double data);
|
||||
-inline void add_avg_values(struct inouttotal_double *values,struct inouttotal_double data);
|
||||
-inline void save_avg_values(struct inouttotal_double *values,struct inouttotal_double *data,struct inout_long calced_stats,float multiplier);
|
||||
+static inline void sub_avg_values(struct inouttotal_double *values,struct inouttotal_double data);
|
||||
+static inline void add_avg_values(struct inouttotal_double *values,struct inouttotal_double data);
|
||||
+static inline void save_avg_values(struct inouttotal_double *values,struct inouttotal_double *data,struct inout_long calced_stats,float multiplier);
|
||||
void save_avg(struct t_avg *avg,struct iface_speed_stats calced_stats,float multiplier);
|
||||
-inline void save_sum(struct inout_long *stats,struct inout_long new_stats_values);
|
||||
-inline void save_max(struct inouttotal_double *stats,struct inout_long calced_stats,float multiplier);
|
||||
+static inline void save_sum(struct inout_long *stats,struct inout_long new_stats_values);
|
||||
+static inline void save_max(struct inouttotal_double *stats,struct inout_long calced_stats,float multiplier);
|
||||
#endif
|
||||
|
||||
/* returns the whether to show the iface or not
|
||||
@@ -74,7 +74,7 @@ short show_iface(char *instr, char *searchstr,char iface_is_up) {
|
||||
|
||||
#if HAVE_GETTIMEOFDAY
|
||||
/* Returns: the time difference in milliseconds. */
|
||||
-inline long tvdiff(struct timeval newer, struct timeval older) {
|
||||
+static inline long tvdiff(struct timeval newer, struct timeval older) {
|
||||
return labs((newer.tv_sec-older.tv_sec)*1000+
|
||||
(newer.tv_usec-older.tv_usec)/1000);
|
||||
}
|
||||
@@ -95,7 +95,7 @@ float get_time_delay(int iface_num) {
|
||||
#endif
|
||||
|
||||
/* basically new-old, but handles "overflow" of source aswell */
|
||||
-inline ullong calc_new_values(ullong new, ullong old) {
|
||||
+static inline ullong calc_new_values(ullong new, ullong old) {
|
||||
/* FIXME: WRAP_AROUND _might_ be wrong for libstatgrab, where the type is always long long */
|
||||
return (new>=old) ? (ullong)(new-old) : (ullong)((
|
||||
#ifdef HAVE_LIBKSTAT
|
||||
@@ -136,13 +136,13 @@ t_iface_speed_stats convert2calced_disk_values(t_iface_speed_stats new, t_iface_
|
||||
|
||||
#if EXTENDED_STATS
|
||||
/* sub old values from cached for avg stats */
|
||||
-inline void sub_avg_values(struct inouttotal_double *values,struct inouttotal_double data) {
|
||||
+static inline void sub_avg_values(struct inouttotal_double *values,struct inouttotal_double data) {
|
||||
values->in-=data.in;
|
||||
values->out-=data.out;
|
||||
values->total-=data.total;
|
||||
}
|
||||
|
||||
-inline void add_avg_values(struct inouttotal_double *values,struct inouttotal_double data) {
|
||||
+static inline void add_avg_values(struct inouttotal_double *values,struct inouttotal_double data) {
|
||||
values->in+=data.in;
|
||||
values->out+=data.out;
|
||||
values->total+=data.total;
|
||||
@@ -151,7 +151,7 @@ inline void add_avg_values(struct inouttotal_double *values,struct inouttotal_do
|
||||
|
||||
/* put new-old bytes in inout_long struct into a inouttotal_double struct
|
||||
* and add values to cached .value struct */
|
||||
-inline void save_avg_values(struct inouttotal_double *values,struct inouttotal_double *data,struct inout_long calced_stats,float multiplier) {
|
||||
+static inline void save_avg_values(struct inouttotal_double *values,struct inouttotal_double *data,struct inout_long calced_stats,float multiplier) {
|
||||
data->in=calced_stats.in*multiplier;
|
||||
data->out=calced_stats.out*multiplier;
|
||||
data->total=(calced_stats.in+calced_stats.out)*multiplier;
|
||||
@@ -201,13 +201,13 @@ void save_avg(struct t_avg *avg,struct iface_speed_stats calced_stats,float mult
|
||||
}
|
||||
|
||||
/* add current in and out bytes to totals struct */
|
||||
-inline void save_sum(struct inout_long *stats,struct inout_long new_stats_values) {
|
||||
+static inline void save_sum(struct inout_long *stats,struct inout_long new_stats_values) {
|
||||
stats->in+=new_stats_values.in;
|
||||
stats->out+=new_stats_values.out;
|
||||
}
|
||||
|
||||
/* lookup old max values and save new if higher */
|
||||
-inline void save_max(struct inouttotal_double *stats,struct inout_long calced_stats,float multiplier) {
|
||||
+static inline void save_max(struct inouttotal_double *stats,struct inout_long calced_stats,float multiplier) {
|
||||
if (multiplier*calced_stats.in > stats->in)
|
||||
stats->in=multiplier*calced_stats.in;
|
||||
if (multiplier*calced_stats.out>stats->out)
|
36
net/bwm-ng/bwm-ng.SMBuild
Executable file
36
net/bwm-ng/bwm-ng.SMBuild
Executable file
|
@ -0,0 +1,36 @@
|
|||
app=bwm-ng
|
||||
version=0.6.1
|
||||
build=1sml
|
||||
homepage="https://github.com/vgropp/bwm-ng"
|
||||
download="https://github.com/vgropp/bwm-ng/archive/refs/tags/v0.6.1.tar.gz"
|
||||
desc="Console-based live network and disk io bandwidth monitor for Linux"
|
||||
requires="netbsd-curses"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $srcdir/001-Use-static-inline-instead-of-inline.patch
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--with-ncurses \
|
||||
--with-procnetdev \
|
||||
--with-partitions
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
926cac1cde3e752c0f4d62fa11587a030c50606871647e2a2a0a43b738decaf4ecaedf0105cbc955bf3ef8702e98f32956470e4211172fbeb1f0089dcc2a585e bwm-ng-0.6.1.tar.lz
|
||||
53e137810d3e2a278aa68e179f0638e085f920fa75890c2315d534353dd47b08057d757b2a0700d246cc3f4e9aee17a6c172bec34e69bf755460b156f518d801 001-Use-static-inline-instead-of-inline.patch
|
||||
"
|
38
net/cgit/cgit.SMBuild
Executable file
38
net/cgit/cgit.SMBuild
Executable file
|
@ -0,0 +1,38 @@
|
|||
app=cgit
|
||||
version=1.2.3
|
||||
GITV=2.28.1
|
||||
build=1sml
|
||||
homepage="https://git.zx2c4.com/cgit/about/"
|
||||
download="https://git.zx2c4.com/cgit/snapshot/cgit-1.2.3.tar.xz"
|
||||
desc="CGI web frontend for git repositories written in C"
|
||||
requires="zlib git"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
export NO_LUA=1
|
||||
export NO_REGEX=NeedsStartEnd
|
||||
[ -d git ] && rm -rf git
|
||||
tar -xf "$srcdir/git-$GITV.tar.lz" && mv git-$GITV git
|
||||
|
||||
make
|
||||
make install prefix="/" DESTDIR="$pkg"
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
install -Dm 644 $srcdir/cgitrc $pkg/etc/cgitrc.new
|
||||
|
||||
mkdir -p $pkg/var/cache/cgit
|
||||
chmod 755 $pkg/var/cache/cgit
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5b11fee74514e52b40f534b38b9ebe271ac707b1e560a7221b0f6b3fc422b339024ac955e3bba566bf20d70be0c7a99924db95b68483c3b0b6884ef89dbbec95 cgit-1.2.3.tar.lz
|
||||
c7f768c987185b7af9f971577d2ce335962c8c60b50c167d8a19f937e40279eaa669a0265d5f7369041ab491dbafc62231041e362df6ce5866d7d4cd6ba66021 git-2.28.1.tar.lz
|
||||
"
|
16
net/cgit/cgitrc
Normal file
16
net/cgit/cgitrc
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Sample /etc/cgitrc file
|
||||
|
||||
css=/cgit.css
|
||||
logo=/cgit.png
|
||||
|
||||
virtual-root=/
|
||||
snapshots=tar.xz tar.bz2
|
||||
|
||||
enable-log-linecount=1
|
||||
enable-log-filecount=1
|
||||
|
||||
# repository specific data
|
||||
repo.url=smlinux
|
||||
repo.path=/path/to/.git/dir
|
||||
repo.desc=smlinux - a musl-libc based distro for x86_64 and ARM64
|
||||
repo.owner=smlinux
|
13
net/cgit/doinst.sh
Normal file
13
net/cgit/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/cgitrc.new
|
38
net/cifs-utils/cifs-utils.SMBuild
Executable file
38
net/cifs-utils/cifs-utils.SMBuild
Executable file
|
@ -0,0 +1,38 @@
|
|||
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-6.8.tar.bz2"
|
||||
desc="Utilities for managing CIFS filesystems"
|
||||
requires="libcap"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $srcdir/musl-fix-includes.patch
|
||||
patch -p1 < $srcdir/xattr_size_max.patch
|
||||
|
||||
./configure \
|
||||
--prefix=""
|
||||
|
||||
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
|
||||
"
|
11
net/cifs-utils/musl-fix-includes.patch
Normal file
11
net/cifs-utils/musl-fix-includes.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- cifs-utils-6.2.orig/mount.h
|
||||
+++ cifs-utils-6.2/mount.h
|
||||
@@ -20,6 +20,8 @@
|
||||
#ifndef _MOUNT_H_
|
||||
#define _MOUNT_H_
|
||||
|
||||
+#include <paths.h>
|
||||
+
|
||||
/* exit status - bits below are ORed */
|
||||
#define EX_USAGE 1 /* incorrect invocation or permission */
|
||||
#define EX_SYSERR 2 /* out of memory, cannot fork, ... */
|
32
net/cifs-utils/xattr_size_max.patch
Normal file
32
net/cifs-utils/xattr_size_max.patch
Normal file
|
@ -0,0 +1,32 @@
|
|||
diff --git a/getcifsacl.c b/getcifsacl.c
|
||||
index f08cdea..5c46999 100644
|
||||
--- a/getcifsacl.c
|
||||
+++ b/getcifsacl.c
|
||||
@@ -38,6 +38,11 @@
|
||||
#include "cifsacl.h"
|
||||
#include "idmap_plugin.h"
|
||||
|
||||
+#ifdef __linux__
|
||||
+#include <linux/limits.h> /* for XATTR_SIZE_MAX */
|
||||
+#include <endian.h> /* le16toh, le32toh etc */
|
||||
+#endif
|
||||
+
|
||||
static void *plugin_handle;
|
||||
static bool plugin_loaded;
|
||||
|
||||
diff --git a/setcifsacl.c b/setcifsacl.c
|
||||
index ba34403..64e6eaa 100644
|
||||
--- a/setcifsacl.c
|
||||
+++ b/setcifsacl.c
|
||||
@@ -39,6 +39,11 @@
|
||||
#include "cifsacl.h"
|
||||
#include "idmap_plugin.h"
|
||||
|
||||
+#ifdef __linux__
|
||||
+#include <linux/limits.h> /* for XATTR_SIZE_MAX */
|
||||
+#include <endian.h> /* le16toh, le32toh etc */
|
||||
+#endif
|
||||
+
|
||||
enum setcifsacl_actions {
|
||||
ActUnknown = -1,
|
||||
ActDelete,
|
105
net/comgt/002-termios.patch
Normal file
105
net/comgt/002-termios.patch
Normal file
|
@ -0,0 +1,105 @@
|
|||
--- a/comgt.c
|
||||
+++ b/comgt.c
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
-#include <termio.h>
|
||||
+#include <termios.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
@@ -81,7 +81,7 @@ char token[MAXTOKEN]; /* For gettoken(
|
||||
char scriptfile[MAXPATH]; /* Script file name */
|
||||
char scriptfilepath[MAXPATH]; /* temp storage for full path */
|
||||
BOOL verbose=0; /* Log actions */
|
||||
-struct termio cons, stbuf, svbuf; /* termios: svbuf=before, stbuf=while */
|
||||
+struct termios cons, stbuf, svbuf; /* termios: svbuf=before, stbuf=while */
|
||||
int comfd=0; /* Communication file descriptor. Defaults to stdin. */
|
||||
char msg[STRINGL]; /* Massage messages here */
|
||||
int preturn,returns[MAXGOSUBS];
|
||||
@@ -172,7 +172,7 @@ void dotestkey(void) {
|
||||
|
||||
/* Exit after resetting terminal settings */
|
||||
void ext(long xtc) {
|
||||
- ioctl(1, TCSETA, &cons);
|
||||
+ ioctl(1, TCSETS, &cons);
|
||||
exit(xtc);
|
||||
}
|
||||
|
||||
@@ -920,24 +920,24 @@ BOOL getonoroff(void) {
|
||||
void setcom(void) {
|
||||
stbuf.c_cflag &= ~(CBAUD | CSIZE | CSTOPB | CLOCAL | PARENB);
|
||||
stbuf.c_cflag |= (speed | bits | CREAD | clocal | parity | stopbits );
|
||||
- if (ioctl(comfd, TCSETA, &stbuf) < 0) {
|
||||
+ if (ioctl(comfd, TCSETS, &stbuf) < 0) {
|
||||
serror("Can't ioctl set device",1);
|
||||
}
|
||||
}
|
||||
|
||||
void doset(void) {
|
||||
- struct termio console;
|
||||
+ struct termios console;
|
||||
int a,b;
|
||||
gettoken();
|
||||
if(strcmp(token,"echo")==0) {
|
||||
a=0;
|
||||
if(getonoroff()) a=ECHO|ECHOE;
|
||||
- if(ioctl(0, TCGETA, &console)<0) {
|
||||
+ if(ioctl(0, TCGETS, &console)<0) {
|
||||
serror("Can't ioctl FD zero!\n",2);
|
||||
}
|
||||
console.c_lflag &= ~(ECHO | ECHOE);
|
||||
console.c_lflag |= a;
|
||||
- ioctl(0, TCSETA, &console);
|
||||
+ ioctl(0, TCSETS, &console);
|
||||
}
|
||||
else if(strcmp(token,"senddelay")==0) {
|
||||
senddelay=10000L*getdvalue();
|
||||
@@ -1224,7 +1224,7 @@ void doclose(void) {
|
||||
if(strcmp(token,"hardcom")==0) {
|
||||
if(comfd== -1) serror("Com device not open",1);
|
||||
vmsg("Closing device");
|
||||
- if (ioctl(comfd, TCSETA, &svbuf) < 0) {
|
||||
+ if (ioctl(comfd, TCSETS, &svbuf) < 0) {
|
||||
sprintf(msg,"Can't ioctl set device %s.\n",device);
|
||||
serror(msg,1);
|
||||
}
|
||||
@@ -1266,12 +1266,12 @@ void opengt(void) {
|
||||
ext(1);
|
||||
}
|
||||
}
|
||||
- if (ioctl (comfd, TCGETA, &svbuf) < 0) {
|
||||
+ if (ioctl (comfd, TCGETS, &svbuf) < 0) {
|
||||
sprintf(msg,"Can't control %s, please try again.\n",device);
|
||||
serror(msg,1);
|
||||
}
|
||||
setenv("COMGTDEVICE",device,1);
|
||||
- ioctl(comfd, TCGETA, &stbuf);
|
||||
+ ioctl(comfd, TCGETS, &stbuf);
|
||||
speed=stbuf.c_cflag & CBAUD;
|
||||
if (high_speed == 0) strcpy(cspeed,"115200");
|
||||
else strcpy(cspeed,"57600");
|
||||
@@ -1303,11 +1303,11 @@ void opendevice(void) {
|
||||
}
|
||||
else comfd=0;
|
||||
|
||||
- if (ioctl (comfd, TCGETA, &svbuf) < 0) {
|
||||
+ if (ioctl (comfd, TCGETS, &svbuf) < 0) {
|
||||
sprintf(msg,"Can't ioctl get device %s.\n",device);
|
||||
serror(msg,1);
|
||||
}
|
||||
- ioctl(comfd, TCGETA, &stbuf);
|
||||
+ ioctl(comfd, TCGETS, &stbuf);
|
||||
speed=stbuf.c_cflag & CBAUD;
|
||||
switch(speed) {
|
||||
case B0: strcpy(cspeed,"0");break;
|
||||
@@ -1553,7 +1553,7 @@ int main(int argc,char **argv) {
|
||||
skip_default=0;
|
||||
filep=NULL;
|
||||
scriptspace=4096;
|
||||
- ioctl(1, TCGETA, &cons);
|
||||
+ ioctl(1, TCGETS, &cons);
|
||||
if((script=( char *)malloc(scriptspace))==NULL) {
|
||||
serror("Could not malloc()",3);
|
||||
}
|
9
net/comgt/balance.check
Normal file
9
net/comgt/balance.check
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
# We require perl
|
||||
[ ! -f $(which perl) ] && exit
|
||||
dev="/dev/ttyUSB0"
|
||||
otp1=$(ssh root@server comgt -d "$dev" -s ./balance.comgt)
|
||||
otp2=${otp1#*\"}
|
||||
otp3=${otp2%\"*}
|
||||
#echo $otp3
|
||||
perl -e 'print pack("H*", "'$otp3'");' ; echo
|
8
net/comgt/balance.comgt
Normal file
8
net/comgt/balance.comgt
Normal file
|
@ -0,0 +1,8 @@
|
|||
opengt
|
||||
set com 115200n81
|
||||
set senddelay 0.05
|
||||
send "AT+CUSD=1,\"*100#\",15^m"
|
||||
waitfor 10 "CUSD:"
|
||||
get 1 "^m" $s
|
||||
print $s,"\n"
|
||||
exit 0
|
33
net/comgt/comgt.SMBuild
Executable file
33
net/comgt/comgt.SMBuild
Executable file
|
@ -0,0 +1,33 @@
|
|||
app=comgt
|
||||
version=0.32
|
||||
build=1sml
|
||||
homepage="https://sourceforge.net/projects/comgt"
|
||||
download="https://sourceforge.net/projects/comgt/files/comgt/0.32/comgt.0.32.tgz"
|
||||
desc="Utility to interact with 2G, 3G and LTE modems via standard AT command set"
|
||||
requires="musl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf "$app.$version"
|
||||
|
||||
tar xf $srcdir/$app.$version.tgz
|
||||
cd "$app.$version"
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $srcdir/002-termios.patch
|
||||
|
||||
make
|
||||
|
||||
mkdir -p $pkg/bin $pkg/etc/comgt/examples $pkg/share/man/man1
|
||||
cp comgt $pkg/bin/
|
||||
cp *.1 $pkg/share/man/man1/
|
||||
cp scripts/* $pkg/etc/comgt/examples/
|
||||
cp $srcdir/balance.* $pkg/etc/comgt/examples/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
862e52e4904b57e7e7b551da36c82807dbc16ad505b4e5aac0b1a03a2445919e43b9f8e271f046b179348ea733485d0901461512f83165e3e4751b096c43d3aa comgt.0.32.tgz
|
||||
f5fdea56c91badefedd470f3c68acb492b0885bd632f98f2a7c30c23e9bd2641e088da06b6ff276a8e40c796b68985791cf7c30c599543856431f3a9b2e35947 002-termios.patch
|
||||
"
|
46
net/conky/conky.SMBuild
Executable file
46
net/conky/conky.SMBuild
Executable file
|
@ -0,0 +1,46 @@
|
|||
app=conky
|
||||
version=1.11.6
|
||||
build=1sml
|
||||
homepage="https://github.com/brndnmtthws/conky"
|
||||
download="https://github.com/brndnmtthws/conky/archive/refs/tags/v1.11.6.tar.gz"
|
||||
desc="Light-weight system monitor for X"
|
||||
requires="curl lua toluapp imlib2 xorg-server"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
# Don't link with netbsd-curses, as it causes conky to segfault
|
||||
# Also, we are following the old network interface naming scheme
|
||||
|
||||
mkdir -p smbuild && cd smbuild
|
||||
cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX="" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_WLAN=ON \
|
||||
-DBUILD_WEATHER_METAR=ON \
|
||||
-DBUILD_XDBE=ON \
|
||||
-DBUILD_XSHAPE=ON \
|
||||
-DBUILD_CURL=ON \
|
||||
-DBUILD_IMLIB2=ON \
|
||||
-DBUILD_RSS=ON \
|
||||
-DBUILD_LUA_CAIRO=ON \
|
||||
-DBUILD_LUA_IMLIB2=ON \
|
||||
-DDEFAULTNETDEV=eth0 \
|
||||
-DBUILD_NCURSES=OFF
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp ../{LICENSE.*,COPYING} $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
998e7c0d60ecfb6ffb65452f28ff3d2d870c4f6427e9c69d2a2dcd7ef2d4e7107f24acf51a00fec8528d70ef51be92288814030cfabf8ffb097693a848265397 conky-1.11.6.tar.lz
|
||||
"
|
44
net/cups-filters/cups-filters.SMBuild
Executable file
44
net/cups-filters/cups-filters.SMBuild
Executable file
|
@ -0,0 +1,44 @@
|
|||
app=cups-filters
|
||||
version=1.9.0
|
||||
build=1sml
|
||||
homepage="https://www.openprinting.org"
|
||||
download="https://www.openprinting.org/download/cups-filters/cups-filters-1.9.0.tar.xz"
|
||||
desc="Backends and filters for CUPS"
|
||||
requires="dejavu-fonts-ttf libwebp libidn libtasn1 nettle libjpeg-turbo gobject-introspection pcre netbsd-curses glib gmp gnutls zlib imagemagick lcms2 cups poppler qpdf python3"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--libdir=/lib \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static \
|
||||
--without-php \
|
||||
--disable-avahi \
|
||||
--with-browseremoteprotocols=cups \
|
||||
--with-test-font-path=/share/fonts/TTF/DejaVuSans.ttf
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkdir -p $pkg/etc/rc.d
|
||||
#mv $pkg/etc/init.d/cups-browsed $pkg/etc/rc.d/rc.cups-browsed
|
||||
rm -rf $pkg/etc/init.d $pkg/etc/rc{0,2,3,5.d}
|
||||
|
||||
find $pkg/etc -type f -exec mv {} {}.new \;
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
cfe87763a8438f0dbfb386fd82178371d2ad46a30ae64af0ae4c011cbdd61592da819219b0eed9494740460cef83e009c3eb248aea630f4807d14a525ec9da91 cups-filters-1.9.0.tar.lz
|
||||
"
|
28
net/cups-filters/doinst.sh
Normal file
28
net/cups-filters/doinst.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
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...
|
||||
}
|
||||
|
||||
preserve_perms() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
if [ -e $OLD ]; then
|
||||
cp -a $OLD ${NEW}.incoming
|
||||
cat $NEW > ${NEW}.incoming
|
||||
mv ${NEW}.incoming $NEW
|
||||
fi
|
||||
config $NEW
|
||||
}
|
||||
|
||||
config etc/cups/cups-browsed.conf.new
|
||||
config etc/fonts/conf.d/99pdftoopvp.conf.new
|
||||
preserve_perms etc/rc.d/rc.cups-browsed.new
|
||||
|
57
net/cups/cups.SMBuild
Executable file
57
net/cups/cups.SMBuild
Executable file
|
@ -0,0 +1,57 @@
|
|||
app=cups
|
||||
version=2.1.4
|
||||
build=1sml
|
||||
homepage="http://www.cups.org/"
|
||||
download="https://github.com/apple/cups/releases/download/release-2.1.4/cups-2.1.4-source.tar.gz"
|
||||
desc="Common UNIX Printing System"
|
||||
requires="perl openssl gnutls dbus"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version-source.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--libdir=/lib \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static \
|
||||
--enable-ssl \
|
||||
--enable-gnutls=yes \
|
||||
--enable-cdsassl=no \
|
||||
--without-php \
|
||||
--disable-pam \
|
||||
--disable-avahi \
|
||||
--disable-dnssd \
|
||||
--disable-webif \
|
||||
--disable-tcp-wrappers \
|
||||
--without-java \
|
||||
--with-icondir=/share/icons \
|
||||
--with-menudir=/share/applications
|
||||
|
||||
make
|
||||
make BUILDROOT=$pkg install
|
||||
|
||||
cp LICENSE.txt $pkgdocs/
|
||||
|
||||
(
|
||||
cd $pkg/etc/dbus-1/system.d
|
||||
mv cups.conf cups.conf.new
|
||||
cd $pkg/etc/cups
|
||||
for file in *.conf ; do
|
||||
if [ -f $file ] ; then
|
||||
mv $file $file.new
|
||||
fi
|
||||
done
|
||||
)
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ce2ed51f0601af17aeaefd676e56eb4b5acc82a46ecd3273ac034101808ac02795aacd1dd198cdb5b4c389accdd8cd69ca0e5457834bd0c245858299ef0f1e89 cups-2.1.4-source.tar.lz
|
||||
"
|
28
net/cups/doinst.sh
Normal file
28
net/cups/doinst.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
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...
|
||||
}
|
||||
for file in etc/cups/*.new ; do
|
||||
config $file
|
||||
done
|
||||
config etc/dbus-1/system.d/cups.conf.new
|
||||
|
||||
# Leave any new rc.cups with the same permissions as the old one:
|
||||
# This is a kludge, but it's because there's no --reference option
|
||||
# on busybox's 'chmod':
|
||||
if [ -e etc/rc.d/rc.cups ]; then
|
||||
if [ -x etc/rc.d/rc.cups ]; then
|
||||
chmod 755 etc/rc.d/rc.cups.new
|
||||
else
|
||||
chmod 644 etc/rc.d/rc.cups.new
|
||||
fi
|
||||
fi
|
||||
# Then config() it:
|
||||
config etc/rc.d/rc.cups.new
|
34
net/cyrus-sasl/cyrus-sasl.SMBuild
Executable file
34
net/cyrus-sasl/cyrus-sasl.SMBuild
Executable file
|
@ -0,0 +1,34 @@
|
|||
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"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc \
|
||||
--sbindir=/bin
|
||||
|
||||
( cd include ; make makemd5 )
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3111b30c6fd34f16dee2ff9499b09c9d32be2258f5c16ef52d99feff4ba01177929e0ee301d5e06c97ac42f25d72f054c7adebf048156e827659b6a4ba0da1bc cyrus-sasl-2.1.27.tar.lz
|
||||
"
|
18
net/darkhttpd/LICENSE
Normal file
18
net/darkhttpd/LICENSE
Normal file
|
@ -0,0 +1,18 @@
|
|||
darkhttpd - a simple, single-threaded, static content webserver.
|
||||
https://unix4lyfe.org/darkhttpd/
|
||||
Copyright (c) 2003-2016 Emil Mikulic <emikulic@gmail.com>
|
||||
|
||||
Permission to use, copy, modify, and distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the
|
||||
above copyright notice and this permission notice appear in all
|
||||
copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
|
27
net/darkhttpd/darkhttpd.SMBuild
Executable file
27
net/darkhttpd/darkhttpd.SMBuild
Executable file
|
@ -0,0 +1,27 @@
|
|||
app=darkhttpd
|
||||
version=1.12
|
||||
build=1sml
|
||||
homepage="https://unix4lyfe.org/darkhttpd"
|
||||
desc="Simple, secure and lightweight HTTP server"
|
||||
requires="musl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
make
|
||||
install -Dm 755 darkhttpd $pkg/bin/darkhttpd
|
||||
|
||||
cp $srcdir/LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
92a6e317877f325ba8bf297ab855ff71ea233c0b83e1055dacc8fc2ff0b6eb5f11dca814fa2cce5f480294ef615e28e0551599b017a38ba73d2fd9a16a3ba933 darkhttpd-1.12.tar.lz
|
||||
"
|
31
net/darkstat/darkstat.SMBuild
Executable file
31
net/darkstat/darkstat.SMBuild
Executable file
|
@ -0,0 +1,31 @@
|
|||
app=darkstat
|
||||
version=3.0.719
|
||||
build=1sml
|
||||
homepage="https://github.com/emikulic/darkstat"
|
||||
download="https://github.com/emikulic/darkstat/archive/refs/tags/3.0.719.tar.gz"
|
||||
desc="Gathers and displays network interface statistics over HTTP"
|
||||
requires="zlib libpcap libnl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
a859d5c3c484e24479fb61998eca4d25ce4472a8bedced1e51ca8dcbfae4a3627fe066a0f926ebfea5c035cc0efcad23d15a2d5bb1c4d7002dd691f325c46a33 darkstat-3.0.719.tar.lz
|
||||
"
|
39
net/dhcpcd/dhcpcd.SMBuild
Executable file
39
net/dhcpcd/dhcpcd.SMBuild
Executable file
|
@ -0,0 +1,39 @@
|
|||
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"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--libexecdir=/lib/dhcpcd \
|
||||
--datadir=/share \
|
||||
--mandir=/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="
|
||||
ef043dbd45cb6e5cfb407d9835e5fcd4580c4341e37170f2ff26869badf6ae030c477acca15163753e708ae8cadd62fa7d277c8542984b9119b851ed25a3149a dhcpcd-9.1.4.tar.xz
|
||||
"
|
13
net/dhcpcd/doinst.sh
Normal file
13
net/dhcpcd/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/dhcpcd.conf.new
|
36
net/distcc/distcc.SMBuild
Executable file
36
net/distcc/distcc.SMBuild
Executable file
|
@ -0,0 +1,36 @@
|
|||
app=distcc
|
||||
version=3.3.3
|
||||
build=1sml
|
||||
homepage="https://distcc.github.io/"
|
||||
download="https://github.com/distcc/distcc/releases/download/v3.3.3/distcc-3.3.3.tar.gz"
|
||||
desc="Distributed C and C++ compiler and daemon"
|
||||
requires="popt"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
LDFLAGS="-static" \
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--sysconfdir=/etc \
|
||||
--without-libiberty \
|
||||
--disable-Werror \
|
||||
--without-avahi
|
||||
|
||||
make LDFLAGS="-L/lib -static"
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
cf3de9634244f8d8ab008d3a8a6d49eccb27923b3cf2e55ec2d72493981cf95e634c1b51d35e85d8ffb489625aca594a5b3e03143cebaa1d87dc238070976dc1 distcc-3.3.3.tar.lz
|
||||
"
|
31
net/dnsmasq/dnsmasq.SMBuild
Executable file
31
net/dnsmasq/dnsmasq.SMBuild
Executable file
|
@ -0,0 +1,31 @@
|
|||
app=dnsmasq
|
||||
version=2.85
|
||||
build=1sml
|
||||
homepage="https://thekelleys.org.uk/dnsmasq/doc.html"
|
||||
download="https://thekelleys.org.uk/dnsmasq/dnsmasq-2.85.tar.xz"
|
||||
desc="Lightweight DNS and DHCP server suitable for a small network"
|
||||
requires="musl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
SM_BUILDOPTS="-DHAVE_DNSSEC -DHAVE_DBUS -DHAVE_LIBIDN2 -DHAVE_CONNTRACK"
|
||||
make COPTS="$SM_BUILDOPTS"
|
||||
make COPTS="$SM_BUILDOPTS" PREFIX="/" BINDIR="/bin" DESTDIR="$pkg" install
|
||||
|
||||
install -Dm 600 dnsmasq.conf.example $pkg/etc/dnsmasq.conf.new
|
||||
cp COPYING* $pkgdocs/
|
||||
|
||||
preprunitservice dnsmasq down
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
6df1aeee42dbccbe2c6727ca761bbf6efe6eb0af63361984e194ef4c5bde3cd66078aab9e48eac253cd4f1468369b4301df976d87a17cece82317738d95b9ed6 dnsmasq-2.85.tar.lz
|
||||
"
|
52
net/dnsmasq/dnsmasq.SMBuild.CHAOS
Executable file
52
net/dnsmasq/dnsmasq.SMBuild.CHAOS
Executable file
|
@ -0,0 +1,52 @@
|
|||
#!/bin/sh
|
||||
|
||||
. $BUILDVARS
|
||||
|
||||
BUILD=1sml
|
||||
APP=dnsmasq
|
||||
VERSION=2.80
|
||||
PKG=$TMP/package-$APP
|
||||
|
||||
rm -rf "$PKG"
|
||||
mkdir -p $PKG $PKGDEST
|
||||
cd "$TMP"
|
||||
rm -rf "$APP-$VERSION"
|
||||
|
||||
tar -xvf $CWD/$APP-$VERSION.tar.?z || exit 1
|
||||
cd "$APP-$VERSION" || exit 1
|
||||
chown -R root:root .
|
||||
|
||||
# The version will be shown as 9.10.8-P1-Ubuntu when
|
||||
# dig @nameserver VERSION.BIN TXT CHAOS is run
|
||||
# So will AUTHORS.BIND
|
||||
sed -i 's/Simon Kelley/BURP/g' src/option.c
|
||||
sed -i 's/dnsmasq-/9.10.8-P1-/g' src/option.c
|
||||
mv bld/get-version bld/get-version.bak
|
||||
cd bld
|
||||
cat << EOF >>get-version
|
||||
#!/bin/sh
|
||||
echo "Ubuntu"
|
||||
EOF
|
||||
chmod +x get-version
|
||||
cd ../
|
||||
|
||||
make $jobs || exit 1
|
||||
|
||||
mkdir -p $PKG/etc $PKG/bin
|
||||
mkdir -p $PKG/share/man/man8
|
||||
cp man/dnsmasq.8 $PKG/share/man/man8/
|
||||
cp dnsmasq.conf.example $PKG/etc ; chmod 640 $PKG/etc/dnsmasq.conf.example
|
||||
cp src/dnsmasq $PKG/bin ; chmod 755 $PKG/bin/dnsmasq
|
||||
|
||||
install -Dm 755 src/dnsmasq $PKG/bin/dnsmasq
|
||||
install -Dm 644 man/dnsmasq.8 $PKG/share/man/man8/dnsmasq.8
|
||||
install -Dm 600 dnsmasq.conf.example $PKG/etc/dnsmasq.conf.example
|
||||
|
||||
cd $PKG
|
||||
mkdir -p etc/service/dnsmasq var/service
|
||||
install -Dm 755 $CWD/dnsmasq.run etc/service/dnsmasq/run
|
||||
touch etc/service/dnsmasq/down
|
||||
ln -s ../../etc/service/dnsmasq var/service/dnsmasq
|
||||
|
||||
strdoc
|
||||
/bin/makepkg -l y -c n $PKGDEST/$APP-$VERSION-$ARCH-$BUILD.tgz
|
2
net/dnsmasq/dnsmasq.run
Normal file
2
net/dnsmasq/dnsmasq.run
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /bin/dnsmasq -k 2>&1
|
13
net/dnsmasq/doinst.sh
Normal file
13
net/dnsmasq/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/dnsmasq.conf.new
|
13
net/dovecot/doinst.sh
Normal file
13
net/dovecot/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/dovecot/dovecot.conf.new
|
56
net/dovecot/dovecot.SMBuild
Executable file
56
net/dovecot/dovecot.SMBuild
Executable file
|
@ -0,0 +1,56 @@
|
|||
app=dovecot
|
||||
version=2.2.36
|
||||
build=1sml
|
||||
homepage="https://www.dovecot.org/"
|
||||
download="https://dovecot.org/releases/2.2/dovecot-2.2.36.tar.gz"
|
||||
desc="Open-source IMAP and POP3 server written in C"
|
||||
requires="expat libcap"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
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="" \
|
||||
--bindir=/bin \
|
||||
--sbindir=/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 dovecot down
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
d10d0f7d1e5ec393de9d1b3b23e80d905e9c4d7fb864cbefe27e6b359928c08b5a6827f501effaca4eee277ddb3336f0d830c0aee4a81301df962f3f491fbfd8 dovecot-2.2.36.tar.lz
|
||||
"
|
25
net/dovecot/dovecot.conf.sample
Normal file
25
net/dovecot/dovecot.conf.sample
Normal file
|
@ -0,0 +1,25 @@
|
|||
protocols = imap
|
||||
log_path = /proc/self/fd/1
|
||||
mail_location = maildir:~/Maildir
|
||||
auth_mechanisms = plain
|
||||
userdb {
|
||||
driver = passwd
|
||||
}
|
||||
passdb {
|
||||
driver = shadow
|
||||
}
|
||||
service auth {
|
||||
unix_listener /var/spool/postfix/private/auth {
|
||||
mode = 0666
|
||||
user = postfix
|
||||
group = postfix
|
||||
}
|
||||
}
|
||||
service imap-login {
|
||||
inet_listener imap {
|
||||
port=0
|
||||
}
|
||||
}
|
||||
ssl_cipher_list = AES:!SSLv2:!SSLv3:!SRP:!AECDH:!ADH:!PSK:!aECDH:!DSS:-kRSA:+aRSA:+AES256
|
||||
ssl_cert = </etc/dovecot/dovecot.crt
|
||||
ssl_key = </etc/dovecot/dovecot.key
|
2
net/dovecot/dovecot.run
Normal file
2
net/dovecot/dovecot.run
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /bin/dovecot -F 2>&1
|
10
net/dump1090/LICENSE
Normal file
10
net/dump1090/LICENSE
Normal file
|
@ -0,0 +1,10 @@
|
|||
project so I'll be able to address issues and improve it only during
|
||||
free time, however you are incouraged to send pull requests in order to
|
||||
improve the program. A good starting point can be the TODO list included in
|
||||
the source distribution.
|
||||
|
||||
Credits
|
||||
---
|
||||
|
||||
Dump1090 was written by Salvatore Sanfilippo <antirez@gmail.com> and is
|
||||
released under the BSD three clause license.
|
28
net/dump1090/dump1090.SMBuild
Executable file
28
net/dump1090/dump1090.SMBuild
Executable file
|
@ -0,0 +1,28 @@
|
|||
app=dump1090
|
||||
version=1.0
|
||||
build=1sml
|
||||
homepage="https://github.com/antirez/dump1090"
|
||||
desc="Mode S decoder specifically designed for RTLSDR devices"
|
||||
requires="eudev libusb rtl-sdr"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
make
|
||||
|
||||
mkdir -p $pkg/bin
|
||||
cp dump1090 view1090 $pkg/bin/
|
||||
|
||||
cp README.md $srcdir/LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3c1487b04ae641c463bb2742634348ec20e1f24afb09807e8d0b1228f1e7005122aa849fb184b27d8787f4f1b05fa6d9a05011c0fcd51cd1834c3ef888e7e3c0 dump1090-1.0.tar.lz
|
||||
"
|
32
net/ethtool/ethtool.SMBuild
Executable file
32
net/ethtool/ethtool.SMBuild
Executable file
|
@ -0,0 +1,32 @@
|
|||
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-4.18.tar.xz"
|
||||
desc="Tool for examining and tuning a network interface"
|
||||
requires="musl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1bb3123dfab3d0fad3aab9c7767af24fe634d449ce38d10bbfed5cf2839c378a1245c85ed410025a47b6eede8430ace377ecb9460ebcfd6db5148f813152b4cf ethtool-4.18.tar.lz
|
||||
"
|
1
net/evince/doinst.sh
Normal file
1
net/evince/doinst.sh
Normal file
|
@ -0,0 +1 @@
|
|||
[ -x /etc/rc.d/rc.gtk ] && /etc/rc.d/rc.gtk
|
35
net/evince/evince.SMBuild
Executable file
35
net/evince/evince.SMBuild
Executable file
|
@ -0,0 +1,35 @@
|
|||
app=evince
|
||||
version=3.35.92
|
||||
build=1sml
|
||||
homepage="http://projects.gnome.org/evince/"
|
||||
download="https://download.gnome.org/sources/evince/3.35/evince-3.35.92.tar.xz"
|
||||
desc="Gtk-based document viewer with support for multiple formats"
|
||||
requires="libarchive python3 gtk3 libsecret gspell gst-plugins-base"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--libdir=/lib \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-nautilus \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
22e34ed5f739e22de647457676ab192158c08d81fb46d59873bbe2da57c7778244a89cafeeaa6f4350606e81210d6f507f1372bcc99b4a9e3cb59c504edf1153 evince-3.35.92.tar.lz
|
||||
"
|
36
net/fail2ban/doinst.sh
Normal file
36
net/fail2ban/doinst.sh
Normal file
|
@ -0,0 +1,36 @@
|
|||
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...
|
||||
}
|
||||
|
||||
preserve_perms() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
if [ -e $OLD ]; then
|
||||
cp -a $OLD ${NEW}.incoming
|
||||
cat $NEW > ${NEW}.incoming
|
||||
mv ${NEW}.incoming $NEW
|
||||
fi
|
||||
config $NEW
|
||||
}
|
||||
|
||||
preserve_perms etc/rc.d/rc.fail2ban.new
|
||||
config etc/fail2ban/fail2ban.conf.new
|
||||
config etc/fail2ban/jail.conf.new
|
||||
config etc/fail2ban/paths-common.conf.new
|
||||
config etc/fail2ban/paths-smlinux.conf.new
|
||||
|
||||
for conf_file in etc/fail2ban/action.d/*.new; do
|
||||
config $conf_file
|
||||
done
|
||||
for conf_file in etc/fail2ban/filter.d/*.new; do
|
||||
config $conf_file
|
||||
done
|
43
net/fail2ban/fail2ban.SMBuild
Executable file
43
net/fail2ban/fail2ban.SMBuild
Executable file
|
@ -0,0 +1,43 @@
|
|||
app=fail2ban
|
||||
version=0.10.4
|
||||
build=1sml
|
||||
homepage="http://www.fail2ban.org/wiki/index.php/Main_Page"
|
||||
download="https://github.com/fail2ban/fail2ban/archive/refs/tags/0.10.4.tar.gz"
|
||||
desc="Log-based intrusion detection and prevention system written in Python"
|
||||
requires="python3"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
sh fail2ban-2to3
|
||||
python setup.py install --prefix="" --root=$pkg
|
||||
|
||||
# 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}
|
||||
mv $pkg/usr/share/doc/$app/* $pkgdocs/
|
||||
rm -r $pkg/usr
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3f4af84b7e3332b887240c927c1f706d2b3020217df2a68c64897619d54eb6dfa972992e3153f4ea150d025e2c8a2b537da47cf71a6dfee1df3c8d029a6d5f42 fail2ban-0.10.4.tar.gz
|
||||
89c6e4bbb1a01f3f7601372bbd49d72dd6a17a58503cce30f754110cdc8b55fc80dfa21b5e97a16525bd80c7cae961af5024e5cca45d922245eeefa83cb54ef2 jail.conf.patch
|
||||
"
|
11
net/fail2ban/jail.conf.patch
Normal file
11
net/fail2ban/jail.conf.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- jail.conf 2015-06-06 21:28:47.750986224 -0500
|
||||
+++ jail.conf.new 2015-06-06 21:29:11.158336003 -0500
|
||||
@@ -33,7 +33,7 @@
|
||||
[INCLUDES]
|
||||
|
||||
#before = paths-distro.conf
|
||||
-before = paths-debian.conf
|
||||
+before = paths-smlinux.conf
|
||||
|
||||
# The DEFAULT allows a global definition of the options. They can be overridden
|
||||
# in each jail afterwards.
|
32
net/fail2ban/paths-smlinux.conf
Normal file
32
net/fail2ban/paths-smlinux.conf
Normal file
|
@ -0,0 +1,32 @@
|
|||
[INCLUDES]
|
||||
|
||||
before = paths-common.conf
|
||||
|
||||
after = paths-overrides.local
|
||||
|
||||
[DEFAULT]
|
||||
|
||||
syslog_mail = /var/log/maillog
|
||||
|
||||
syslog_mail_warn = /var/log/maillog
|
||||
|
||||
syslog_authpriv = /var/log/secure
|
||||
|
||||
syslog_auth = /var/log/secure
|
||||
|
||||
syslog_user = /var/log/syslog
|
||||
|
||||
syslog_ftp = /var/log/syslog
|
||||
|
||||
syslog_daemon = /var/log/messages
|
||||
|
||||
syslog_local0 = /var/log/messages
|
||||
|
||||
apache_error_log = /var/log/httpd/*error.log
|
||||
|
||||
apache_access_log = /var/log/httpd/*access.log
|
||||
|
||||
# Default for SMLinux
|
||||
# please change according to your proftpd config file.
|
||||
proftpd_log = /var/log/proftpd.log
|
||||
|
69
net/fail2ban/rc.fail2ban
Executable file
69
net/fail2ban/rc.fail2ban
Executable file
|
@ -0,0 +1,69 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2008-2015, Nishant Limbachia, Hoffman Estates, IL, USA
|
||||
# <nishant _AT_ mnspace _DOT_ net>
|
||||
# /etc/rc.d/rc.fail2ban
|
||||
#
|
||||
# start|stop|restart|reload|status|ping fail2ban server
|
||||
#
|
||||
# To start fail2ban automatically at boot, make this file executable:
|
||||
# chmod 755 /etc/rc.d/rc.fail2ban
|
||||
# you must also add this to rc.local for fail2ban to start during boot.
|
||||
|
||||
# default socket file is /var/run/fail2ban/fail2ban.sock which can be
|
||||
# changed via the config file: /etc/fail2ban/fail2ban.conf
|
||||
|
||||
fail2ban_start() {
|
||||
if [ -x /etc/rc.d/rc.fail2ban ]; then
|
||||
echo "Starting fail2ban: "
|
||||
### using -x option to remove any stale socket file.
|
||||
/usr/bin/fail2ban-client -x start
|
||||
fi
|
||||
}
|
||||
|
||||
fail2ban_stop() {
|
||||
echo "Stopping fail2ban"
|
||||
/usr/bin/fail2ban-client stop
|
||||
}
|
||||
|
||||
fail2ban_reload() {
|
||||
echo "Reloading fail2ban"
|
||||
/usr/bin/fail2ban-client reload
|
||||
}
|
||||
|
||||
fail2ban_status() {
|
||||
echo "Status: fail2ban"
|
||||
/usr/bin/fail2ban-client status
|
||||
}
|
||||
|
||||
fail2ban_ping() {
|
||||
echo "Pinging fail2ban"
|
||||
/usr/bin/fail2ban-client ping
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
'start')
|
||||
fail2ban_start
|
||||
;;
|
||||
'stop')
|
||||
fail2ban_stop
|
||||
;;
|
||||
'restart')
|
||||
fail2ban_stop
|
||||
sleep 5
|
||||
fail2ban_start
|
||||
;;
|
||||
'reload')
|
||||
fail2ban_reload
|
||||
;;
|
||||
'status')
|
||||
fail2ban_status
|
||||
;;
|
||||
'ping')
|
||||
fail2ban_ping
|
||||
;;
|
||||
*)
|
||||
echo "USAGE: $0 start|stop|restart|reload|status|ping"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
96
net/fcgi/fcgi-2.4.0-clientdata-pointer.patch
Normal file
96
net/fcgi/fcgi-2.4.0-clientdata-pointer.patch
Normal file
|
@ -0,0 +1,96 @@
|
|||
Index: fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c
|
||||
===================================================================
|
||||
--- fcgi-2.4.0.orig/cgi-fcgi/cgi-fcgi.c
|
||||
+++ fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c
|
||||
@@ -21,6 +21,7 @@ static const char rcsid[] = "$Id: cgi-fc
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
#include "fcgi_config.h"
|
||||
|
||||
@@ -145,7 +146,7 @@ static FCGI_BeginRequestBody MakeBeginRe
|
||||
|
||||
|
||||
static int bytesToRead; /* number of bytes to read from Web Server */
|
||||
-static int appServerSock = -1; /* Socket connected to FastCGI application,
|
||||
+static size_t appServerSock = -1; /* Socket connected to FastCGI application,
|
||||
* used by AppServerReadHandler and
|
||||
* AppServerWriteHandler. */
|
||||
static Buffer fromAS; /* Bytes read from the FCGI application server. */
|
||||
@@ -640,7 +641,7 @@ static int ParseArgs(int argc, char *arg
|
||||
}
|
||||
if((av[ac] = (char *)malloc(strlen(tp1)+1)) == NULL) {
|
||||
fprintf(stderr, "Cannot allocate %d bytes\n",
|
||||
- strlen(tp1)+1);
|
||||
+ (int)strlen(tp1)+1);
|
||||
exit(-1);
|
||||
}
|
||||
strcpy(av[ac++], tp1);
|
||||
Index: fcgi-2.4.0/examples/threaded.c
|
||||
===================================================================
|
||||
--- fcgi-2.4.0.orig/examples/threaded.c
|
||||
+++ fcgi-2.4.0/examples/threaded.c
|
||||
@@ -24,7 +24,7 @@ static int counts[THREAD_COUNT];
|
||||
|
||||
static void *doit(void *a)
|
||||
{
|
||||
- int rc, i, thread_id = (int)a;
|
||||
+ size_t rc, i, thread_id = (size_t)a;
|
||||
pid_t pid = getpid();
|
||||
FCGX_Request request;
|
||||
char *server_name;
|
||||
@@ -53,7 +53,7 @@ static void *doit(void *a)
|
||||
"<h1>FastCGI Hello! (multi-threaded C, fcgiapp library)</h1>"
|
||||
"Thread %d, Process %ld<p>"
|
||||
"Request counts for %d threads running on host <i>%s</i><p><code>",
|
||||
- thread_id, pid, THREAD_COUNT, server_name ? server_name : "?");
|
||||
+ (int)thread_id, pid, THREAD_COUNT, server_name ? server_name : "?");
|
||||
|
||||
sleep(2);
|
||||
|
||||
@@ -71,7 +71,7 @@ static void *doit(void *a)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
- int i;
|
||||
+ size_t i;
|
||||
pthread_t id[THREAD_COUNT];
|
||||
|
||||
FCGX_Init();
|
||||
Index: fcgi-2.4.0/include/fcgios.h
|
||||
===================================================================
|
||||
--- fcgi-2.4.0.orig/include/fcgios.h
|
||||
+++ fcgi-2.4.0/include/fcgios.h
|
||||
@@ -93,7 +93,7 @@ extern "C" {
|
||||
# if defined(__STDC__) || defined(__cplusplus)
|
||||
typedef void *ClientData;
|
||||
# else
|
||||
- typedef int *ClientData;
|
||||
+ typedef size_t *ClientData;
|
||||
# endif /* __STDC__ */
|
||||
#define _CLIENTDATA
|
||||
#endif
|
||||
Index: fcgi-2.4.0/libfcgi/os_unix.c
|
||||
===================================================================
|
||||
--- fcgi-2.4.0.orig/libfcgi/os_unix.c
|
||||
+++ fcgi-2.4.0/libfcgi/os_unix.c
|
||||
@@ -1155,7 +1155,7 @@ int OS_Accept(int listen_sock, int fail_
|
||||
|
||||
for (;;) {
|
||||
do {
|
||||
-#ifdef HAVE_SOCKLEN
|
||||
+#ifdef HAVE_SYS_SOCKET_H
|
||||
socklen_t len = sizeof(sa);
|
||||
#else
|
||||
int len = sizeof(sa);
|
||||
@@ -1255,7 +1255,7 @@ int OS_IsFcgi(int sock)
|
||||
struct sockaddr_in in;
|
||||
struct sockaddr_un un;
|
||||
} sa;
|
||||
-#ifdef HAVE_SOCKLEN
|
||||
+#ifdef HAVE_SYS_SOCKET_H
|
||||
socklen_t len = sizeof(sa);
|
||||
#else
|
||||
int len = sizeof(sa);
|
28
net/fcgi/fcgi-2.4.0-gcc44-fix-include.patch
Normal file
28
net/fcgi/fcgi-2.4.0-gcc44-fix-include.patch
Normal file
|
@ -0,0 +1,28 @@
|
|||
Description: Upstream changes introduced in version 2.4.0-8
|
||||
This patch has been created by dpkg-source during the package build.
|
||||
Here's the last changelog entry, hopefully it gives details on why
|
||||
those changes were made:
|
||||
.
|
||||
libfcgi (2.4.0-8) unstable; urgency=low
|
||||
.
|
||||
* Switch to dpkg-source 3.0 (quilt) format
|
||||
.
|
||||
The person named in the Author field signed this changelog entry.
|
||||
Author: Tatsuki Sugiura <sugi@nemui.org>
|
||||
Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504963
|
||||
Bug-Debian: http://bugs.debian.org/504963
|
||||
Forwarded: no
|
||||
Last-Update: 2010-02-08
|
||||
|
||||
Index: libfcgi/libfcgi/fcgio.cpp
|
||||
===================================================================
|
||||
--- libfcgi.orig/libfcgi/fcgio.cpp 2010-01-23 19:13:53.000000000 +0900
|
||||
+++ libfcgi/libfcgi/fcgio.cpp 2010-01-23 19:13:55.000000000 +0900
|
||||
@@ -22,6 +22,7 @@
|
||||
#define DLLAPI __declspec(dllexport)
|
||||
#endif
|
||||
|
||||
+#include <cstdio>
|
||||
#include <limits.h>
|
||||
#include "fcgio.h"
|
||||
|
65
net/fcgi/fcgi-2.4.0-html-updates.patch
Normal file
65
net/fcgi/fcgi-2.4.0-html-updates.patch
Normal file
|
@ -0,0 +1,65 @@
|
|||
Index: fcgi-2.4.0/doc/fcgi-devel-kit.htm
|
||||
===================================================================
|
||||
--- fcgi-2.4.0.orig/doc/fcgi-devel-kit.htm
|
||||
+++ fcgi-2.4.0/doc/fcgi-devel-kit.htm
|
||||
@@ -19,7 +19,7 @@
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<P CLASS="c1">
|
||||
- <IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"><BR CLEAR="all">
|
||||
+ <IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"><BR CLEAR="all">
|
||||
</P>
|
||||
<H3 CLASS="c2">
|
||||
FastCGI Developer's Kit
|
||||
Index: fcgi-2.4.0/doc/fcgi-java.htm
|
||||
===================================================================
|
||||
--- fcgi-2.4.0.orig/doc/fcgi-java.htm
|
||||
+++ fcgi-2.4.0/doc/fcgi-java.htm
|
||||
@@ -20,7 +20,7 @@
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<DIV CLASS="c1">
|
||||
- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
|
||||
+ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
|
||||
</DIV>
|
||||
<BR CLEAR="all">
|
||||
<DIV CLASS="c1">
|
||||
Index: fcgi-2.4.0/doc/fcgi-perf.htm
|
||||
===================================================================
|
||||
--- fcgi-2.4.0.orig/doc/fcgi-perf.htm
|
||||
+++ fcgi-2.4.0/doc/fcgi-perf.htm
|
||||
@@ -19,7 +19,7 @@
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<DIV CLASS="c1">
|
||||
- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
|
||||
+ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
|
||||
</DIV>
|
||||
<BR CLEAR="all">
|
||||
<DIV CLASS="c1">
|
||||
Index: fcgi-2.4.0/doc/fcgi-perl.htm
|
||||
===================================================================
|
||||
--- fcgi-2.4.0.orig/doc/fcgi-perl.htm
|
||||
+++ fcgi-2.4.0/doc/fcgi-perl.htm
|
||||
@@ -19,7 +19,7 @@
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<DIV CLASS="c1">
|
||||
- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
|
||||
+ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
|
||||
</DIV>
|
||||
<BR CLEAR="all">
|
||||
|
||||
Index: fcgi-2.4.0/doc/fcgi-tcl.htm
|
||||
===================================================================
|
||||
--- fcgi-2.4.0.orig/doc/fcgi-tcl.htm
|
||||
+++ fcgi-2.4.0/doc/fcgi-tcl.htm
|
||||
@@ -19,7 +19,7 @@
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<DIV CLASS="c1">
|
||||
- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
|
||||
+ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
|
||||
</DIV>
|
||||
<BR CLEAR="all">
|
||||
<DIV CLASS="c1">
|
49
net/fcgi/fcgi.SMBuild
Executable file
49
net/fcgi/fcgi.SMBuild
Executable file
|
@ -0,0 +1,49 @@
|
|||
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-2.4.0.tar.gz"
|
||||
desc="Simple server and library implementin Fast CGI"
|
||||
requires="gcc-libs"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
|
||||
patch -p1 < $srcdir/fcgi-2.4.0-clientdata-pointer.patch
|
||||
patch -p1 < $srcdir/fcgi-2.4.0-gcc44-fix-include.patch
|
||||
patch -p1 < $srcdir/fcgi-2.4.0-html-updates.patch
|
||||
|
||||
# Create some empty files to make autoreconf happy
|
||||
touch INSTALL NEWS AUTHORS ChangeLog COPYING
|
||||
autoreconf -vif
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-static
|
||||
|
||||
make -j1
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
mkdir -p $pkg/share/man/man{1,3}
|
||||
cp -a doc/*.1 $pkg/share/man/man1/
|
||||
cp -a doc/*.3 $pkg/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
|
||||
"
|
5
net/fcgiwrap/README
Normal file
5
net/fcgiwrap/README
Normal file
|
@ -0,0 +1,5 @@
|
|||
Simple FastCGI wrapper for CGI scripts
|
||||
|
||||
fcgiwrap is a simple server for running CGI applications over
|
||||
FastCGI. It hopes to provide clean CGI support to Nginx
|
||||
(and other web servers that may need it).
|
37
net/fcgiwrap/fcgiwrap.SMBuild
Executable file
37
net/fcgiwrap/fcgiwrap.SMBuild
Executable file
|
@ -0,0 +1,37 @@
|
|||
app=fcgiwrap
|
||||
version=1.1.0
|
||||
build=1sml
|
||||
homepage="https://github.com/gnosek/fcgiwrap"
|
||||
download="https://github.com/gnosek/fcgiwrap/archive/refs/tags/1.1.0.tar.gz"
|
||||
desc="Simple FastCGI wrapper for CGI scripts"
|
||||
requires="fcgi"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/share/man
|
||||
|
||||
sed -i 's@-Werror@@g' Makefile
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
install -Dm 0755 $srcdir/spawn-fcgi $pkg/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
|
||||
"
|
29
net/fcgiwrap/rc.spawn-fcgi
Normal file
29
net/fcgiwrap/rc.spawn-fcgi
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
C_SCRIPT=/bin/spawn-fcgi
|
||||
USER=nobody
|
||||
GROUP=nogroup
|
||||
RETVAL=0
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting fastcgi"
|
||||
sudo -u $USER $C_SCRIPT /tmp/cgi.sock 2
|
||||
chown $USER:$GROUP /tmp/cgi.sock
|
||||
RETVAL=$?
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping fastcgi"
|
||||
killall -9 fcgiwrap
|
||||
RETVAL=$?
|
||||
;;
|
||||
restart)
|
||||
echo "Restarting fastcgi"
|
||||
killall -9 fcgiwrap
|
||||
sudo -u $USER $C_SCRIPT
|
||||
RETVAL=$?
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
exit $RETVAL
|
29
net/fcgiwrap/spawn-fcgi
Normal file
29
net/fcgiwrap/spawn-fcgi
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/perl
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw( all );
|
||||
|
||||
use IO::Socket::UNIX;
|
||||
|
||||
my $bin_path = '/bin/fcgiwrap';
|
||||
my $socket_path = $ARGV[0] || '/tmp/cgi.sock';
|
||||
my $num_children = $ARGV[1] || 1;
|
||||
|
||||
close STDIN;
|
||||
|
||||
unlink $socket_path;
|
||||
my $socket = IO::Socket::UNIX->new(
|
||||
Local => $socket_path,
|
||||
Listen => 100,
|
||||
);
|
||||
|
||||
die "Cannot create socket at $socket_path: $!\n" unless $socket;
|
||||
|
||||
for (1 .. $num_children) {
|
||||
my $pid = fork;
|
||||
die "Cannot fork: $!" unless defined $pid;
|
||||
next if $pid;
|
||||
|
||||
exec $bin_path;
|
||||
die "Failed to exec $bin_path: $!\n";
|
||||
}
|
1
net/foxtrotgps/doinst.sh
Normal file
1
net/foxtrotgps/doinst.sh
Normal file
|
@ -0,0 +1 @@
|
|||
[ -x /etc/rc.d/rc.gtk ] && /etc/rc.d/rc.gtk
|
13
net/foxtrotgps/fix-gpsfix.patch
Normal file
13
net/foxtrotgps/fix-gpsfix.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/gps_functions.c b/src/gps_functions.c
|
||||
index 9943b6b..c3d087a 100644
|
||||
--- a/src/gps_functions.c
|
||||
+++ b/src/gps_functions.c
|
||||
@@ -762,7 +762,7 @@ cb_gpsd_data(GIOChannel *src, GIOCondition condition, gpointer data)
|
||||
{
|
||||
gpsdata->fix.time = (time_t) 0;
|
||||
}
|
||||
- gpsdata->valid = (libgps_gpsdata.status != STATUS_NO_FIX);
|
||||
+ gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX);
|
||||
if (gpsdata->valid)
|
||||
{
|
||||
gpsdata->seen_valid = TRUE;
|
13
net/foxtrotgps/fix-timespec.patch
Normal file
13
net/foxtrotgps/fix-timespec.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/gps_functions.c b/src/gps_functions.c
|
||||
index 04f88e0..e3df086 100644
|
||||
--- a/src/gps_functions.c
|
||||
+++ b/src/gps_functions.c
|
||||
@@ -752,7 +752,7 @@ cb_gpsd_data(GIOChannel *src, GIOCondition condition, gpointer data)
|
||||
{
|
||||
gpsdata->satellites_used = libgps_gpsdata.satellites_used;
|
||||
gpsdata->hdop = libgps_gpsdata.dop.hdop;
|
||||
- gpsdata->fix.time = libgps_gpsdata.fix.time;
|
||||
+ gpsdata->fix.time = libgps_gpsdata.fix.time.tv_nsec;
|
||||
if (isnan(gpsdata->fix.time))
|
||||
{
|
||||
gpsdata->fix.time = (time_t) 0;
|
36
net/foxtrotgps/foxtrotgps.SMBuild
Executable file
36
net/foxtrotgps/foxtrotgps.SMBuild
Executable file
|
@ -0,0 +1,36 @@
|
|||
app=foxtrotgps
|
||||
version=1.2.2
|
||||
build=1sml
|
||||
homepage="https://www.foxtrotgps.org/"
|
||||
download="https://www.foxtrotgps.org/releases/foxtrotgps-1.2.2.tar.xz"
|
||||
desc="Lightweight mapping application in GTK+"
|
||||
requires="gpsd"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $srcdir/fix-gpsfix.patch
|
||||
patch -p1 < $srcdir/fix-timespec.patch
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7358b1db49e7fab80b25912c9bfeeabffd58350250d3f41b4498c448e8ba21d8c04c77096886fd74ce31134bd63a2837c69b91feadd02828aa10ca10df0a6d4d foxtrotgps-1.2.2.tar.lz
|
||||
dcaae691e8459c001e80a3cbd9ab85cba86d1d8428c126d54814da21ec079664a650215787fddf2ae59a4e03f6675027f994a715dcced5032b54a1c653092d72 fix-gpsfix.patch
|
||||
2f555e0f5bcb80489a8f3d23d94a40ad67730d504f36ac2f0188c9fa71c7b5e76bceaa91b02f1c4a5bf0d67381d4794b552c5e7dd0703ccc0b39956f2e11a193 fix-timespec.patch
|
||||
"
|
33
net/fping/fping.SMBuild
Executable file
33
net/fping/fping.SMBuild
Executable file
|
@ -0,0 +1,33 @@
|
|||
app=fping
|
||||
version=4.2
|
||||
build=1sml
|
||||
homepage="https://fping.org/"
|
||||
download="https://fping.org/dist/fping-4.2.tar.gz"
|
||||
desc="Network ping utility with better performance than traditional ping"
|
||||
requires="musl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--enable-ipv4 \
|
||||
--enable-ipv6
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
175d37330df3558618c6adc166af72e532c760fc2384ec8f5b8ea086bef946e3bb8f3450fea33765ecc902b38a1ec7cf13a4c92983a0d74d02d11771021202fb fping-4.2.tar.lz
|
||||
"
|
16
net/geoclue/doinst.sh
Normal file
16
net/geoclue/doinst.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
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/geoclue/geoclue.conf.new
|
||||
|
||||
[ -x /etc/rc.d/rc/gtk ] && /etc/rc.d/rc.gtk
|
38
net/geoclue/geoclue.SMBuild
Executable file
38
net/geoclue/geoclue.SMBuild
Executable file
|
@ -0,0 +1,38 @@
|
|||
app=geoclue
|
||||
version=2.5.7
|
||||
build=1sml
|
||||
homepage="https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home"
|
||||
download="https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/2.5.7/geoclue-2.5.7.tar.bz2"
|
||||
desc="D-Bus service for providing location information"
|
||||
requires="glib gobject-introspection"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd geoclue-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
mkdir smbuild && cd smbuild
|
||||
meson .. \
|
||||
--prefix="/" \
|
||||
-D3g-source=false \
|
||||
-Dcdma-source=false \
|
||||
-Dmodem-gps-source=false \
|
||||
-Ddbus-srv-user=geoclue \
|
||||
-Dgtk-doc=false \
|
||||
-Dintrospection=false
|
||||
|
||||
ninja
|
||||
DESTDIR="$pkg" ninja install
|
||||
|
||||
cp ../COPYING* $pkgdocs/
|
||||
mv $pkg/etc/geoclue/geoclue.conf $pkg/etc/geoclue/geoclue.conf.new
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
8d4f68dffe85bfca2146f093193bcc80e720556904baae25c2e9bc4cb072db4aeba29b1177411e0490ce3a13e78a6f4818f91a953c8b06d7890b5509ab02d956 geoclue-2.5.7.tar.lz
|
||||
"
|
33
net/geocode-glib/geocode-glib.SMBuild
Executable file
33
net/geocode-glib/geocode-glib.SMBuild
Executable file
|
@ -0,0 +1,33 @@
|
|||
app=geocode-glib
|
||||
version=3.26.2
|
||||
build=1sml
|
||||
homepage="https://gitlab.gnome.org/GNOME/geocode-glib"
|
||||
download="https://gitlab.gnome.org/GNOME/geocode-glib/-/archive/3.26.2/geocode-glib-3.26.2.tar.bz2"
|
||||
desc="Library for geocoding aka finding latitude and longitude from address and reverse"
|
||||
requires="json-glib libsoup"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
mkdir -p smbuild && cd smbuild
|
||||
meson .. \
|
||||
--prefix="/" \
|
||||
-Denable-gtk-doc=false \
|
||||
-Denable-introspection=false
|
||||
|
||||
ninja
|
||||
DESTDIR="$pkg" ninja install
|
||||
|
||||
cp ../COPYING* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
b3ef81fac6959f6c4725ca721125cdafbbec69233f321872e17f9035266ed7616018ef54a9082fbd0a83395d18c664144cfe3b431d63744be433f058071cd435 geocode-glib-3.26.2.tar.xz
|
||||
"
|
42
net/ghostscript/ghostscript.SMBuild
Executable file
42
net/ghostscript/ghostscript.SMBuild
Executable file
|
@ -0,0 +1,42 @@
|
|||
app=ghostscript
|
||||
version=9.27
|
||||
build=1sml
|
||||
homepage="https://www.ghostscript.com/"
|
||||
download="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/ghostscript-9.27.tar.xz"
|
||||
desc="Postscript and PDF interpreter"
|
||||
requires="expat zlib libpng libtiff libjpeg-turbo jbig2dec lcms2"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
# get rid of in-tree lib copies
|
||||
rm -rf expat freetype lcms lcms2 jpeg libpng tiff lcms lcms2 cups/libs jbig2dec
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc \
|
||||
--enable-dynamic \
|
||||
--with-system-libtiff \
|
||||
--disable-cups \
|
||||
--disable-compile-inits \
|
||||
--with-jbig2dec \
|
||||
--with-x \
|
||||
--disable-gtk \
|
||||
--without-luratech
|
||||
|
||||
make so-only
|
||||
make soinstall DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7c855768a9e934959c9e952af04e74af990a7a655b44f7a6c150edeed9ca1b143bdac4df5f5c4d605a681e432f0919310dce95e504145d95af848fce37f3eb84 ghostscript-9.27.tar.lz
|
||||
"
|
13
net/gpsd/gpsd-use-local-timepps-header.patch
Normal file
13
net/gpsd/gpsd-use-local-timepps-header.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/SConstruct b/SConstruct
|
||||
index 33e0ff3..cf39fd9 100644
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -319,7 +319,7 @@ for var in import_env:
|
||||
envs[var] = os.environ[var]
|
||||
envs["GPSD_HOME"] = os.getcwd()
|
||||
|
||||
-env = Environment(tools=["default", "tar", "textfile"], options=opts, ENV=envs)
|
||||
+env = Environment(tools=["default", "tar", "textfile"], options=opts, ENV=envs, CPPPATH=".")
|
||||
|
||||
# Minimal build turns off every option not set on the command line,
|
||||
if ARGUMENTS.get('minimal'):
|
31
net/gpsd/gpsd.SMBuild
Executable file
31
net/gpsd/gpsd.SMBuild
Executable file
|
@ -0,0 +1,31 @@
|
|||
app=gpsd
|
||||
version=3.21
|
||||
build=1sml
|
||||
homepage="https://gpsd.gitlab.io/gpsd/"
|
||||
download="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-3.21.tar.xz"
|
||||
desc="GPS daemon for serving navigational software"
|
||||
requires="libusb eudev bluez"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $srcdir/gpsd-use-local-timepps-header.patch
|
||||
cp $srcdir/timepps.h .
|
||||
|
||||
CPPFLAGS="-I. -DHAVE_SYS_TIMEPPS_H"
|
||||
scons prefix="/" sbindir="/bin" qt=no systemd=no
|
||||
DESTDIR=$pkg scons install
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f08fe049f83552a7e73023fb8b8cdfbe23928950f7e628fe7ae733ca0a2d662d9f1204e308a1638e5b46e821f8405a6439ee8b1c8720c7c867093f457358f95e gpsd-3.21.tar.lz
|
||||
b692c9fc77a9db3fc621693d3b9e3ef9bc2efbbc7b01651168d7b928d29d48a489b8859930bad01b6021e211372e069a726b78dd5938385ed4ae0153b38f4170 gpsd-use-local-timepps-header.patch
|
||||
eb11fc19243d1789016d88eb7645bfe67c46304547781489bf36eb1dd4c252d523681ff835a6488fa0ef62b6b9e2f781c672279f4439f5d5640a3f214a113048 timepps.h
|
||||
"
|
216
net/gpsd/timepps.h
Normal file
216
net/gpsd/timepps.h
Normal file
|
@ -0,0 +1,216 @@
|
|||
/*
|
||||
* timepps.h -- PPS API main header
|
||||
*
|
||||
* Copyright (C) 2005-2007 Rodolfo Giometti <giometti@linux.it>
|
||||
* Copyright (C) 2009-2011 Alexander Gordeev <alex@gordick.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* Source: https://github.com/ago/pps-tools/ - Retreived Dec 2013
|
||||
*/
|
||||
|
||||
#ifndef _SYS_TIMEPPS_H_
|
||||
#define _SYS_TIMEPPS_H_
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/pps.h>
|
||||
|
||||
#define LINUXPPS 1 /* signal we are using LinuxPPS */
|
||||
|
||||
/*
|
||||
* New data structures
|
||||
*/
|
||||
|
||||
struct ntp_fp {
|
||||
unsigned int integral;
|
||||
unsigned int fractional;
|
||||
};
|
||||
|
||||
union pps_timeu {
|
||||
struct timespec tspec;
|
||||
struct ntp_fp ntpfp;
|
||||
unsigned long longpad[3];
|
||||
};
|
||||
|
||||
struct pps_info {
|
||||
unsigned long assert_sequence; /* seq. num. of assert event */
|
||||
unsigned long clear_sequence; /* seq. num. of clear event */
|
||||
union pps_timeu assert_tu; /* time of assert event */
|
||||
union pps_timeu clear_tu; /* time of clear event */
|
||||
int current_mode; /* current mode bits */
|
||||
};
|
||||
|
||||
struct pps_params {
|
||||
int api_version; /* API version # */
|
||||
int mode; /* mode bits */
|
||||
union pps_timeu assert_off_tu; /* offset compensation for assert */
|
||||
union pps_timeu clear_off_tu; /* offset compensation for clear */
|
||||
};
|
||||
|
||||
typedef int pps_handle_t; /* represents a PPS source */
|
||||
typedef unsigned long pps_seq_t; /* sequence number */
|
||||
typedef struct ntp_fp ntp_fp_t; /* NTP-compatible time stamp */
|
||||
typedef union pps_timeu pps_timeu_t; /* generic data type for time stamps */
|
||||
typedef struct pps_info pps_info_t;
|
||||
typedef struct pps_params pps_params_t;
|
||||
|
||||
#define assert_timestamp assert_tu.tspec
|
||||
#define clear_timestamp clear_tu.tspec
|
||||
|
||||
#define assert_timestamp_ntpfp assert_tu.ntpfp
|
||||
#define clear_timestamp_ntpfp clear_tu.ntpfp
|
||||
|
||||
#define assert_offset assert_off_tu.tspec
|
||||
#define clear_offset clear_off_tu.tspec
|
||||
|
||||
#define assert_offset_ntpfp assert_off_tu.ntpfp
|
||||
#define clear_offset_ntpfp clear_off_tu.ntpfp
|
||||
|
||||
/*
|
||||
* The PPS API
|
||||
*/
|
||||
|
||||
static __inline int time_pps_create(int source, pps_handle_t *handle)
|
||||
{
|
||||
int ret;
|
||||
struct pps_kparams dummy;
|
||||
|
||||
if (!handle) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* First we check if current device is a valid PPS one by
|
||||
* doing a dummy PPS_GETPARAMS...
|
||||
*/
|
||||
ret = ioctl(source, PPS_GETPARAMS, &dummy);
|
||||
if (ret) {
|
||||
errno = EOPNOTSUPP;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* ... then since in LinuxPPS there are no differences between a
|
||||
* "PPS source" and a "PPS handle", we simply return the same value.
|
||||
*/
|
||||
*handle = source;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __inline int time_pps_destroy(pps_handle_t handle)
|
||||
{
|
||||
return close(handle);
|
||||
}
|
||||
|
||||
static __inline int time_pps_getparams(pps_handle_t handle,
|
||||
pps_params_t *ppsparams)
|
||||
{
|
||||
int ret;
|
||||
struct pps_kparams __ppsparams;
|
||||
|
||||
ret = ioctl(handle, PPS_GETPARAMS, &__ppsparams);
|
||||
|
||||
ppsparams->api_version = __ppsparams.api_version;
|
||||
ppsparams->mode = __ppsparams.mode;
|
||||
ppsparams->assert_off_tu.tspec.tv_sec = __ppsparams.assert_off_tu.sec;
|
||||
ppsparams->assert_off_tu.tspec.tv_nsec = __ppsparams.assert_off_tu.nsec;
|
||||
ppsparams->clear_off_tu.tspec.tv_sec = __ppsparams.clear_off_tu.sec;
|
||||
ppsparams->clear_off_tu.tspec.tv_nsec = __ppsparams.clear_off_tu.nsec;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static __inline int time_pps_setparams(pps_handle_t handle,
|
||||
const pps_params_t *ppsparams)
|
||||
{
|
||||
struct pps_kparams __ppsparams;
|
||||
|
||||
__ppsparams.api_version = ppsparams->api_version;
|
||||
__ppsparams.mode = ppsparams->mode;
|
||||
__ppsparams.assert_off_tu.sec = ppsparams->assert_off_tu.tspec.tv_sec;
|
||||
__ppsparams.assert_off_tu.nsec = ppsparams->assert_off_tu.tspec.tv_nsec;
|
||||
__ppsparams.clear_off_tu.sec = ppsparams->clear_off_tu.tspec.tv_sec;
|
||||
__ppsparams.clear_off_tu.nsec = ppsparams->clear_off_tu.tspec.tv_nsec;
|
||||
|
||||
return ioctl(handle, PPS_SETPARAMS, &__ppsparams);
|
||||
}
|
||||
|
||||
/* Get capabilities for handle */
|
||||
static __inline int time_pps_getcap(pps_handle_t handle, int *mode)
|
||||
{
|
||||
return ioctl(handle, PPS_GETCAP, mode);
|
||||
}
|
||||
|
||||
static __inline int time_pps_fetch(pps_handle_t handle, const int tsformat,
|
||||
pps_info_t *ppsinfobuf,
|
||||
const struct timespec *timeout)
|
||||
{
|
||||
struct pps_fdata __fdata;
|
||||
int ret;
|
||||
|
||||
/* Sanity checks */
|
||||
if (tsformat != PPS_TSFMT_TSPEC) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (timeout) {
|
||||
__fdata.timeout.sec = timeout->tv_sec;
|
||||
__fdata.timeout.nsec = timeout->tv_nsec;
|
||||
__fdata.timeout.flags = ~PPS_TIME_INVALID;
|
||||
} else
|
||||
__fdata.timeout.flags = PPS_TIME_INVALID;
|
||||
|
||||
ret = ioctl(handle, PPS_FETCH, &__fdata);
|
||||
|
||||
ppsinfobuf->assert_sequence = __fdata.info.assert_sequence;
|
||||
ppsinfobuf->clear_sequence = __fdata.info.clear_sequence;
|
||||
ppsinfobuf->assert_tu.tspec.tv_sec = __fdata.info.assert_tu.sec;
|
||||
ppsinfobuf->assert_tu.tspec.tv_nsec = __fdata.info.assert_tu.nsec;
|
||||
ppsinfobuf->clear_tu.tspec.tv_sec = __fdata.info.clear_tu.sec;
|
||||
ppsinfobuf->clear_tu.tspec.tv_nsec = __fdata.info.clear_tu.nsec;
|
||||
ppsinfobuf->current_mode = __fdata.info.current_mode;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef PPS_KC_BIND
|
||||
|
||||
static __inline int time_pps_kcbind(pps_handle_t handle,
|
||||
const int kernel_consumer,
|
||||
const int edge, const int tsformat)
|
||||
{
|
||||
struct pps_bind_args __bind_args;
|
||||
|
||||
__bind_args.tsformat = tsformat;
|
||||
__bind_args.edge = edge;
|
||||
__bind_args.consumer = kernel_consumer;
|
||||
|
||||
return ioctl(handle, PPS_KC_BIND, &__bind_args);
|
||||
}
|
||||
|
||||
#else /* !PPS_KC_BIND */
|
||||
|
||||
static __inline int time_pps_kcbind(pps_handle_t handle,
|
||||
const int kernel_consumer,
|
||||
const int edge, const int tsformat)
|
||||
{
|
||||
/* LinuxPPS doesn't implement kernel consumer feature */
|
||||
errno = EOPNOTSUPP;
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif /* PPS_KC_BIND */
|
||||
|
||||
#endif /* _SYS_TIMEPPS_H_ */
|
33
net/gtk-vnc/gtk-vnc.SMBuild
Executable file
33
net/gtk-vnc/gtk-vnc.SMBuild
Executable file
|
@ -0,0 +1,33 @@
|
|||
app=gtk-vnc
|
||||
version=1.0.0
|
||||
build=1sml
|
||||
homepage="https://wiki.gnome.org/Projects/gtk-vnc"
|
||||
download="https://download.gnome.org/sources/gtk-vnc/1.0/gtk-vnc-1.0.0.tar.xz"
|
||||
desc="VNC viewer widget for GTK"
|
||||
requires="gtk3 gnutls libgcrypt"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z**
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
meson \
|
||||
--prefix="/" \
|
||||
--buildtype=plain \
|
||||
-Dwith-vala=true \
|
||||
-Dwith-coroutine=gthread \
|
||||
build
|
||||
|
||||
DESTDIR=$pkg ninja -C build all install
|
||||
|
||||
cp COPYING* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
2bdedf3cbc32a9a5a90298060ebb00079da57eaac392d663159ac6de57324ac40b9a6391aaaea4aa6adc83b20c173e0f5a6069c71bc2e0d9afe8ff289feedce4 gtk-vnc-1.0.0.tar.lz
|
||||
"
|
1
net/hexchat/doinst.sh
Normal file
1
net/hexchat/doinst.sh
Normal file
|
@ -0,0 +1 @@
|
|||
[ -x /etc/rc.d/rc.gtk ] && /etc/rc.d/rc.gtk
|
35
net/hexchat/hexchat.SMBuild
Executable file
35
net/hexchat/hexchat.SMBuild
Executable file
|
@ -0,0 +1,35 @@
|
|||
app=hexchat
|
||||
version=2.12.4
|
||||
build=2sml
|
||||
homepage="https://hexchat.github.io/"
|
||||
download="https://dl.hexchat.net/hexchat/hexchat-2.12.4.tar.xz"
|
||||
desc="Modern GTK+ IRC client"
|
||||
requires="intltool iso-codes netbsd-curses perl glib desktop-file-utils enchant openssl libnotify libcanberra gtk2 dbus-glib python3 pango"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc \
|
||||
--enable-openssl \
|
||||
--enable-textfe \
|
||||
--disable-lua \
|
||||
--enable-python=python3
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3acbcb037360628267593d5c87f84511f0d7d9772002d2bfaf9d2c29cd8f01a034a423f6a64d24c8c173a534e7dd9acb67147c6247f5f4c9834b729ebc980bd7 hexchat-2.12.4.tar.lz
|
||||
"
|
150
net/hostapd/01.patch
Normal file
150
net/hostapd/01.patch
Normal file
|
@ -0,0 +1,150 @@
|
|||
From 5b78c8f961f25f4dc22d6f2b77ddd06d712cec63 Mon Sep 17 00:00:00 2001
|
||||
From: Jouni Malinen <jouni@codeaurora.org>
|
||||
Date: Wed, 3 Jun 2020 23:17:35 +0300
|
||||
Subject: [PATCH 1/3] WPS UPnP: Do not allow event subscriptions with URLs to
|
||||
other networks
|
||||
|
||||
The UPnP Device Architecture 2.0 specification errata ("UDA errata
|
||||
16-04-2020.docx") addresses a problem with notifications being allowed
|
||||
to go out to other domains by disallowing such cases. Do such filtering
|
||||
for the notification callback URLs to avoid undesired connections to
|
||||
external networks based on subscriptions that any device in the local
|
||||
network could request when WPS support for external registrars is
|
||||
enabled (the upnp_iface parameter in hostapd configuration).
|
||||
|
||||
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
|
||||
---
|
||||
src/wps/wps_er.c | 2 +-
|
||||
src/wps/wps_upnp.c | 38 ++++++++++++++++++++++++++++++++++++--
|
||||
src/wps/wps_upnp_i.h | 3 ++-
|
||||
3 files changed, 39 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c
|
||||
index 6bded14327f8..31d2e50e4cff 100644
|
||||
--- a/src/wps/wps_er.c
|
||||
+++ b/src/wps/wps_er.c
|
||||
@@ -1298,7 +1298,7 @@ wps_er_init(struct wps_context *wps, const char *ifname, const char *filter)
|
||||
"with %s", filter);
|
||||
}
|
||||
if (get_netif_info(er->ifname, &er->ip_addr, &er->ip_addr_text,
|
||||
- er->mac_addr)) {
|
||||
+ NULL, er->mac_addr)) {
|
||||
wpa_printf(MSG_INFO, "WPS UPnP: Could not get IP/MAC address "
|
||||
"for %s. Does it have IP address?", er->ifname);
|
||||
wps_er_deinit(er, NULL, NULL);
|
||||
diff --git a/src/wps/wps_upnp.c b/src/wps/wps_upnp.c
|
||||
index 6e10e4bc0c3f..7d4b7439940e 100644
|
||||
--- a/src/wps/wps_upnp.c
|
||||
+++ b/src/wps/wps_upnp.c
|
||||
@@ -303,6 +303,14 @@ static void subscr_addr_free_all(struct subscription *s)
|
||||
}
|
||||
|
||||
|
||||
+static int local_network_addr(struct upnp_wps_device_sm *sm,
|
||||
+ struct sockaddr_in *addr)
|
||||
+{
|
||||
+ return (addr->sin_addr.s_addr & sm->netmask.s_addr) ==
|
||||
+ (sm->ip_addr & sm->netmask.s_addr);
|
||||
+}
|
||||
+
|
||||
+
|
||||
/* subscr_addr_add_url -- add address(es) for one url to subscription */
|
||||
static void subscr_addr_add_url(struct subscription *s, const char *url,
|
||||
size_t url_len)
|
||||
@@ -381,6 +389,7 @@ static void subscr_addr_add_url(struct subscription *s, const char *url,
|
||||
|
||||
for (rp = result; rp; rp = rp->ai_next) {
|
||||
struct subscr_addr *a;
|
||||
+ struct sockaddr_in *addr = (struct sockaddr_in *) rp->ai_addr;
|
||||
|
||||
/* Limit no. of address to avoid denial of service attack */
|
||||
if (dl_list_len(&s->addr_list) >= MAX_ADDR_PER_SUBSCRIPTION) {
|
||||
@@ -389,6 +398,13 @@ static void subscr_addr_add_url(struct subscription *s, const char *url,
|
||||
break;
|
||||
}
|
||||
|
||||
+ if (!local_network_addr(s->sm, addr)) {
|
||||
+ wpa_printf(MSG_INFO,
|
||||
+ "WPS UPnP: Ignore a delivery URL that points to another network %s",
|
||||
+ inet_ntoa(addr->sin_addr));
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
a = os_zalloc(sizeof(*a) + alloc_len);
|
||||
if (a == NULL)
|
||||
break;
|
||||
@@ -890,11 +906,12 @@ static int eth_get(const char *device, u8 ea[ETH_ALEN])
|
||||
* @net_if: Selected network interface name
|
||||
* @ip_addr: Buffer for returning IP address in network byte order
|
||||
* @ip_addr_text: Buffer for returning a pointer to allocated IP address text
|
||||
+ * @netmask: Buffer for returning netmask or %NULL if not needed
|
||||
* @mac: Buffer for returning MAC address
|
||||
* Returns: 0 on success, -1 on failure
|
||||
*/
|
||||
int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text,
|
||||
- u8 mac[ETH_ALEN])
|
||||
+ struct in_addr *netmask, u8 mac[ETH_ALEN])
|
||||
{
|
||||
struct ifreq req;
|
||||
int sock = -1;
|
||||
@@ -920,6 +937,19 @@ int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text,
|
||||
in_addr.s_addr = *ip_addr;
|
||||
os_snprintf(*ip_addr_text, 16, "%s", inet_ntoa(in_addr));
|
||||
|
||||
+ if (netmask) {
|
||||
+ os_memset(&req, 0, sizeof(req));
|
||||
+ os_strlcpy(req.ifr_name, net_if, sizeof(req.ifr_name));
|
||||
+ if (ioctl(sock, SIOCGIFNETMASK, &req) < 0) {
|
||||
+ wpa_printf(MSG_ERROR,
|
||||
+ "WPS UPnP: SIOCGIFNETMASK failed: %d (%s)",
|
||||
+ errno, strerror(errno));
|
||||
+ goto fail;
|
||||
+ }
|
||||
+ addr = (struct sockaddr_in *) &req.ifr_netmask;
|
||||
+ netmask->s_addr = addr->sin_addr.s_addr;
|
||||
+ }
|
||||
+
|
||||
#ifdef __linux__
|
||||
os_strlcpy(req.ifr_name, net_if, sizeof(req.ifr_name));
|
||||
if (ioctl(sock, SIOCGIFHWADDR, &req) < 0) {
|
||||
@@ -1026,11 +1056,15 @@ static int upnp_wps_device_start(struct upnp_wps_device_sm *sm, char *net_if)
|
||||
|
||||
/* Determine which IP and mac address we're using */
|
||||
if (get_netif_info(net_if, &sm->ip_addr, &sm->ip_addr_text,
|
||||
- sm->mac_addr)) {
|
||||
+ &sm->netmask, sm->mac_addr)) {
|
||||
wpa_printf(MSG_INFO, "WPS UPnP: Could not get IP/MAC address "
|
||||
"for %s. Does it have IP address?", net_if);
|
||||
goto fail;
|
||||
}
|
||||
+ wpa_printf(MSG_DEBUG, "WPS UPnP: Local IP address %s netmask %s hwaddr "
|
||||
+ MACSTR,
|
||||
+ sm->ip_addr_text, inet_ntoa(sm->netmask),
|
||||
+ MAC2STR(sm->mac_addr));
|
||||
|
||||
/* Listen for incoming TCP connections so that others
|
||||
* can fetch our "xml files" from us.
|
||||
diff --git a/src/wps/wps_upnp_i.h b/src/wps/wps_upnp_i.h
|
||||
index e87a93232df1..6ead7b4e9a30 100644
|
||||
--- a/src/wps/wps_upnp_i.h
|
||||
+++ b/src/wps/wps_upnp_i.h
|
||||
@@ -128,6 +128,7 @@ struct upnp_wps_device_sm {
|
||||
u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */
|
||||
char *ip_addr_text; /* IP address of network i.f. we use */
|
||||
unsigned ip_addr; /* IP address of network i.f. we use (host order) */
|
||||
+ struct in_addr netmask;
|
||||
int multicast_sd; /* send multicast messages over this socket */
|
||||
int ssdp_sd; /* receive discovery UPD packets on socket */
|
||||
int ssdp_sd_registered; /* nonzero if we must unregister */
|
||||
@@ -158,7 +159,7 @@ struct subscription * subscription_find(struct upnp_wps_device_sm *sm,
|
||||
const u8 uuid[UUID_LEN]);
|
||||
void subscr_addr_delete(struct subscr_addr *a);
|
||||
int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text,
|
||||
- u8 mac[ETH_ALEN]);
|
||||
+ struct in_addr *netmask, u8 mac[ETH_ALEN]);
|
||||
|
||||
/* wps_upnp_ssdp.c */
|
||||
void msearchreply_state_machine_stop(struct advertisement_state_machine *a);
|
||||
--
|
||||
2.20.1
|
||||
|
59
net/hostapd/02.patch
Normal file
59
net/hostapd/02.patch
Normal file
|
@ -0,0 +1,59 @@
|
|||
From f7d268864a2660b7239b9a8ff5ad37faeeb751ba Mon Sep 17 00:00:00 2001
|
||||
From: Jouni Malinen <jouni@codeaurora.org>
|
||||
Date: Wed, 3 Jun 2020 22:41:02 +0300
|
||||
Subject: [PATCH 2/3] WPS UPnP: Fix event message generation using a long URL
|
||||
path
|
||||
|
||||
More than about 700 character URL ended up overflowing the wpabuf used
|
||||
for building the event notification and this resulted in the wpabuf
|
||||
buffer overflow checks terminating the hostapd process. Fix this by
|
||||
allocating the buffer to be large enough to contain the full URL path.
|
||||
However, since that around 700 character limit has been the practical
|
||||
limit for more than ten years, start explicitly enforcing that as the
|
||||
limit or the callback URLs since any longer ones had not worked before
|
||||
and there is no need to enable them now either.
|
||||
|
||||
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
|
||||
---
|
||||
src/wps/wps_upnp.c | 9 +++++++--
|
||||
src/wps/wps_upnp_event.c | 3 ++-
|
||||
2 files changed, 9 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/wps/wps_upnp.c b/src/wps/wps_upnp.c
|
||||
index 7d4b7439940e..ab685d52ecab 100644
|
||||
--- a/src/wps/wps_upnp.c
|
||||
+++ b/src/wps/wps_upnp.c
|
||||
@@ -328,9 +328,14 @@ static void subscr_addr_add_url(struct subscription *s, const char *url,
|
||||
int rerr;
|
||||
size_t host_len, path_len;
|
||||
|
||||
- /* url MUST begin with http: */
|
||||
- if (url_len < 7 || os_strncasecmp(url, "http://", 7))
|
||||
+ /* URL MUST begin with HTTP scheme. In addition, limit the length of
|
||||
+ * the URL to 700 characters which is around the limit that was
|
||||
+ * implicitly enforced for more than 10 years due to a bug in
|
||||
+ * generating the event messages. */
|
||||
+ if (url_len < 7 || os_strncasecmp(url, "http://", 7) || url_len > 700) {
|
||||
+ wpa_printf(MSG_DEBUG, "WPS UPnP: Reject an unacceptable URL");
|
||||
goto fail;
|
||||
+ }
|
||||
url += 7;
|
||||
url_len -= 7;
|
||||
|
||||
diff --git a/src/wps/wps_upnp_event.c b/src/wps/wps_upnp_event.c
|
||||
index d7e6edcc6503..08a23612f338 100644
|
||||
--- a/src/wps/wps_upnp_event.c
|
||||
+++ b/src/wps/wps_upnp_event.c
|
||||
@@ -147,7 +147,8 @@ static struct wpabuf * event_build_message(struct wps_event_ *e)
|
||||
struct wpabuf *buf;
|
||||
char *b;
|
||||
|
||||
- buf = wpabuf_alloc(1000 + wpabuf_len(e->data));
|
||||
+ buf = wpabuf_alloc(1000 + os_strlen(e->addr->path) +
|
||||
+ wpabuf_len(e->data));
|
||||
if (buf == NULL)
|
||||
return NULL;
|
||||
wpabuf_printf(buf, "NOTIFY %s HTTP/1.1\r\n", e->addr->path);
|
||||
--
|
||||
2.20.1
|
||||
|
47
net/hostapd/03.patch
Normal file
47
net/hostapd/03.patch
Normal file
|
@ -0,0 +1,47 @@
|
|||
From 85aac526af8612c21b3117dadc8ef5944985b476 Mon Sep 17 00:00:00 2001
|
||||
From: Jouni Malinen <jouni@codeaurora.org>
|
||||
Date: Thu, 4 Jun 2020 21:24:04 +0300
|
||||
Subject: [PATCH 3/3] WPS UPnP: Handle HTTP initiation failures for events more
|
||||
properly
|
||||
|
||||
While it is appropriate to try to retransmit the event to another
|
||||
callback URL on a failure to initiate the HTTP client connection, there
|
||||
is no point in trying the exact same operation multiple times in a row.
|
||||
Replve the event_retry() calls with event_addr_failure() for these cases
|
||||
to avoid busy loops trying to repeat the same failing operation.
|
||||
|
||||
These potential busy loops would go through eloop callbacks, so the
|
||||
process is not completely stuck on handling them, but unnecessary CPU
|
||||
would be used to process the continues retries that will keep failing
|
||||
for the same reason.
|
||||
|
||||
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
|
||||
---
|
||||
src/wps/wps_upnp_event.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/wps/wps_upnp_event.c b/src/wps/wps_upnp_event.c
|
||||
index 08a23612f338..c0d9e41d9a38 100644
|
||||
--- a/src/wps/wps_upnp_event.c
|
||||
+++ b/src/wps/wps_upnp_event.c
|
||||
@@ -294,7 +294,7 @@ static int event_send_start(struct subscription *s)
|
||||
|
||||
buf = event_build_message(e);
|
||||
if (buf == NULL) {
|
||||
- event_retry(e, 0);
|
||||
+ event_addr_failure(e);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -302,7 +302,7 @@ static int event_send_start(struct subscription *s)
|
||||
event_http_cb, e);
|
||||
if (e->http_event == NULL) {
|
||||
wpabuf_free(buf);
|
||||
- event_retry(e, 0);
|
||||
+ event_addr_failure(e);
|
||||
return -1;
|
||||
}
|
||||
|
||||
--
|
||||
2.20.1
|
||||
|
73
net/hostapd/CVE-2019-16275.patch
Normal file
73
net/hostapd/CVE-2019-16275.patch
Normal file
|
@ -0,0 +1,73 @@
|
|||
From 8c07fa9eda13e835f3f968b2e1c9a8be3a851ff9 Mon Sep 17 00:00:00 2001
|
||||
From: Jouni Malinen <j@w1.fi>
|
||||
Date: Thu, 29 Aug 2019 11:52:04 +0300
|
||||
Subject: [PATCH] AP: Silently ignore management frame from unexpected source
|
||||
address
|
||||
|
||||
Do not process any received Management frames with unexpected/invalid SA
|
||||
so that we do not add any state for unexpected STA addresses or end up
|
||||
sending out frames to unexpected destination. This prevents unexpected
|
||||
sequences where an unprotected frame might end up causing the AP to send
|
||||
out a response to another device and that other device processing the
|
||||
unexpected response.
|
||||
|
||||
In particular, this prevents some potential denial of service cases
|
||||
where the unexpected response frame from the AP might result in a
|
||||
connected station dropping its association.
|
||||
|
||||
Signed-off-by: Jouni Malinen <j@w1.fi>
|
||||
---
|
||||
src/ap/drv_callbacks.c | 13 +++++++++++++
|
||||
src/ap/ieee802_11.c | 12 ++++++++++++
|
||||
2 files changed, 25 insertions(+)
|
||||
|
||||
diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
|
||||
index 31587685fe3b..34ca379edc3d 100644
|
||||
--- a/src/ap/drv_callbacks.c
|
||||
+++ b/src/ap/drv_callbacks.c
|
||||
@@ -131,6 +131,19 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
|
||||
"hostapd_notif_assoc: Skip event with no address");
|
||||
return -1;
|
||||
}
|
||||
+
|
||||
+ if (is_multicast_ether_addr(addr) ||
|
||||
+ is_zero_ether_addr(addr) ||
|
||||
+ os_memcmp(addr, hapd->own_addr, ETH_ALEN) == 0) {
|
||||
+ /* Do not process any frames with unexpected/invalid SA so that
|
||||
+ * we do not add any state for unexpected STA addresses or end
|
||||
+ * up sending out frames to unexpected destination. */
|
||||
+ wpa_printf(MSG_DEBUG, "%s: Invalid SA=" MACSTR
|
||||
+ " in received indication - ignore this indication silently",
|
||||
+ __func__, MAC2STR(addr));
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
random_add_randomness(addr, ETH_ALEN);
|
||||
|
||||
hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211,
|
||||
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
|
||||
index c85a28db44b7..e7065372e158 100644
|
||||
--- a/src/ap/ieee802_11.c
|
||||
+++ b/src/ap/ieee802_11.c
|
||||
@@ -4626,6 +4626,18 @@ int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
|
||||
fc = le_to_host16(mgmt->frame_control);
|
||||
stype = WLAN_FC_GET_STYPE(fc);
|
||||
|
||||
+ if (is_multicast_ether_addr(mgmt->sa) ||
|
||||
+ is_zero_ether_addr(mgmt->sa) ||
|
||||
+ os_memcmp(mgmt->sa, hapd->own_addr, ETH_ALEN) == 0) {
|
||||
+ /* Do not process any frames with unexpected/invalid SA so that
|
||||
+ * we do not add any state for unexpected STA addresses or end
|
||||
+ * up sending out frames to unexpected destination. */
|
||||
+ wpa_printf(MSG_DEBUG, "MGMT: Invalid SA=" MACSTR
|
||||
+ " in received frame - ignore this frame silently",
|
||||
+ MAC2STR(mgmt->sa));
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
if (stype == WLAN_FC_STYPE_BEACON) {
|
||||
handle_beacon(hapd, mgmt, len, fi);
|
||||
return 1;
|
||||
--
|
||||
2.20.1
|
||||
|
13
net/hostapd/doinst.sh
Normal file
13
net/hostapd/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/hostapd/hostapd.conf.new
|
46
net/hostapd/hostapd.SMBuild
Executable file
46
net/hostapd/hostapd.SMBuild
Executable file
|
@ -0,0 +1,46 @@
|
|||
app=hostapd
|
||||
version=2.9
|
||||
build=1sml
|
||||
homepage="https://w1.fi/hostapd/"
|
||||
download="https://w1.fi/releases/hostapd-2.9.tar.gz"
|
||||
desc="User space daemon for wifi authentication"
|
||||
requires="libnl openssl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $srcdir/01.patch
|
||||
patch -p1 < $srcdir/02.patch
|
||||
patch -p1 < $srcdir/03.patch
|
||||
patch -p1 < $srcdir/CVE-2019-16275.patch
|
||||
|
||||
cd hostapd
|
||||
cat $srcdir/hostapd.defconfig > .config
|
||||
|
||||
make
|
||||
|
||||
install -Dm 644 hostapd.8 $pkg/share/man/man8/hostapd.8
|
||||
install -Dm 644 hostapd_cli.1 $pkg/share/man/man1/hostapd_cli.1
|
||||
install -Dm 755 hostapd $pkg/bin/hostapd
|
||||
install -Dm 755 hostapd_cli $pkg/bin/hostapd_cli
|
||||
install -Dm 600 hostapd.conf $pkg/etc/hostapd/hostapd.conf.new
|
||||
|
||||
cp ../COPYING $pkgdocs/
|
||||
|
||||
preprunitservice hostapd down
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
003c5f10607d7383227e396096b6ee86cb9047b32ab7cd8ebea4aa8cef5d77d86028bc54486b59dca46cf5f6778d8657464ca8637a78289bc6d9be3d0a7cee34 hostapd-2.9.tar.lz
|
||||
b76bbca282a74ef16c0303e5dbd2ccd33a62461595964d52c1481b0bfa4f41deacde56830b85409b288803b87ceb6f33cf0ccc69c5b17ec632c2d4784b872f3c 01.patch
|
||||
00cc739e78c42353a555c0de2f29defecff372927040e14407a231d1ead7ff32a37c9fd46bea7cdf1c24e3ac891bc3d483800d44fc6d2c8a12d2ae886523b12c 02.patch
|
||||
69243af20cdcfa837c51917a3723779f4825e11436fb83311355b4ffe8f7a4b7a5747a976f7bf923038c410c9e9055b13b866d9a396913ad08bdec3a70e9f6e0 03.patch
|
||||
63710cfb0992f2c346a9807d8c97cbeaed032fa376a0e93a2e56f7742ce515e9c4dfadbdb1af03ba272281f639aab832f0178f67634c222a5d99e1d462aa9e38 CVE-2019-16275.patch
|
||||
"
|
396
net/hostapd/hostapd.defconfig
Normal file
396
net/hostapd/hostapd.defconfig
Normal file
|
@ -0,0 +1,396 @@
|
|||
# Example hostapd build time configuration
|
||||
#
|
||||
# This file lists the configuration options that are used when building the
|
||||
# hostapd binary. All lines starting with # are ignored. Configuration option
|
||||
# lines must be commented out complete, if they are not to be included, i.e.,
|
||||
# just setting VARIABLE=n is not disabling that variable.
|
||||
#
|
||||
# This file is included in Makefile, so variables like CFLAGS and LIBS can also
|
||||
# be modified from here. In most cass, these lines should use += in order not
|
||||
# to override previous values of the variables.
|
||||
|
||||
# Driver interface for Host AP driver
|
||||
CONFIG_DRIVER_HOSTAP=y
|
||||
|
||||
# Driver interface for wired authenticator
|
||||
CONFIG_DRIVER_WIRED=y
|
||||
|
||||
# Driver interface for drivers using the nl80211 kernel interface
|
||||
CONFIG_DRIVER_NL80211=y
|
||||
|
||||
# QCA vendor extensions to nl80211
|
||||
CONFIG_DRIVER_NL80211_QCA=y
|
||||
|
||||
# driver_nl80211.c requires libnl. If you are compiling it yourself
|
||||
# you may need to point hostapd to your version of libnl.
|
||||
#
|
||||
#CFLAGS += -I$<path to libnl include files>
|
||||
#LIBS += -L$<path to libnl library files>
|
||||
|
||||
# Use libnl v2.0 (or 3.0) libraries.
|
||||
#CONFIG_LIBNL20=y
|
||||
|
||||
# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
|
||||
CONFIG_LIBNL32=y
|
||||
|
||||
|
||||
# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
|
||||
#CONFIG_DRIVER_BSD=y
|
||||
#CFLAGS += -I/usr/local/include
|
||||
#LIBS += -L/usr/local/lib
|
||||
#LIBS_p += -L/usr/local/lib
|
||||
#LIBS_c += -L/usr/local/lib
|
||||
|
||||
# Driver interface for no driver (e.g., RADIUS server only)
|
||||
#CONFIG_DRIVER_NONE=y
|
||||
|
||||
# IEEE 802.11F/IAPP
|
||||
CONFIG_IAPP=y
|
||||
|
||||
# WPA2/IEEE 802.11i RSN pre-authentication
|
||||
CONFIG_RSN_PREAUTH=y
|
||||
|
||||
# IEEE 802.11w (management frame protection)
|
||||
CONFIG_IEEE80211W=y
|
||||
|
||||
# Support Operating Channel Validation
|
||||
#CONFIG_OCV=y
|
||||
|
||||
# Integrated EAP server
|
||||
CONFIG_EAP=y
|
||||
|
||||
# EAP Re-authentication Protocol (ERP) in integrated EAP server
|
||||
CONFIG_ERP=y
|
||||
|
||||
# EAP-MD5 for the integrated EAP server
|
||||
CONFIG_EAP_MD5=y
|
||||
|
||||
# EAP-TLS for the integrated EAP server
|
||||
CONFIG_EAP_TLS=y
|
||||
|
||||
# EAP-MSCHAPv2 for the integrated EAP server
|
||||
CONFIG_EAP_MSCHAPV2=y
|
||||
|
||||
# EAP-PEAP for the integrated EAP server
|
||||
CONFIG_EAP_PEAP=y
|
||||
|
||||
# EAP-GTC for the integrated EAP server
|
||||
CONFIG_EAP_GTC=y
|
||||
|
||||
# EAP-TTLS for the integrated EAP server
|
||||
CONFIG_EAP_TTLS=y
|
||||
|
||||
# EAP-SIM for the integrated EAP server
|
||||
CONFIG_EAP_SIM=y
|
||||
|
||||
# EAP-AKA for the integrated EAP server
|
||||
CONFIG_EAP_AKA=y
|
||||
|
||||
# EAP-AKA' for the integrated EAP server
|
||||
# This requires CONFIG_EAP_AKA to be enabled, too.
|
||||
#CONFIG_EAP_AKA_PRIME=y
|
||||
|
||||
# EAP-PAX for the integrated EAP server
|
||||
CONFIG_EAP_PAX=y
|
||||
|
||||
# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK)
|
||||
CONFIG_EAP_PSK=y
|
||||
|
||||
# EAP-pwd for the integrated EAP server (secure authentication with a password)
|
||||
CONFIG_EAP_PWD=y
|
||||
|
||||
# EAP-SAKE for the integrated EAP server
|
||||
CONFIG_EAP_SAKE=y
|
||||
|
||||
# EAP-GPSK for the integrated EAP server
|
||||
CONFIG_EAP_GPSK=y
|
||||
# Include support for optional SHA256 cipher suite in EAP-GPSK
|
||||
CONFIG_EAP_GPSK_SHA256=y
|
||||
|
||||
# EAP-FAST for the integrated EAP server
|
||||
#CONFIG_EAP_FAST=y
|
||||
|
||||
# EAP-TEAP for the integrated EAP server
|
||||
# Note: The current EAP-TEAP implementation is experimental and should not be
|
||||
# enabled for production use. The IETF RFC 7170 that defines EAP-TEAP has number
|
||||
# of conflicting statements and missing details and the implementation has
|
||||
# vendor specific workarounds for those and as such, may not interoperate with
|
||||
# any other implementation. This should not be used for anything else than
|
||||
# experimentation and interoperability testing until those issues has been
|
||||
# resolved.
|
||||
#CONFIG_EAP_TEAP=y
|
||||
|
||||
# Wi-Fi Protected Setup (WPS)
|
||||
CONFIG_WPS=y
|
||||
# Enable UPnP support for external WPS Registrars
|
||||
CONFIG_WPS_UPNP=y
|
||||
# Enable WPS support with NFC config method
|
||||
CONFIG_WPS_NFC=y
|
||||
|
||||
# EAP-IKEv2
|
||||
#CONFIG_EAP_IKEV2=y
|
||||
|
||||
# Trusted Network Connect (EAP-TNC)
|
||||
#CONFIG_EAP_TNC=y
|
||||
|
||||
# EAP-EKE for the integrated EAP server
|
||||
#CONFIG_EAP_EKE=y
|
||||
|
||||
# PKCS#12 (PFX) support (used to read private key and certificate file from
|
||||
# a file that usually has extension .p12 or .pfx)
|
||||
CONFIG_PKCS12=y
|
||||
|
||||
# RADIUS authentication server. This provides access to the integrated EAP
|
||||
# server from external hosts using RADIUS.
|
||||
#CONFIG_RADIUS_SERVER=y
|
||||
|
||||
# Build IPv6 support for RADIUS operations
|
||||
CONFIG_IPV6=y
|
||||
|
||||
# IEEE Std 802.11r-2008 (Fast BSS Transition)
|
||||
#CONFIG_IEEE80211R=y
|
||||
|
||||
# Use the hostapd's IEEE 802.11 authentication (ACL), but without
|
||||
# the IEEE 802.11 Management capability (e.g., FreeBSD/net80211)
|
||||
#CONFIG_DRIVER_RADIUS_ACL=y
|
||||
|
||||
# IEEE 802.11n (High Throughput) support
|
||||
CONFIG_IEEE80211N=y
|
||||
|
||||
# Wireless Network Management (IEEE Std 802.11v-2011)
|
||||
# Note: This is experimental and not complete implementation.
|
||||
#CONFIG_WNM=y
|
||||
|
||||
# IEEE 802.11ac (Very High Throughput) support
|
||||
#CONFIG_IEEE80211AC=y
|
||||
|
||||
# IEEE 802.11ax HE support
|
||||
# Note: This is experimental and work in progress. The definitions are still
|
||||
# subject to change and this should not be expected to interoperate with the
|
||||
# final IEEE 802.11ax version.
|
||||
#CONFIG_IEEE80211AX=y
|
||||
|
||||
# Remove debugging code that is printing out debug messages to stdout.
|
||||
# This can be used to reduce the size of the hostapd considerably if debugging
|
||||
# code is not needed.
|
||||
#CONFIG_NO_STDOUT_DEBUG=y
|
||||
|
||||
# Add support for writing debug log to a file: -f /tmp/hostapd.log
|
||||
# Disabled by default.
|
||||
#CONFIG_DEBUG_FILE=y
|
||||
|
||||
# Send debug messages to syslog instead of stdout
|
||||
#CONFIG_DEBUG_SYSLOG=y
|
||||
|
||||
# Add support for sending all debug messages (regardless of debug verbosity)
|
||||
# to the Linux kernel tracing facility. This helps debug the entire stack by
|
||||
# making it easy to record everything happening from the driver up into the
|
||||
# same file, e.g., using trace-cmd.
|
||||
#CONFIG_DEBUG_LINUX_TRACING=y
|
||||
|
||||
# Remove support for RADIUS accounting
|
||||
#CONFIG_NO_ACCOUNTING=y
|
||||
|
||||
# Remove support for RADIUS
|
||||
#CONFIG_NO_RADIUS=y
|
||||
|
||||
# Remove support for VLANs
|
||||
#CONFIG_NO_VLAN=y
|
||||
|
||||
# Enable support for fully dynamic VLANs. This enables hostapd to
|
||||
# automatically create bridge and VLAN interfaces if necessary.
|
||||
#CONFIG_FULL_DYNAMIC_VLAN=y
|
||||
|
||||
# Use netlink-based kernel API for VLAN operations instead of ioctl()
|
||||
# Note: This requires libnl 3.1 or newer.
|
||||
#CONFIG_VLAN_NETLINK=y
|
||||
|
||||
# Remove support for dumping internal state through control interface commands
|
||||
# This can be used to reduce binary size at the cost of disabling a debugging
|
||||
# option.
|
||||
#CONFIG_NO_DUMP_STATE=y
|
||||
|
||||
# Enable tracing code for developer debugging
|
||||
# This tracks use of memory allocations and other registrations and reports
|
||||
# incorrect use with a backtrace of call (or allocation) location.
|
||||
#CONFIG_WPA_TRACE=y
|
||||
# For BSD, comment out these.
|
||||
#LIBS += -lexecinfo
|
||||
#LIBS_p += -lexecinfo
|
||||
#LIBS_c += -lexecinfo
|
||||
|
||||
# Use libbfd to get more details for developer debugging
|
||||
# This enables use of libbfd to get more detailed symbols for the backtraces
|
||||
# generated by CONFIG_WPA_TRACE=y.
|
||||
#CONFIG_WPA_TRACE_BFD=y
|
||||
# For BSD, comment out these.
|
||||
#LIBS += -lbfd -liberty -lz
|
||||
#LIBS_p += -lbfd -liberty -lz
|
||||
#LIBS_c += -lbfd -liberty -lz
|
||||
|
||||
# hostapd depends on strong random number generation being available from the
|
||||
# operating system. os_get_random() function is used to fetch random data when
|
||||
# needed, e.g., for key generation. On Linux and BSD systems, this works by
|
||||
# reading /dev/urandom. It should be noted that the OS entropy pool needs to be
|
||||
# properly initialized before hostapd is started. This is important especially
|
||||
# on embedded devices that do not have a hardware random number generator and
|
||||
# may by default start up with minimal entropy available for random number
|
||||
# generation.
|
||||
#
|
||||
# As a safety net, hostapd is by default trying to internally collect
|
||||
# additional entropy for generating random data to mix in with the data
|
||||
# fetched from the OS. This by itself is not considered to be very strong, but
|
||||
# it may help in cases where the system pool is not initialized properly.
|
||||
# However, it is very strongly recommended that the system pool is initialized
|
||||
# with enough entropy either by using hardware assisted random number
|
||||
# generator or by storing state over device reboots.
|
||||
#
|
||||
# hostapd can be configured to maintain its own entropy store over restarts to
|
||||
# enhance random number generation. This is not perfect, but it is much more
|
||||
# secure than using the same sequence of random numbers after every reboot.
|
||||
# This can be enabled with -e<entropy file> command line option. The specified
|
||||
# file needs to be readable and writable by hostapd.
|
||||
#
|
||||
# If the os_get_random() is known to provide strong random data (e.g., on
|
||||
# Linux/BSD, the board in question is known to have reliable source of random
|
||||
# data from /dev/urandom), the internal hostapd random pool can be disabled.
|
||||
# This will save some in binary size and CPU use. However, this should only be
|
||||
# considered for builds that are known to be used on devices that meet the
|
||||
# requirements described above.
|
||||
#CONFIG_NO_RANDOM_POOL=y
|
||||
|
||||
# Should we attempt to use the getrandom(2) call that provides more reliable
|
||||
# yet secure randomness source than /dev/random on Linux 3.17 and newer.
|
||||
# Requires glibc 2.25 to build, falls back to /dev/random if unavailable.
|
||||
#CONFIG_GETRANDOM=y
|
||||
|
||||
# Should we use poll instead of select? Select is used by default.
|
||||
#CONFIG_ELOOP_POLL=y
|
||||
|
||||
# Should we use epoll instead of select? Select is used by default.
|
||||
#CONFIG_ELOOP_EPOLL=y
|
||||
|
||||
# Should we use kqueue instead of select? Select is used by default.
|
||||
#CONFIG_ELOOP_KQUEUE=y
|
||||
|
||||
# Select TLS implementation
|
||||
# openssl = OpenSSL (default)
|
||||
# gnutls = GnuTLS
|
||||
# internal = Internal TLSv1 implementation (experimental)
|
||||
# linux = Linux kernel AF_ALG and internal TLSv1 implementation (experimental)
|
||||
# none = Empty template
|
||||
#CONFIG_TLS=openssl
|
||||
|
||||
# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.1)
|
||||
# can be enabled to get a stronger construction of messages when block ciphers
|
||||
# are used.
|
||||
#CONFIG_TLSV11=y
|
||||
|
||||
# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.2)
|
||||
# can be enabled to enable use of stronger crypto algorithms.
|
||||
#CONFIG_TLSV12=y
|
||||
|
||||
# Select which ciphers to use by default with OpenSSL if the user does not
|
||||
# specify them.
|
||||
#CONFIG_TLS_DEFAULT_CIPHERS="DEFAULT:!EXP:!LOW"
|
||||
|
||||
# If CONFIG_TLS=internal is used, additional library and include paths are
|
||||
# needed for LibTomMath. Alternatively, an integrated, minimal version of
|
||||
# LibTomMath can be used. See beginning of libtommath.c for details on benefits
|
||||
# and drawbacks of this option.
|
||||
#CONFIG_INTERNAL_LIBTOMMATH=y
|
||||
#ifndef CONFIG_INTERNAL_LIBTOMMATH
|
||||
#LTM_PATH=/usr/src/libtommath-0.39
|
||||
#CFLAGS += -I$(LTM_PATH)
|
||||
#LIBS += -L$(LTM_PATH)
|
||||
#LIBS_p += -L$(LTM_PATH)
|
||||
#endif
|
||||
# At the cost of about 4 kB of additional binary size, the internal LibTomMath
|
||||
# can be configured to include faster routines for exptmod, sqr, and div to
|
||||
# speed up DH and RSA calculation considerably
|
||||
#CONFIG_INTERNAL_LIBTOMMATH_FAST=y
|
||||
|
||||
# Interworking (IEEE 802.11u)
|
||||
# This can be used to enable functionality to improve interworking with
|
||||
# external networks.
|
||||
#CONFIG_INTERWORKING=y
|
||||
|
||||
# Hotspot 2.0
|
||||
#CONFIG_HS20=y
|
||||
|
||||
# Enable SQLite database support in hlr_auc_gw, EAP-SIM DB, and eap_user_file
|
||||
#CONFIG_SQLITE=y
|
||||
|
||||
# Enable Fast Session Transfer (FST)
|
||||
#CONFIG_FST=y
|
||||
|
||||
# Enable CLI commands for FST testing
|
||||
#CONFIG_FST_TEST=y
|
||||
|
||||
# Testing options
|
||||
# This can be used to enable some testing options (see also the example
|
||||
# configuration file) that are really useful only for testing clients that
|
||||
# connect to this hostapd. These options allow, for example, to drop a
|
||||
# certain percentage of probe requests or auth/(re)assoc frames.
|
||||
#
|
||||
#CONFIG_TESTING_OPTIONS=y
|
||||
|
||||
# Automatic Channel Selection
|
||||
# This will allow hostapd to pick the channel automatically when channel is set
|
||||
# to "acs_survey" or "0". Eventually, other ACS algorithms can be added in
|
||||
# similar way.
|
||||
#
|
||||
# Automatic selection is currently only done through initialization, later on
|
||||
# we hope to do background checks to keep us moving to more ideal channels as
|
||||
# time goes by. ACS is currently only supported through the nl80211 driver and
|
||||
# your driver must have survey dump capability that is filled by the driver
|
||||
# during scanning.
|
||||
#
|
||||
# You can customize the ACS survey algorithm with the hostapd.conf variable
|
||||
# acs_num_scans.
|
||||
#
|
||||
# Supported ACS drivers:
|
||||
# * ath9k
|
||||
# * ath5k
|
||||
# * ath10k
|
||||
#
|
||||
# For more details refer to:
|
||||
# http://wireless.kernel.org/en/users/Documentation/acs
|
||||
#
|
||||
CONFIG_ACS=y
|
||||
|
||||
# Multiband Operation support
|
||||
# These extentions facilitate efficient use of multiple frequency bands
|
||||
# available to the AP and the devices that may associate with it.
|
||||
#CONFIG_MBO=y
|
||||
|
||||
# Client Taxonomy
|
||||
# Has the AP retain the Probe Request and (Re)Association Request frames from
|
||||
# a client, from which a signature can be produced which can identify the model
|
||||
# of client device like "Nexus 6P" or "iPhone 5s".
|
||||
#CONFIG_TAXONOMY=y
|
||||
|
||||
# Fast Initial Link Setup (FILS) (IEEE 802.11ai)
|
||||
#CONFIG_FILS=y
|
||||
# FILS shared key authentication with PFS
|
||||
#CONFIG_FILS_SK_PFS=y
|
||||
|
||||
# Include internal line edit mode in hostapd_cli. This can be used to provide
|
||||
# limited command line editing and history support.
|
||||
#CONFIG_WPA_CLI_EDIT=y
|
||||
|
||||
# Opportunistic Wireless Encryption (OWE)
|
||||
# Experimental implementation of draft-harkins-owe-07.txt
|
||||
#CONFIG_OWE=y
|
||||
|
||||
# Airtime policy support
|
||||
#CONFIG_AIRTIME_POLICY=y
|
||||
|
||||
# Override default value for the wpa_disable_eapol_key_retries configuration
|
||||
# parameter. See that parameter in hostapd.conf for more details.
|
||||
#CFLAGS += -DDEFAULT_WPA_DISABLE_EAPOL_KEY_RETRIES=1
|
||||
|
||||
# Additional Options
|
||||
CONFIG_MESH=y
|
||||
CONFIG_SAE=y
|
||||
CONFIG_WPS2=y
|
3
net/hostapd/hostapd.run
Normal file
3
net/hostapd/hostapd.run
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
CONFFILE="/etc/hostapd/hostapd.conf"
|
||||
exec /bin/hostapd $CONFFILE
|
28
net/hostname/hostname.SMBuild
Executable file
28
net/hostname/hostname.SMBuild
Executable file
|
@ -0,0 +1,28 @@
|
|||
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"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
make
|
||||
make install BINDIR="$pkg"/bin/
|
||||
|
||||
install -Dm 644 hostname.1 $pkg/share/man/man1/hostname.1
|
||||
|
||||
cp COPYRIGHT $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f50deba511157e4df404402a6e599f6b59aa4f9393d3ee0100a01c73cc4d3c556a6863aea760d95a37b3780015c5da99c4c2eaee04ccc8ffaf816f2c9068730a hostname-3.22.tar.lz
|
||||
"
|
31
net/ifstat/ifstat.SMBuild
Executable file
31
net/ifstat/ifstat.SMBuild
Executable file
|
@ -0,0 +1,31 @@
|
|||
app=ifstat
|
||||
version=1.1
|
||||
build=1sml
|
||||
homepage="http://gael.roualland.free.fr/ifstat/"
|
||||
download="http://gael.roualland.free.fr/ifstat/ifstat-1.1.tar.gz"
|
||||
desc="tiny real-time interface monitoring application"
|
||||
requires="musl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix=""
|
||||
|
||||
make
|
||||
install -Dm 755 ifstat $pkg/bin/ifstat
|
||||
install -Dm 644 ifstat.1 $pkg/share/man/man1/ifstat.1
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c8f58066f8b7c68439316e5bcdc46df3708d8f79053572f95b74a264d862cebc75a88849e763914de17a4918de9aacea95beee7363d0b43a1b939bfc989c780d ifstat-1.1.tar.lz
|
||||
"
|
33
net/iftop/iftop.SMBuild
Executable file
33
net/iftop/iftop.SMBuild
Executable file
|
@ -0,0 +1,33 @@
|
|||
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-0.17.tar.gz"
|
||||
desc="Curses-based network interface monitoring application"
|
||||
requires="netbsd-curses libpcap"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--mandir=/share/man \
|
||||
$builddist
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
41e3bc5feac5927f67356f491fcab7a28f7a32102cc33c67d81c1dc755273c42e32b540b14b6254a540f1b6c1b1ad6c50e3095c3b5282db2ea12dd0049ce2ebd iftop-0.17.tar.gz
|
||||
"
|
35
net/iperf/iperf.SMBuild
Executable file
35
net/iperf/iperf.SMBuild
Executable file
|
@ -0,0 +1,35 @@
|
|||
app=iperf
|
||||
version=3.7
|
||||
build=1sml
|
||||
homepage="https://github.com/esnet/iperf"
|
||||
download="https://github.com/esnet/iperf/archive/refs/tags/3.7.tar.gz"
|
||||
desc="Network utility for measuring TCP and UDP bandwidth performance"
|
||||
requires="openssl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
# 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="" \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static \
|
||||
--disable-profiling
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f4ac1f9c7efcd6e3331afce43601f355d173653611e0c7c4027e87722a54ca914bf9ac73ad0ddc08851d54367ee15527ffd65a4849d675272a4e7619304adff2 iperf-3.7.tar.lz
|
||||
"
|
40
net/iproute2/fix-install-errors.patch
Normal file
40
net/iproute2/fix-install-errors.patch
Normal file
|
@ -0,0 +1,40 @@
|
|||
Without this patch the following error message shows up three times
|
||||
during `make install:`
|
||||
|
||||
install -m 0755 /home/travis/build/alpinelinux/aports/main/iproute2/pkg/iproute2/sbin
|
||||
BusyBox v1.28.4 (2018-05-30 10:45:57 UTC) multi-call binary.
|
||||
Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [-t DIR] [SOURCE]... DEST
|
||||
Copy files and set attributes
|
||||
-c Just copy (default)
|
||||
-d Create directories
|
||||
-D Create leading target directories
|
||||
-s Strip symbol table
|
||||
-p Preserve date
|
||||
-o USER Set ownership
|
||||
-g GRP Set group ownership
|
||||
-m MODE Set permissions
|
||||
-t DIR Install to DIR
|
||||
make[1]: *** [Makefile:25: install] Error 1
|
||||
|
||||
diff -upr iproute2-4.17.0.orig/Makefile iproute2-4.17.0/Makefile
|
||||
--- iproute2-4.17.0.orig/Makefile 2018-06-27 22:58:35.818077991 +0200
|
||||
+++ iproute2-4.17.0/Makefile 2018-06-27 23:00:33.118560603 +0200
|
||||
@@ -61,7 +61,17 @@ WFLAGS += -Wmissing-declarations -Wold-s
|
||||
CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS)
|
||||
YACCFLAGS = -d -t -v
|
||||
|
||||
-SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma man
|
||||
+SUBDIRS=lib ip tc bridge misc netem genl man
|
||||
+
|
||||
+# The following subdirs require libmnl. If libmnl isn't installed
|
||||
+# install(1) is called with invalid arguments when the install
|
||||
+# target is invoked in those subdirs because $(TARGETS) is empty.
|
||||
+#
|
||||
+# To prevent these errors we only include the subdirs if libmnl is
|
||||
+# actually available.
|
||||
+ifeq ($(HAVE_MNL),y)
|
||||
+SUBDIRS += tipc devlink rdma
|
||||
+endif
|
||||
|
||||
LIBNETLINK=../lib/libutil.a ../lib/libnetlink.a
|
||||
LDLIBS += $(LIBNETLINK)
|
36
net/iproute2/iproute2.SMBuild
Executable file
36
net/iproute2/iproute2.SMBuild
Executable file
|
@ -0,0 +1,36 @@
|
|||
app=iproute2
|
||||
version=4.20.0
|
||||
build=1sml
|
||||
homepage="https://wiki.linuxfoundation.org/networking/iproute2"
|
||||
download="https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-4.20.0.tar.xz"
|
||||
desc="Advanced IP routing utilities for the linux kernel"
|
||||
requires="musl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $srcdir/fix-install-errors.patch
|
||||
patch -p1 < $srcdir/musl-fixes.patch
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc \
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg PREFIX="" SBINDIR="/bin" MANDIR="/share/man" LIBDIR="/lib" KERNEL_INCLUDE="/include"
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
0de26018541004f9386ce454a684fb3c18248f477a8bd41f27788b2a3834bfbbec84ea09e0af884099ac2b09444bf0c46743e8f4d2f7eaa0902da8bee5e87db4 iproute2-4.20.0.tar.lz
|
||||
24fc2a901650e11f80bcaa82c839e70c21aafdf3c5b8a357d932d066a0b98ae2ec8379fc17a0a16a1b5b4fa5edc131179c10fc02e55d6101701df5a09966912c fix-install-errors.patch
|
||||
2e3558caddf814da8c4d78c74eddb7a659d6f94b93de5396bdd995e2333e3cd656f9c936ac7a5a86d0477abc27a92550582575ab4ed19fc2ec0d9b6699cd612c musl-fixes.patch
|
||||
"
|
19
net/iproute2/musl-fixes.patch
Normal file
19
net/iproute2/musl-fixes.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
Include linux/limits.h to fix the following compilation error:
|
||||
|
||||
f_flower.c: In function 'flower_parse_enc_opts':
|
||||
f_flower.c:702:11: error: 'XATTR_SIZE_MAX' undeclared (first use in this function); did you mean 'SSIZE_MAX
|
||||
char key[XATTR_SIZE_MAX], mask[XATTR_SIZE_MAX];
|
||||
^~~~~~~~~~~~~~
|
||||
SSIZE_MAX
|
||||
|
||||
diff -upr iproute2-4.20.0.orig/tc/f_flower.c iproute2-4.20.0/tc/f_flower.c
|
||||
--- iproute2-4.20.0.orig/tc/f_flower.c 2019-03-16 16:49:46.328056814 +0100
|
||||
+++ iproute2-4.20.0/tc/f_flower.c 2019-03-16 16:50:13.658058776 +0100
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <linux/ip.h>
|
||||
#include <linux/tc_act/tc_vlan.h>
|
||||
#include <linux/mpls.h>
|
||||
+#include <linux/limits.h>
|
||||
|
||||
#include "utils.h"
|
||||
#include "tc_util.h"
|
35
net/ipset/ipset.SMBuild
Executable file
35
net/ipset/ipset.SMBuild
Executable file
|
@ -0,0 +1,35 @@
|
|||
app=ipset
|
||||
version=7.11
|
||||
build=1sml
|
||||
homepage="http://ipset.netfilter.org/"
|
||||
download="https://ipset.netfilter.org/ipset-7.11.tar.bz2"
|
||||
desc="High-performance IP hashing and administration tool for kernel IP sets"
|
||||
requires="musl kernel-source"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
# The kernel source directory requires the kernel build config file.
|
||||
# zcat /proc/config.gz > /share/linux-5.4.41
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sbindir=/bin \
|
||||
--disable-static \
|
||||
--with-kbuild=/share/linux-5.4.41
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ed4dfc85371aafe6758191553ecc8cc82ad27a4c9f334d695ee533fbfde3d338db86cde91b0445795fcd73b6b7a0f87a84035375f031ddf1c95ff1af38e82e56 ipset-7.11.tar.lz
|
||||
"
|
13
net/iputils/fix-defines.patch
Normal file
13
net/iputils/fix-defines.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- a/ping.h
|
||||
+++ b/ping.h
|
||||
@@ -44,6 +44,10 @@
|
||||
#define getnameinfo_flags 0
|
||||
#endif
|
||||
|
||||
+#ifndef AI_CANONIDN
|
||||
+#define AI_CANONIDN 0x0080
|
||||
+#endif
|
||||
+
|
||||
#ifndef WITHOUT_IFADDRS
|
||||
#include <ifaddrs.h>
|
||||
#endif
|
20
net/iputils/fix-init-of-cmsg.patch
Normal file
20
net/iputils/fix-init-of-cmsg.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
Fixes ping on s390x.
|
||||
|
||||
diff --git a/ping.c b/ping.c
|
||||
index a0857a1..329553d 100644
|
||||
--- a/ping.c
|
||||
+++ b/ping.c
|
||||
@@ -108,8 +108,11 @@ static int parsetos(char *str);
|
||||
static struct {
|
||||
struct cmsghdr cm;
|
||||
struct in_pktinfo ipi;
|
||||
-} cmsg = { {sizeof(struct cmsghdr) + sizeof(struct in_pktinfo), SOL_IP, IP_PKTINFO},
|
||||
- {0, }};
|
||||
+} cmsg = { .cm = {
|
||||
+ .cmsg_len = sizeof(struct cmsghdr) + sizeof(struct in_pktinfo),
|
||||
+ .cmsg_level = SOL_IP,
|
||||
+ .cmsg_type = IP_PKTINFO},
|
||||
+ .ipi = {0, }};
|
||||
int cmsg_len;
|
||||
|
||||
struct sockaddr_in source;
|
38
net/iputils/iputils.SMBuild
Executable file
38
net/iputils/iputils.SMBuild
Executable file
|
@ -0,0 +1,38 @@
|
|||
app=iputils
|
||||
version=s20180629
|
||||
build=1sml
|
||||
homepage="https://github.com/iputils/iputils"
|
||||
download="https://github.com/iputils/iputils/archive/refs/tags/s20180629.tar.gz"
|
||||
desc="Collection of common network tools"
|
||||
requires="libcap iptables"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $srcdir/fix-defines.patch
|
||||
patch -p1 < $srcdir/fix-init-of-cmsg.patch
|
||||
|
||||
make CC="$CC" all USE_GCRYPT=no USE_CRYPTO=no USE_NETTLE=no USE_CAP=no USE_IDN=no
|
||||
|
||||
for f in arping clockdiff ping rarpd rdisc tracepath traceroute6 tftpd ; do
|
||||
install -Dm 755 "$f" $pkg/bin/"$f"
|
||||
done
|
||||
|
||||
# Set the SUID bit on ping
|
||||
chmod u+s $pkg/bin/ping
|
||||
|
||||
cp LICENSE* $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
b059ef63b01e08b1b7856cd5ef231f14ef87c30a404b480978e4d085b1f71574b077998f02c2e10de42399123cb8c758bad5c4dafb00ed9e2cd005145ac96423 iputils-s20180629.tar.lz
|
||||
85c766b2cd738aeedb8dda8100af5814d9c0b4b62d6e98ca4329e3d34b19845e34bde772ca27e79360b7911cdb51bad11ca8f7717a367286c08243471fb32c47 fix-defines.patch
|
||||
2779b9d987089a2a9a39c27a092f16da85881e9dfbc99edcca6baea42912b8a1a7e16b00c19684d2ea1a6123d66f78be12bef43398e63be7d7c97d3d6269a5bf fix-init-of-cmsg.patch
|
||||
"
|
33
net/irssi/irssi.SMBuild
Executable file
33
net/irssi/irssi.SMBuild
Executable file
|
@ -0,0 +1,33 @@
|
|||
app=irssi
|
||||
version=1.2.2
|
||||
build=1sml
|
||||
homepage="https://irssi.org"
|
||||
download="https://github.com/irssi/irssi/archive/refs/tags/1.2.2.tar.gz"
|
||||
desc="Modular, expandable text-mode IRC client"
|
||||
requires="netbsd-curses glib openssl perl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
|
||||
LDFLAGS="-lcurses -lterminfo" \
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1f11728a5fe521a4dcad90e8d6414f1980e5c3584b5356b049d850ac9c1c7a82a19886dc688b3df2079d5e69da99c0634bb0a2cb2217b52f866cc2868b2ed0f9 irssi-1.2.2.tar.lz
|
||||
"
|
27
net/iw/iw.SMBuild
Executable file
27
net/iw/iw.SMBuild
Executable file
|
@ -0,0 +1,27 @@
|
|||
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/iw-4.14.tar.xz"
|
||||
desc="Tool for configuring Linux wireless devices"
|
||||
requires="libnl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
make
|
||||
make install PREFIX="" SBINDIR=/bin MANDIR=/share/man DESTDIR="$pkg"
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3a5c1ff6d2f6ac97ca236bead156a315ced9a3d9c8f9a234d7f2b9f1a3d61213e069ac1dd25d7b1e917f1cccdf1fc557c778a61ed0b0819906fd8bac4fb995de iw-4.14.tar.lz
|
||||
"
|
31
net/lftp/lftp.SMBuild
Executable file
31
net/lftp/lftp.SMBuild
Executable file
|
@ -0,0 +1,31 @@
|
|||
app=lftp
|
||||
version=4.9.1
|
||||
build=1sml
|
||||
homepage="https://lftp.yar.ru/"
|
||||
download="https://lftp.yar.ru/ftp/lftp-4.9.1.tar.xz"
|
||||
desc="Text-mode network utility with support for FTP, HTTP, SFTP, FISH and torrent protocols"
|
||||
requires="gcc-libs netbsd-curses readline expat gmp gnutls libtasn1 libidn nettle"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3fd08dbffd293164441b0b153dd78c2b3c09c3c8307586fc7bdb864843f13c3685beabd0c74abf59e2892942ef2eba2dcc5c89e2df1daef551685eea805df036 lftp-4.9.1.tar.lz
|
||||
"
|
34
net/libmicrohttpd/libmicrohttpd.SMBuild
Executable file
34
net/libmicrohttpd/libmicrohttpd.SMBuild
Executable file
|
@ -0,0 +1,34 @@
|
|||
app=libmicrohttpd
|
||||
version=0.9.66
|
||||
build=1sml
|
||||
homepage="https://www.gnu.org/software/libmicrohttpd/"
|
||||
download="https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.66.tar.gz"
|
||||
desc="Compact C library providing implementation of the HTTP 1.0 and 1.1 web server"
|
||||
requires="curl"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/$app-$version.tar.?z*
|
||||
cd $app-$version
|
||||
fixbuilddirpermissions
|
||||
|
||||
CPPFLAGS="$CFLAGS -D_GNU_SOURCE" \
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--disable-static \
|
||||
--disable-https \
|
||||
--disable-nls
|
||||
|
||||
make
|
||||
make install DESTDIR=$pkg
|
||||
|
||||
cp COPYING $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
59cc56a9511d9d1c05647a57d920a16d0aaa0d0523d0241ceb88641d18bd95fdb3bb5a60fd648ac54a6f4323a673a3145e520a2fe9e124e78973ff6dac3ad89a libmicrohttpd-0.9.66.tar.gz
|
||||
"
|
20
net/lynx/lynx-resize.patch
Normal file
20
net/lynx/lynx-resize.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
since musl commit 0b80a7b0404b6e49b0b724e3e3fe0ed5af3b08ef lynx crashes when
|
||||
resized (with netbsd curses).
|
||||
the reason is that when ncurses isn't detected, lynx uses a hack when it
|
||||
receives SIGWINCH: stop_curses(); start_curses();
|
||||
it's not safe to call any stdio func from a signal handler, but that's what
|
||||
happens here.
|
||||
arguably netbsd-curses shouldnt call setvbuf() at all, as it is only valid
|
||||
as the first operation on a stream. will be fixed separately.
|
||||
|
||||
--- lynx2.8.9dev.16/src/LYMainLoop.c
|
||||
+++ lynx2.8.9dev.16.patched/src/LYMainLoop.c
|
||||
@@ -6367,7 +6367,7 @@
|
||||
* are already filled based on the old size. So we notify the
|
||||
* ncurses library directly here. - kw
|
||||
*/
|
||||
-#if defined(NCURSES) && defined(HAVE_RESIZETERM) && defined(HAVE_WRESIZE)
|
||||
+#if defined(HAVE_RESIZETERM) && defined(HAVE_WRESIZE)
|
||||
resizeterm(LYlines, LYcols);
|
||||
wresize(LYwin, LYlines, LYcols);
|
||||
#else
|
40
net/lynx/lynx.SMBuild
Executable file
40
net/lynx/lynx.SMBuild
Executable file
|
@ -0,0 +1,40 @@
|
|||
app=lynx
|
||||
version=2.8.9.19
|
||||
build=1sml
|
||||
homepage="https://lynx.invisible-island.net"
|
||||
desc="A text-mode web browser"
|
||||
requires="zlib netbsd-curses openssl libidn"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version-dev
|
||||
|
||||
tar xf $srcdir/$app-$version-dev.tar.?z
|
||||
cd $app-$version-dev
|
||||
fixbuilddirpermissions
|
||||
|
||||
patch -p1 < $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
|
||||
|
||||
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
|
||||
LIBS="-lcurses -lterminfo -lz" \
|
||||
./configure \
|
||||
--prefix="" \
|
||||
--sysconfdir=/etc \
|
||||
--with-ssl \
|
||||
--disable-nls \
|
||||
--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
|
||||
"
|
7
net/maccalc/LICENSE
Normal file
7
net/maccalc/LICENSE
Normal file
|
@ -0,0 +1,7 @@
|
|||
MAC address manupulation utility
|
||||
|
||||
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 as published
|
||||
by the Free Software Foundation.
|
29
net/maccalc/maccalc.SMBuild
Executable file
29
net/maccalc/maccalc.SMBuild
Executable file
|
@ -0,0 +1,29 @@
|
|||
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"
|
||||
|
||||
build() {
|
||||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
mkdir -p $app-$version
|
||||
cd $app-$version
|
||||
|
||||
cp $srcdir/maccalc.c .
|
||||
fixbuilddirpermissions
|
||||
|
||||
gcc -Wall -o maccalc maccalc.c
|
||||
install -Dm 755 maccalc $pkg/bin/maccalc
|
||||
|
||||
cp $srcdir/LICENSE $pkgdocs/
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5e8c6c70fb315197a039c67b07fc01389d930d9174bf1611d9f0fbe204008f708aee402e94c525870c4ca7dedac0b52ae27ec086ad8dabecf688931fd5897e13 maccalc.c
|
||||
"
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue