Merge branch 'main' of github.com:/iglunix/iglunix

This commit is contained in:
Ella-0 2021-04-19 09:12:21 +00:00
commit 94ba1e7a44
48 changed files with 10275 additions and 19 deletions

View file

@ -1,13 +1,13 @@
# Iglunix # [Iglunix](https://iglunix.xyz/)
Unix like software distribution with no GNU components Unix like software distribution with no GNU components
All build scripts are 0BSD Licensed. All build scripts are 0BSD Licensed.
For the build system see https://github.com/iglunix/iglunix-autobuild To create an ISO from a non-iglunix OS please see https://github.com/iglunix/iglunix-autobuild
## Discord ## Discord
[link](https://discord.gg/NKB9qD2bMx) Join us at [link](https://discord.gg/NKB9qD2bMx)
## TODO ## TODO
- WebKit - Need to port WebKit somehow since no browers will build for this - WebKit - Need to port WebKit somehow since no browers will build for this

View file

@ -16,7 +16,7 @@ echo "PARTITION_START=${PARTITION_START}"
#create room for a partition #create room for a partition
ls -al iglunix.img -h ls -al iglunix.img -h
dd if=/dev/zero bs=1 count=0 seek=1G of=iglunix.img dd if=/dev/zero bs=1 count=0 seek=20G of=iglunix.img
ls -al iglunix.img -h ls -al iglunix.img -h
echo "n echo "n
@ -30,7 +30,11 @@ w
PARTITION_START2=$((${PARTITION_START} * 512)) PARTITION_START2=$((${PARTITION_START} * 512))
echo "PARTITION_START2: ${PARTITION_START2}" echo "PARTITION_START2: ${PARTITION_START2}"
LOOPBACK=$(losetup -o ${PARTITION_START2} -s -f iglunix.img) LOOPBACK=$(losetup -o ${PARTITION_START2} -s -f iglunix.img)
echo "LOOPBACK: ${LOOPBACK}" echo "loopback interface: ${LOOPBACK}"
#ERROR IF NO LOOPBACK
[ -z "$LOOPBACK" ] && echo "loopback creation failed!" && exit -1
mke2fs -t ext4 -L "__IGLUNIX_ROOT" ${LOOPBACK} mke2fs -t ext4 -L "__IGLUNIX_ROOT" ${LOOPBACK}
ROOT=/mnt/__IGLUNIX_ROOT ROOT=/mnt/__IGLUNIX_ROOT
@ -40,17 +44,35 @@ rm -rf ${ROOT}
mkdir -p ${ROOT} mkdir -p ${ROOT}
mount ${LOOPBACK} ${ROOT} mount ${LOOPBACK} ${ROOT}
packages=(musl mksh bmake gmake libressl cmake curl rsync flex byacc om4 zlib samurai libffi python ca-certificates zlib expat gettext-tiny git kati netbsd-curses kakoune iglunix rust toybox busybox less file pci-ids e2fsprogs util-linux linux-pam kbd) packages=(musl mksh bmake gmake llvm libressl cmake curl rsync flex byacc om4 zlib samurai libffi python ca-certificates zlib expat gettext-tiny git kati netbsd-curses kakoune iglunix rust toybox busybox less file pci-ids e2fsprogs util-linux linux-pam kbd)
cp_packages ${ROOT} cp_packages ${ROOT}
echo "Linked ld.lld (from llvm) to ld"
ln -s /usr/bin/ld.lld /usr/bin/ld
echo "Copying misc files & creating misc dirs for live-usb" echo "Copying misc files & creating misc dirs for live-usb"
mkdir ${ROOT}/proc/
mkdir ${ROOT}/dev/
mkdir ${ROOT}/tmp/
mkdir ${ROOT}/sys/
mkdir ${ROOT}/mnt/
mkdir ${ROOT}/etc/ mkdir ${ROOT}/etc/
mkdir ${ROOT}/root/ mkdir ${ROOT}/root/
cp ./pkgs/tiny-linux-bootloader/fstab ${ROOT}/etc/fstab cp ./pkgs/tiny-linux-bootloader/fstab ${ROOT}/etc/fstab
cp /etc/hostname ${ROOT}/hostname cp /etc/hostname ${ROOT}/etc/hostname
cp /etc/passwd ${ROOT}/etc/passwd
touch ${ROOT}/etc/shadow
echo "Using the host keymap" echo "Using the host keymap"
cp /etc/vconsole.conf ${ROOT}/etc/vconsole.conf cp /etc/vconsole.conf ${ROOT}/etc/vconsole.conf
#TODO: this is a systemd file,
# use udev/kbd
echo "Copying init.d files& inittab"
mkdir ${ROOT}/etc/init.d/
cp -r /iglunix/init/init.d ${ROOT}/etc/
cp /iglunix/init/inittab ${ROOT}/etc/
echo "Unmounting & closing loopback" echo "Unmounting & closing loopback"

View file

@ -57,7 +57,8 @@ done
echo "Starting switch_root" echo "Starting switch_root"
exec switch_root /mnt /bin/sh #exec switch_root /mnt /etc/init.d/rcS
exec switch_root /mnt /sbin/init
EOF EOF

52
iglu.sh
View file

@ -14,6 +14,13 @@ HELP="
-iu install update or install upgrade -iu install update or install upgrade
-ui alias to \`-iu\` -ui alias to \`-iu\`
These needs iglunix-dev (iglupkg) installed
-b build
-bi build and install the current package
-biu build and install update the current package
-bui alias to \`-iu\`
NOT IMPLEMENTED: NOT IMPLEMENTED:
-o root" -o root"
@ -66,7 +73,14 @@ dep_not_found() {
exit 1 exit 1
} }
i= u= l= f= o= d= iu= iglupkg_check() {
if ! command -v iglupkg > /dev/null 2>&1; then
echo "iglupkg from iglunix-dev needs to be installed"
exit 1
fi
}
b= bi= i= u= l= f= o= d= iu=
@ -79,7 +93,11 @@ case "$1" in
-d) d=1;; -d) d=1;;
-iu) iu=1;; -iu) iu=1;;
-ui) iu=1;; -ui) iu=1;;
-b) b=1;;
-bi) bi=1;;
-biu) biu=1;;
-bui) biu=1;;
-h) usage;; -h) usage;;
--help) usage;; --help) usage;;
@ -99,10 +117,12 @@ do
done done
if [ "$d" = "1" ]; then if [ "$d" = "1" ]; then
#LIST DEPS
stat /usr/share/iglupkg/$1 > /dev/null 2> /dev/null || find_fail stat /usr/share/iglupkg/$1 > /dev/null 2> /dev/null || find_fail
grep deps /usr/share/iglupkg/$1 | tr '=' '\n' | grep -v deps | tr ':' '\n' grep deps /usr/share/iglupkg/$1 | tr '=' '\n' | grep -v deps | tr ':' '\n'
elif [ "$iu" = "1" ]; then elif [ "$iu" = "1" ]; then
#INSTALL & UPDATE
# Setup names # Setup names
bname_we=$(basename "$1") bname_we=$(basename "$1")
bname=$(echo "$bname_we" | cut -f 1 -d '.') bname=$(echo "$bname_we" | cut -f 1 -d '.')
@ -154,6 +174,7 @@ elif [ "$iu" = "1" ]; then
echo $NFILES echo $NFILES
elif [ "$i" = "1" ]; then elif [ "$i" = "1" ]; then
#INSTALL
bname_we=$(basename "$1") bname_we=$(basename "$1")
bname=$(echo "$bname_we" | cut -f 1 -d '.') bname=$(echo "$bname_we" | cut -f 1 -d '.')
stat /usr/share/iglupkg/$bname > /dev/null 2> /dev/null && already_exists stat /usr/share/iglupkg/$bname > /dev/null 2> /dev/null && already_exists
@ -169,12 +190,17 @@ elif [ "$i" = "1" ]; then
tar -xf $1 -C / tar -xf $1 -C /
rm -r /tmp/iglunix/$bname_we rm -r /tmp/iglunix/$bname_we
elif [ "$f" = "1" ]; then elif [ "$f" = "1" ]; then
#LIST INSTALLED FILES
stat /usr/share/iglupkg/$1 > /dev/null 2> /dev/null || find_fail stat /usr/share/iglupkg/$1 > /dev/null 2> /dev/null || find_fail
sed -n '/\[fs\]/,$p' /usr/share/iglupkg/$1 | grep -v "\[fs\]" sed -n '/\[fs\]/,$p' /usr/share/iglupkg/$1 | grep -v "\[fs\]"
elif [ "$l" = "1" ]; then elif [ "$l" = "1" ]; then
#LICENSE
stat /usr/share/iglupkg/$1 > /dev/null 2> /dev/null || find_fail stat /usr/share/iglupkg/$1 > /dev/null 2> /dev/null || find_fail
sed -n '/\[license\]/,/\[fs\]/{/\[license\]\|\[fs\]/!p}' /usr/share/iglupkg/$1 sed -n '/\[license\]/,/\[fs\]/{/\[license\]\|\[fs\]/!p}' /usr/share/iglupkg/$1
elif [ "$u" = "1" ]; then elif [ "$u" = "1" ]; then
#UNINSTALL
stat /usr/share/iglupkg/$1 > /dev/null 2> /dev/null || find_fail stat /usr/share/iglupkg/$1 > /dev/null 2> /dev/null || find_fail
FILES=$(sed -n '/\[fs\]/,$p' /usr/share/iglupkg/$1 | grep -v "\[fs\]" | awk '{print length, $0}' | sort -rn | cut -d " " -f2-) FILES=$(sed -n '/\[fs\]/,$p' /usr/share/iglupkg/$1 | grep -v "\[fs\]" | awk '{print length, $0}' | sort -rn | cut -d " " -f2-)
@ -189,4 +215,26 @@ elif [ "$u" = "1" ]; then
*) echo "can't remove $file";; *) echo "can't remove $file";;
esac esac
done done
elif [ "$b" = "1" ]; then
#BUILD
iglupkg_check
iglupkg || exit 1
elif [ "$bi" = "1" ]; then
#BUILD INSTALL
iglupkg_check
iglupkg || exit 1
cd out/
for pkg in *.tar.xz; do
iglu -i "$pkg"
done
elif [ "$biu" = "1" ]; then
#BUILD INSTALL UPDATE
iglupkg_check
iglupkg || exit 1
cd out/
for pkg in *.tar.xz; do
iglu -iu "$pkg"
done
fi fi

4
init/init.d/net Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
ip link set lo up
ip link set eth0 up
udhcpc -i eth0 -x hostname:$(cat /etc/hostname)

29
init/init.d/rcS Executable file
View file

@ -0,0 +1,29 @@
#!/bin/sh
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t tmpfs tmpfs /tmp
echo 0 > /proc/sys/kernel/printk
ln -s /proc/self/fs/0 /dev/stdin
ln -s /proc/self/fs/1 /dev/stdout
ln -s /proc/self/fs/2 /dev/stderr
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts
hostname -F /etc/hostname
mdev -s
mdev -d
mount -a
/etc/init.d/net
/etc/init.d/sshd
#See https://github.com/landley/toybox/issues/111
echo 0 9999999 > /proc/sys/net/ipv4/ping_group_range
/bin/sh

3
init/init.d/sshd Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
/usr/sbin/sshd -R -s

8
init/inittab Normal file
View file

@ -0,0 +1,8 @@
::sysinit:/etc/init.d/rcS
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init
ttyS0::askfirst:-/bin/sh
::respawn:/sbin/getty 38400 tty1
::respawn:/sbin/getty 38400 tty2

30
pkgs/ccache/build.sh Normal file
View file

@ -0,0 +1,30 @@
pkgname=ccache
pkgver=4.2.1
fetch() {
curl -L "https://github.com/ccache/ccache/releases/download/v4.2.1/ccache-4.2.1.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

28
pkgs/cmph/build.sh Normal file
View file

@ -0,0 +1,28 @@
pkgname=cmph
pkgver=2.0.2
fetch() {
curl -L "http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

27
pkgs/ffmpeg/build.sh Normal file
View file

@ -0,0 +1,27 @@
pkgname=ffmpeg
pkgver=4.3.2
fetch() {
curl "https://ffmpeg.org/releases/ffmpeg-4.3.2.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--cc=cc
gmake
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,10 +1,9 @@
pkgname=kbd pkgname=kbd
pkgver=2.4.0 pkgver=2.4.0
fetch() { fetch() {
curl "https://mirrors.edge.kernel.org/pub/linux/utils/kbd/kbd-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz curl "https://mirrors.edge.kernel.org/pub/linux/utils/kbd/kbd-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
curl "https://raw.githubusercontent.com/workman-layout/Workman/master/linux_console/workman.iso15.kmap" -o workman.map
tar -xf $pkgname-$pkgver.tar.xz tar -xf $pkgname-$pkgver.tar.xz
} }
@ -13,7 +12,9 @@ build() {
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--build=x86_64-unknown-linux-musl \ --build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl --host=x86_64-unknown-linux-musl \
--disable-tests \
--sysconfdir=/etc
make make
} }
@ -21,6 +22,8 @@ build() {
package() { package() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
make install DESTDIR=$pkgdir make install DESTDIR=$pkgdir
install -d $pkgdir/usr/share/keymaps/i386/workman/
install -Dm 644 ../workman.map $pkgdir/usr/share/keymaps/i386/workman/
} }
license() { license() {

28
pkgs/libass/build.sh Normal file
View file

@ -0,0 +1,28 @@
pkgname=libass
pkgver=0.15.0
fetch() {
curl -L "https://github.com/libass/libass/releases/download/0.15.0/libass-0.15.0.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl \
--disable-asm
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -1,5 +1,6 @@
pkgver=2.4.103 pkgver=2.4.103
pkgname=libdrm pkgname=libdrm
dep="libpciaccess"
bad="" bad=""
ext="dev" ext="dev"

35
pkgs/libnl-tiny/build.sh Normal file
View file

@ -0,0 +1,35 @@
pkgname=libnl-tiny
pkgver=master
fetch() {
curl "https://git.openwrt.org/?p=project/libnl-tiny.git;a=snapshot;h=HEAD;sf=tgz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../cmake-no-extra-errs.patch .
mv $pkgname-HEAD-* $pkgname-$pkgver
mkdir $pkgname-$pkgver/build
cd $pkgname-$pkgver
patch -p1 < ../cmake-no-extra-errs.patch
}
build() {
cd $pkgname-$pkgver
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
ln -sr $pkgdir/usr/lib/pkgconfig/libnl-tiny.pc $pkgdir/usr/lib/pkgconfig/libnl-3.0.pc
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@
INCLUDE_DIRECTORIES(include)
-ADD_DEFINITIONS(-Wall -Werror -Wextra -Wno-unused-parameter)
+#ADD_DEFINITIONS(-Wall -Werror -Wextra -Wno-unused-parameter)
STRING(REPLACE "-DNDEBUG" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
ADD_LIBRARY(nl-tiny SHARED

41
pkgs/libnl/build.sh Normal file
View file

@ -0,0 +1,41 @@
pkgname=libnl
pkgver=3.5.0
fetch() {
curl -L "https://github.com/thom311/libnl/releases/download/libnl3_5_0/libnl-3.5.0.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../byacc-p-makefile.patch .
cp ../byacc-syntax.patch .
cp ../byacc-comment-defines.patch .
cd $pkgname-$pkgver
patch -p1 < ../byacc-syntax.patch
}
build() {
cd $pkgname-$pkgver
YACC=byacc ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
patch -p1 < ../byacc-p-makefile.patch
gmake
patch -p1 < ../byacc-comment-defines.patch
gmake
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -0,0 +1,34 @@
--- a/lib/route/cls/ematch_syntax.c
+++ b/lib/route/cls/ematch_syntax.c
@@ -218,12 +218,12 @@
#define KW_CLOSE 265
#define KW_PLUS 266
#define KW_MASK 267
-#define mask 268
+// #define mask 268
#define KW_SHIFT 269
#define KW_AT 271
#define at 272
#define EMATCH_CMP 273
-#define cmp 274
+// #define cmp 274
#define EMATCH_NBYTE 275
#define pattern 276
#define EMATCH_TEXT 277
--- a/lib/route/cls/ematch_syntax.h
+++ b/lib/route/cls/ematch_syntax.h
@@ -12,12 +12,12 @@
#define KW_CLOSE 265
#define KW_PLUS 266
#define KW_MASK 267
-#define mask 268
+// #define mask 268
#define KW_SHIFT 269
#define KW_AT 271
#define at 272
#define EMATCH_CMP 273
-#define cmp 274
+// #define cmp 274
#define EMATCH_NBYTE 275
#define pattern 276
#define EMATCH_TEXT 277

View file

@ -0,0 +1,20 @@
--- a/Makefile
+++ b/Makefile
@@ -7619,7 +7619,7 @@
@true
lib/route/pktloc_syntax.c: lib/route/pktloc_syntax.y lib/route/.dirstamp
- $(AM_V_GEN) $(YACC) -d $(YFLAGS) -o $@ $<
+ $(AM_V_GEN) $(YACC) -p pktloc_ -d $(YFLAGS) -o $@ $<
lib/route/cls/ematch_grammar.h: lib/route/cls/ematch_grammar.c
@true
@@ -7631,7 +7631,7 @@
@true
lib/route/cls/ematch_syntax.c: lib/route/cls/ematch_syntax.y lib/route/cls/.dirstamp
- $(AM_V_GEN) $(YACC) -d $(YFLAGS) -o $@ $<
+ $(AM_V_GEN) $(YACC) -p ematch_ -d $(YFLAGS) -o $@ $<
$(lib_libnl_route_3_la_OBJECTS): $(grammar_files_headers)

View file

@ -0,0 +1,64 @@
--- a/lib/route/cls/ematch_syntax.y
+++ b/lib/route/cls/ematch_syntax.y
@@ -30,8 +30,9 @@
%}
%error-verbose
-%define api.pure
-%name-prefix "ematch_"
+%pure-parser
+//%define api.pure
+//%name-prefix "ematch_"
%parse-param {void *scanner}
%parse-param {char **errp}
--- a/lib/route/pktloc_syntax.y
+++ b/lib/route/pktloc_syntax.y
@@ -6,10 +6,22 @@
#include <netlink/route/pktloc.h>
%}
+%{
+struct YYLTYPE;
+union YYSTYPE;
+extern int pktloc_lex(union YYSTYPE *, struct YYLTYPE *, void *);
+
+static void yyerror(struct YYLTYPE *locp, void *scanner, const char *msg)
+{
+ NL_DBG(1, "Error while parsing packet location file: %s\n", msg);
+}
+%}
+
%locations
%error-verbose
-%define api.pure
-%name-prefix "pktloc_"
+//%define api.pure
+%pure-parser
+//%name-prefix "pktloc_"
%parse-param {void *scanner}
%lex-param {void *scanner}
@@ -21,15 +33,6 @@
char *s;
}
-%{
-extern int pktloc_lex(YYSTYPE *, YYLTYPE *, void *);
-
-static void yyerror(YYLTYPE *locp, void *scanner, const char *msg)
-{
- NL_DBG(1, "Error while parsing packet location file: %s\n", msg);
-}
-%}
-
%token <i> ERROR NUMBER LAYER ALIGN
%token <s> NAME
@@ -101,3 +104,6 @@
| NUMBER
{ $$ = $1; }
;
+
+%%
+

View file

@ -0,0 +1,30 @@
pkgname=libpciaccess
pkgver=master
fetch() {
curl "https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/archive/master/libpciaccess-master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
meson .. \
--buildtype=release \
--prefix=/usr \
--libexecdir=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
# cat LICENSE
cat COPYING
}

View file

@ -1,11 +1,11 @@
pkgver=3.3.1 pkgver=3.3.2
pkgname=libressl pkgname=libressl
pkgrel=1 pkgrel=1
bad="" bad=""
ext="doc:dev" ext="doc:dev"
fetch() { fetch() {
curl -L "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.3.1.tar.gz" -o $pkgname-$pkgver.tar.gz curl -L "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz tar -xf $pkgname-$pkgver.tar.gz
} }

View file

@ -1,4 +1,4 @@
pkgver=5.10.12 pkgver=5.11.15
pkgname=linux pkgname=linux
pkgrel=1 pkgrel=1
ext="dev" ext="dev"

File diff suppressed because it is too large Load diff

View file

@ -1,12 +1,15 @@
pkgver=11.1.0 pkgver=12.0.0
pkgname=llvm pkgname=llvm
bad="" bad=""
ext="dev" ext="dev"
fetch() { fetch() {
curl -L "https://github.com/llvm/llvm-project/releases/download/llvmorg-11.1.0/llvm-project-11.1.0.src.tar.xz" -o $pkgname-$pkgver.tar.gz curl -L "https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/llvm-project-$pkgver.src.tar.xz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz tar -xf $pkgname-$pkgver.tar.gz
mv llvm-project-$pkgver.src $pkgname-$pkgver mv llvm-project-$pkgver.src $pkgname-$pkgver
cp -n ../default.llvm.conf /etc/iglupkg/llvm.conf
[ ../default/llvm.conf -nt /etc/iglupkg/llvm.conf ] && echo "WARNING: the default config file is newer than your config file." done
} }
build() { build() {
@ -82,6 +85,7 @@ build() {
-DCOMPILER_RT_INCLUDE_TESTS=OFF \ -DCOMPILER_RT_INCLUDE_TESTS=OFF \
-DCOMPILER_RT_BUILD_SANITIZERS=OFF \ -DCOMPILER_RT_BUILD_SANITIZERS=OFF \
-DCOMPILER_RT_BUILD_XRAY=OFF \ -DCOMPILER_RT_BUILD_XRAY=OFF \
-DCOMPILER_RT_BUILD_MEMPROF=OFF \
-DCOMPILER_RT_INCLUDE_TESTS=OFF \ -DCOMPILER_RT_INCLUDE_TESTS=OFF \
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF \ -DCOMPILER_RT_BUILD_LIBFUZZER=OFF \
-DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=TRUE \ -DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=TRUE \

View file

@ -0,0 +1,5 @@
#Uncomment this to get the latest release candiate
#export RC
#Uncomment this to get the latest git version
#export GIT

30
pkgs/md4c/build.sh Normal file
View file

@ -0,0 +1,30 @@
pkgname=md4c
pkgver=master
fetch() {
curl -L "https://github.com/mity/md4c/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

31
pkgs/mdtohtml/build.sh Normal file
View file

@ -0,0 +1,31 @@
pkgname=mdtohtml
pkgver=master
fetch() {
curl -L "https://github.com/gomarkdown/mdtohtml/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../go.mod .
cp ../go.sum .
cp ../exts.patch .
cd $pkgname-$pkgver
patch -p1 < ../exts.patch
}
build() {
cd $pkgname-$pkgver
mkdir build
cp ../go.mod .
cp ../go.sum .
go build -o build
}
package() {
cd $pkgname-$pkgver
install -Dm755 build/$pkgname $pkgdir/usr/bin/$pkgname
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

12
pkgs/mdtohtml/exts.patch Normal file
View file

@ -0,0 +1,12 @@
--- a/main.go
+++ b/main.go
@@ -100,7 +100,8 @@
parser.FencedCode |
parser.Autolink |
parser.Strikethrough |
- parser.SpaceHeadings
+ parser.SpaceHeadings |
+ parser.Footnotes
var renderer markdown.Renderer
if latex {

5
pkgs/mdtohtml/go.mod Normal file
View file

@ -0,0 +1,5 @@
module github.com/gomarkdown/mdtohtml
go 1.16
require github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8 // indirect

3
pkgs/mdtohtml/go.sum Normal file
View file

@ -0,0 +1,3 @@
github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8 h1:nWU6p08f1VgIalT6iZyqXi4o5cZsz4X6qa87nusfcsc=
github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8/go.mod h1:aii0r/K0ZnHv7G0KF7xy1v0A7s2Ljrb5byB7MO5p6TU=
golang.org/dl v0.0.0-20190829154251-82a15e2f2ead/go.mod h1:IUMfjQLJQd4UTqG1Z90tenwKoCX93Gn3MAQJMOSBsDQ=

View file

@ -1,6 +1,6 @@
pkgname=mesa pkgname=mesa
pkgver=build-byacc pkgver=build-byacc
deps="musl:wayland:wayland-protocols:llvm:zlib:expat:libffi:libdrm" deps="musl:wayland:wayland-protocols:llvm:zlib:expat:libffi:libdrm:python-mako"
ext=dev ext=dev
fetch() { fetch() {

26
pkgs/mpv/build.sh Normal file
View file

@ -0,0 +1,26 @@
pkgname=mpv
pkgver=0.33.1
fetch() {
curl -L "https://github.com/mpv-player/mpv/archive/refs/tags/v0.33.1.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./bootstrap.py
./waf configure --prefix=/usr --confdir=/etc/mpv --enable-libmpv-shared
./waf build
}
package() {
cd $pkgname-$pkgver
./waf install --destdir=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

31
pkgs/pixman/build.sh Normal file
View file

@ -0,0 +1,31 @@
pkgname=pixman
pkgver=master
fetch() {
curl "https://gitlab.freedesktop.org/pixman/pixman/-/archive/master/pixman-master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
meson .. \
--prefix=/usr \
--buildtype=release \
--libexecdir=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
# cat LICENSE
cat COPYING
}

27
pkgs/rawk/build.sh Normal file
View file

@ -0,0 +1,27 @@
pkgname=rawk
pkgver=master
fetch() {
curl -L "https://github.com/kisom/rawk/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../cp-u.patch .
cd $pkgname-$pkgver
patch -p1 < ../cp-u.patch
}
build() {
cd $pkgname-$pkgver
PREFIX=/usr ./config.sh
make
}
package() {
cd $pkgname-$pkgver
make install PREFIX=$pkgdir/usr/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

20
pkgs/rawk/cp-u.patch Normal file
View file

@ -0,0 +1,20 @@
--- a/rawk
+++ b/rawk
@@ -98,7 +98,7 @@
if [ -n "$stylesheet" ]; then
mkdir -p "$target"/styles
- cp -u "$stylesheet" "$target"/styles/style.css
+ cp "$stylesheet" "$target"/styles/style.css
fi
cd "$src_dir"
@@ -119,7 +119,7 @@
if [ -d "$i" ]; then
mkdir -p "$o"
else
- cp -u "$i" "$o"
+ cp "$i" "$o"
fi
;;
esac

30
pkgs/ribidi/build.sh Normal file
View file

@ -0,0 +1,30 @@
pkgname=ribidi
pkgver=main
fetch() {
curl -L "https://github.com/iglunix/ribidi/archive/refs/heads/main.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
cargo build --release --all-features
}
package() {
cd $pkgname-$pkgver
install -Dm755 target/release/lib$pkgname.so $pkgdir/usr/lib/
install -Dm644 include/ribidi.h $pkgdir/usr/include/ribidi/
install -d $pkgdir/usr/include/fribidi
ln -sr $pkgdir/usr/include/ribidi/ribidi.h $pkgdir/usr/include/fribidi/fribidi.h
install -Dm644 $pkgname.pc $pkgdir/usr/lib/pkgconfig/
install -Dm644 f$pkgname.pc $pkgdir/usr/lib/pkgconfig/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

24
pkgs/smu/build.sh Normal file
View file

@ -0,0 +1,24 @@
pkgname=smu
pkgver=master
fetch() {
curl -L "https://github.com/Gottox/smu/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../config.mk .
}
build() {
cd $pkgname-$pkgver
cp ../config.mk .
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

20
pkgs/smu/config.mk Normal file
View file

@ -0,0 +1,20 @@
# smu version
VERSION = 1.5
# paths
PREFIX = /usr
MANPREFIX = ${PREFIX}/share/man
# includes and libs
INCS = -I. -I/usr/include
LIBS = -L/usr/lib
# flags
CFLAGS = -g -O0 -Wall -Werror -ansi ${INCS} -DVERSION=\"${VERSION}\"
#CFLAGS = -fprofile-arcs -ftest-coverage -pg -g -O0 -Wall -Werror -ansi ${INCS} -DVERSION=\"${VERSION}\"
#CFLAGS = -Os -Wall -Werror -ansi ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = -fprofile-arcs -ftest-coverage -pg ${LIBS}
LDFLAGS = ${LIBS}
# compiler
CC = cc

View file

@ -0,0 +1,24 @@
pkgname=squashfs-tools
pkgver=master
fetch() {
curl -L "https://github.com/plougher/squashfs-tools/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
cd $pkgname
gmake
}
package() {
cd $pkgname-$pkgver
cd $pkgname
gmake install INSTALL_DIR=$pkgdir/usr/bin
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -1,5 +1,6 @@
pkgname=swc pkgname=swc
pkgver=master pkgver=master
deps="wld:pixman"
fetch() { fetch() {
curl -L "https://github.com/michaelforney/swc/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz curl -L "https://github.com/michaelforney/swc/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz

View file

@ -7,6 +7,7 @@ fetch() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
patch -p1 < ../../build.patch patch -p1 < ../../build.patch
patch -p1 < ../../bsect.patch patch -p1 < ../../bsect.patch
patch -p1 < ../../remove-dead.patch
} }
package() { package() {

View file

@ -0,0 +1,11 @@
--- a/bsect.asm
+++ b/bsect.asm
@@ -135,7 +135,7 @@
.loop:
cmp edx, 127*512
jl loader.part_2
- jz loader.finish
+; jz loader.finish
mov ax, 127 ;count
xor bx, bx ; offset

View file

@ -1,5 +1,6 @@
pkgname=wayland-protocols pkgname=wayland-protocols
pkgver=1.20 pkgver=1.20
deps="pkgconf:wayland"
fetch() { fetch() {
curl "https://wayland.freedesktop.org/releases/wayland-protocols-1.20.tar.xz" -o $pkgname-$pkgver.tar.xz curl "https://wayland.freedesktop.org/releases/wayland-protocols-1.20.tar.xz" -o $pkgname-$pkgver.tar.xz

View file

@ -1,5 +1,6 @@
pkgname=wayland pkgname=wayland
pkgver=1.19.0 pkgver=1.19.0
deps="libxml2"
fetch() { fetch() {
curl "https://wayland.freedesktop.org/releases/wayland-1.19.0.tar.xz" -o $pkgname-$pkgver.tar.xz curl "https://wayland.freedesktop.org/releases/wayland-1.19.0.tar.xz" -o $pkgname-$pkgver.tar.xz

View file

@ -1,5 +1,6 @@
pkgname=wld pkgname=wld
pkgver=master pkgver=master
deps="fontconfig"
fetch() { fetch() {
curl -L "https://github.com/michaelforney/wld/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz curl -L "https://github.com/michaelforney/wld/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz

View file

@ -0,0 +1,37 @@
pkgname=wpa_supplicant
pkgver=2.9
fetch() {
curl "https://w1.fi/releases/wpa_supplicant-2.9.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../config .
}
build() {
#############################################################################
# This software is unlikely to be secure in the way that we are building it #
# #
# USE AT YOUR OWN RISK! #
# #
#############################################################################
cd $pkgname-$pkgver
cd $pkgname
cp ../../config .config
gmake
}
package() {
cd $pkgname-$pkgver
cd $pkgname
gmake install DESTDIR=$pkgdir BINDIR=/usr/sbin
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

620
pkgs/wpa_supplicant/config Normal file
View file

@ -0,0 +1,620 @@
# Example wpa_supplicant build time configuration
#
# This file lists the configuration options that are used when building the
# wpa_supplicant 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 cases, these lines should use += in order not
# to override previous values of the variables.
# Uncomment following two lines and fix the paths if you have installed OpenSSL
# or GnuTLS in non-default location
#CFLAGS += -I/usr/local/openssl/include
#LIBS += -L/usr/local/openssl/lib
# Some Red Hat versions seem to include kerberos header files from OpenSSL, but
# the kerberos files are not in the default include path. Following line can be
# used to fix build issues on such systems (krb5.h not found).
#CFLAGS += -I/usr/include/kerberos
# Driver interface for generic Linux wireless extensions
# Note: WEXT is deprecated in the current Linux kernel version and no new
# functionality is added to it. nl80211-based interface is the new
# replacement for WEXT and its use allows wpa_supplicant to properly control
# the driver to improve existing functionality like roaming and to support new
# functionality.
CONFIG_DRIVER_WEXT=y
# Driver interface for Linux 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 Windows NDIS
#CONFIG_DRIVER_NDIS=y
#CFLAGS += -I/usr/include/w32api/ddk
#LIBS += -L/usr/local/lib
# For native build using mingw
#CONFIG_NATIVE_WINDOWS=y
# Additional directories for cross-compilation on Linux host for mingw target
#CFLAGS += -I/opt/mingw/mingw32/include/ddk
#LIBS += -L/opt/mingw/mingw32/lib
#CC=mingw32-gcc
# By default, driver_ndis uses WinPcap for low-level operations. This can be
# replaced with the following option which replaces WinPcap calls with NDISUIO.
# However, this requires that WZC is disabled (net stop wzcsvc) before starting
# wpa_supplicant.
# CONFIG_USE_NDISUIO=y
# Driver interface for wired Ethernet drivers
CONFIG_DRIVER_WIRED=y
# Driver interface for MACsec capable Qualcomm Atheros drivers
#CONFIG_DRIVER_MACSEC_QCA=y
# Driver interface for Linux MACsec drivers
#CONFIG_DRIVER_MACSEC_LINUX=y
# Driver interface for the Broadcom RoboSwitch family
#CONFIG_DRIVER_ROBOSWITCH=y
# Driver interface for no driver (e.g., WPS ER only)
#CONFIG_DRIVER_NONE=y
# Solaris libraries
#LIBS += -lsocket -ldlpi -lnsl
#LIBS_c += -lsocket
# Enable IEEE 802.1X Supplicant (automatically included if any EAP method or
# MACsec is included)
CONFIG_IEEE8021X_EAPOL=y
# EAP-MD5
CONFIG_EAP_MD5=y
# EAP-MSCHAPv2
CONFIG_EAP_MSCHAPV2=y
# EAP-TLS
CONFIG_EAP_TLS=y
# EAL-PEAP
CONFIG_EAP_PEAP=y
# EAP-TTLS
CONFIG_EAP_TTLS=y
# EAP-FAST
CONFIG_EAP_FAST=y
# EAP-TEAP
# 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
# EAP-GTC
CONFIG_EAP_GTC=y
# EAP-OTP
CONFIG_EAP_OTP=y
# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
#CONFIG_EAP_SIM=y
# Enable SIM simulator (Milenage) for EAP-SIM
#CONFIG_SIM_SIMULATOR=y
# EAP-PSK (experimental; this is _not_ needed for WPA-PSK)
#CONFIG_EAP_PSK=y
# EAP-pwd (secure authentication using only a password)
#CONFIG_EAP_PWD=y
# EAP-PAX
#CONFIG_EAP_PAX=y
# LEAP
CONFIG_EAP_LEAP=y
# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
#CONFIG_EAP_AKA=y
# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
# This requires CONFIG_EAP_AKA to be enabled, too.
#CONFIG_EAP_AKA_PRIME=y
# Enable USIM simulator (Milenage) for EAP-AKA
#CONFIG_USIM_SIMULATOR=y
# EAP-SAKE
#CONFIG_EAP_SAKE=y
# EAP-GPSK
#CONFIG_EAP_GPSK=y
# Include support for optional SHA256 cipher suite in EAP-GPSK
#CONFIG_EAP_GPSK_SHA256=y
# EAP-TNC and related Trusted Network Connect support (experimental)
#CONFIG_EAP_TNC=y
# Wi-Fi Protected Setup (WPS)
CONFIG_WPS=y
# Enable WPS external registrar functionality
#CONFIG_WPS_ER=y
# Disable credentials for an open network by default when acting as a WPS
# registrar.
#CONFIG_WPS_REG_DISABLE_OPEN=y
# Enable WPS support with NFC config method
#CONFIG_WPS_NFC=y
# EAP-IKEv2
#CONFIG_EAP_IKEV2=y
# EAP-EKE
#CONFIG_EAP_EKE=y
# MACsec
#CONFIG_MACSEC=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
# Smartcard support (i.e., private key on a smartcard), e.g., with openssl
# engine.
CONFIG_SMARTCARD=y
# PC/SC interface for smartcards (USIM, GSM SIM)
# Enable this if EAP-SIM or EAP-AKA is included
#CONFIG_PCSC=y
# Support HT overrides (disable HT/HT40, mask MCS rates, etc.)
CONFIG_HT_OVERRIDES=y
# Support VHT overrides (disable VHT, mask MCS rates, etc.)
CONFIG_VHT_OVERRIDES=y
# Development testing
#CONFIG_EAPOL_TEST=y
# Select control interface backend for external programs, e.g, wpa_cli:
# unix = UNIX domain sockets (default for Linux/*BSD)
# udp = UDP sockets using localhost (127.0.0.1)
# udp6 = UDP IPv6 sockets using localhost (::1)
# named_pipe = Windows Named Pipe (default for Windows)
# udp-remote = UDP sockets with remote access (only for tests systems/purpose)
# udp6-remote = UDP IPv6 sockets with remote access (only for tests purpose)
# y = use default (backwards compatibility)
# If this option is commented out, control interface is not included in the
# build.
CONFIG_CTRL_IFACE=y
# Include support for GNU Readline and History Libraries in wpa_cli.
# When building a wpa_cli binary for distribution, please note that these
# libraries are licensed under GPL and as such, BSD license may not apply for
# the resulting binary.
#CONFIG_READLINE=y
# Include internal line edit mode in wpa_cli. This can be used as a replacement
# for GNU Readline to provide limited command line editing and history support.
#CONFIG_WPA_CLI_EDIT=y
# Remove debugging code that is printing out debug message to stdout.
# This can be used to reduce the size of the wpa_supplicant considerably
# if debugging code is not needed. The size reduction can be around 35%
# (e.g., 90 kB).
#CONFIG_NO_STDOUT_DEBUG=y
# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save
# 35-50 kB in code size.
#CONFIG_NO_WPA=y
# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support
# This option can be used to reduce code size by removing support for
# converting ASCII passphrases into PSK. If this functionality is removed, the
# PSK can only be configured as the 64-octet hexstring (e.g., from
# wpa_passphrase). This saves about 0.5 kB in code size.
#CONFIG_NO_WPA_PASSPHRASE=y
# Simultaneous Authentication of Equals (SAE), WPA3-Personal
#CONFIG_SAE=y
# Disable scan result processing (ap_mode=1) to save code size by about 1 kB.
# This can be used if ap_scan=1 mode is never enabled.
#CONFIG_NO_SCAN_PROCESSING=y
# Select configuration backend:
# file = text file (e.g., wpa_supplicant.conf; note: the configuration file
# path is given on command line, not here; this option is just used to
# select the backend that allows configuration files to be used)
# winreg = Windows registry (see win_example.reg for an example)
CONFIG_BACKEND=file
# Remove configuration write functionality (i.e., to allow the configuration
# file to be updated based on runtime configuration changes). The runtime
# configuration can still be changed, the changes are just not going to be
# persistent over restarts. This option can be used to reduce code size by
# about 3.5 kB.
#CONFIG_NO_CONFIG_WRITE=y
# Remove support for configuration blobs to reduce code size by about 1.5 kB.
#CONFIG_NO_CONFIG_BLOBS=y
# Select program entry point implementation:
# main = UNIX/POSIX like main() function (default)
# main_winsvc = Windows service (read parameters from registry)
# main_none = Very basic example (development use only)
#CONFIG_MAIN=main
# Select wrapper for operating system and C library specific functions
# unix = UNIX/POSIX like systems (default)
# win32 = Windows systems
# none = Empty template
#CONFIG_OS=unix
# Select event loop implementation
# eloop = select() loop (default)
# eloop_win = Windows events and WaitForMultipleObject() loop
#CONFIG_ELOOP=eloop
# 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 layer 2 packet implementation
# linux = Linux packet socket (default)
# pcap = libpcap/libdnet/WinPcap
# freebsd = FreeBSD libpcap
# winpcap = WinPcap with receive thread
# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y)
# none = Empty template
#CONFIG_L2_PACKET=linux
# Disable Linux packet socket workaround applicable for station interface
# in a bridge for EAPOL frames. This should be uncommented only if the kernel
# is known to not have the regression issue in packet socket behavior with
# bridge interfaces (commit 'bridge: respect RFC2863 operational state')').
CONFIG_NO_LINUX_PACKET_SOCKET_WAR=y
# IEEE 802.11w (management frame protection), also known as PMF
# Driver support is also needed for IEEE 802.11w.
#CONFIG_IEEE80211W=y
# Support Operating Channel Validation
#CONFIG_OCV=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=internal
# 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. It should be noted that some existing TLS v1.0 -based
# implementation may not be compatible with TLS v1.1 message (ClientHello is
# sent prior to negotiating which version will be 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. It should be
# noted that some existing TLS v1.0 -based implementation may not be compatible
# with TLS v1.2 message (ClientHello is sent prior to negotiating which version
# will be used)
#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
# Include NDIS event processing through WMI into wpa_supplicant/wpasvc.
# This is only for Windows builds and requires WMI-related header files and
# WbemUuid.Lib from Platform SDK even when building with MinGW.
#CONFIG_NDIS_EVENTS_INTEGRATED=y
#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib"
# Add support for new DBus control interface
# (fi.w1.hostap.wpa_supplicant1)
#CONFIG_CTRL_IFACE_DBUS_NEW=y
# Add introspection support for new DBus control interface
#CONFIG_CTRL_IFACE_DBUS_INTRO=y
# Add support for loading EAP methods dynamically as shared libraries.
# When this option is enabled, each EAP method can be either included
# statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn).
# Dynamic EAP methods are build as shared objects (eap_*.so) and they need to
# be loaded in the beginning of the wpa_supplicant configuration file
# (see load_dynamic_eap parameter in the example file) before being used in
# the network blocks.
#
# Note that some shared parts of EAP methods are included in the main program
# and in order to be able to use dynamic EAP methods using these parts, the
# main program must have been build with the EAP method enabled (=y or =dyn).
# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as dynamic libraries
# unless at least one of them was included in the main build to force inclusion
# of the shared code. Similarly, at least one of EAP-SIM/AKA must be included
# in the main build to be able to load these methods dynamically.
#
# Please also note that using dynamic libraries will increase the total binary
# size. Thus, it may not be the best option for targets that have limited
# amount of memory/flash.
#CONFIG_DYNAMIC_EAP_METHODS=y
# IEEE Std 802.11r-2008 (Fast BSS Transition) for station mode
CONFIG_IEEE80211R=y
# Add support for writing debug log to a file (/tmp/wpa_supplicant-log-#.txt)
#CONFIG_DEBUG_FILE=y
# Send debug messages to syslog instead of stdout
CONFIG_DEBUG_SYSLOG=y
# Set syslog facility for debug messages
CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
# 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
# Add support for writing debug log to Android logcat instead of standard
# output
#CONFIG_ANDROID_LOG=y
# Enable privilege separation (see README 'Privilege separation' for details)
#CONFIG_PRIVSEP=y
# Enable mitigation against certain attacks against TKIP by delaying Michael
# MIC error reports by a random amount of time between 0 and 60 seconds
#CONFIG_DELAYED_MIC_ERROR_REPORT=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, uncomment 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, uncomment these.
#LIBS += -lbfd -liberty -lz
#LIBS_p += -lbfd -liberty -lz
#LIBS_c += -lbfd -liberty -lz
# wpa_supplicant 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 wpa_supplicant 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, wpa_supplicant 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.
#
# wpa_supplicant 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 wpa_supplicant.
#
# 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 wpa_supplicant 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
# IEEE 802.11n (High Throughput) support (mainly for AP mode)
#CONFIG_IEEE80211N=y
# IEEE 802.11ac (Very High Throughput) support (mainly for AP mode)
# (depends on CONFIG_IEEE80211N)
#CONFIG_IEEE80211AC=y
# Wireless Network Management (IEEE Std 802.11v-2011)
# Note: This is experimental and not complete implementation.
CONFIG_WNM=y
# Interworking (IEEE 802.11u)
# This can be used to enable functionality to improve interworking with
# external networks (GAS/ANQP to learn more about the networks and network
# selection based on available credentials).
#CONFIG_INTERWORKING=y
# Hotspot 2.0
#CONFIG_HS20=y
# Enable interface matching in wpa_supplicant
#CONFIG_MATCH_IFACE=y
# Disable roaming in wpa_supplicant
#CONFIG_NO_ROAMING=y
# AP mode operations with wpa_supplicant
# This can be used for controlling AP mode operations with wpa_supplicant. It
# should be noted that this is mainly aimed at simple cases like
# WPA2-Personal while more complex configurations like WPA2-Enterprise with an
# external RADIUS server can be supported with hostapd.
#CONFIG_AP=y
# P2P (Wi-Fi Direct)
# This can be used to enable P2P support in wpa_supplicant. See README-P2P for
# more information on P2P operations.
#CONFIG_P2P=y
# Enable TDLS support
#CONFIG_TDLS=y
# Wi-Fi Display
# This can be used to enable Wi-Fi Display extensions for P2P using an external
# program to control the additional information exchanges in the messages.
#CONFIG_WIFI_DISPLAY=y
# Autoscan
# This can be used to enable automatic scan support in wpa_supplicant.
# See wpa_supplicant.conf for more information on autoscan usage.
#
# Enabling directly a module will enable autoscan support.
# For exponential module:
#CONFIG_AUTOSCAN_EXPONENTIAL=y
# For periodic module:
#CONFIG_AUTOSCAN_PERIODIC=y
# Password (and passphrase, etc.) backend for external storage
# These optional mechanisms can be used to add support for storing passwords
# and other secrets in external (to wpa_supplicant) location. This allows, for
# example, operating system specific key storage to be used
#
# External password backend for testing purposes (developer use)
#CONFIG_EXT_PASSWORD_TEST=y
# Enable Fast Session Transfer (FST)
#CONFIG_FST=y
# Enable CLI commands for FST testing
#CONFIG_FST_TEST=y
# OS X builds. This is only for building eapol_test.
#CONFIG_OSX=y
# Automatic Channel Selection
# This will allow wpa_supplicant to pick the channel automatically when channel
# is set to "0".
#
# TODO: Extend parser to be able to parse "channel=acs_survey" as an alternative
# to "channel=0". This would enable us to eventually add other ACS algorithms 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.
#
# TODO: In analogy to hostapd be able to customize the ACS survey algorithm with
# a newly to create wpa_supplicant.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
# Support Multi Band Operation
#CONFIG_MBO=y
# Fast Initial Link Setup (FILS) (IEEE 802.11ai)
#CONFIG_FILS=y
# FILS shared key authentication with PFS
#CONFIG_FILS_SK_PFS=y
# Support RSN on IBSS networks
# This is needed to be able to use mode=1 network profile with proto=RSN and
# key_mgmt=WPA-PSK (i.e., full key management instead of WPA-None).
CONFIG_IBSS_RSN=y
# External PMKSA cache control
# This can be used to enable control interface commands that allow the current
# PMKSA cache entries to be fetched and new entries to be added.
#CONFIG_PMKSA_CACHE_EXTERNAL=y
# Mesh Networking (IEEE 802.11s)
#CONFIG_MESH=y
# Background scanning modules
# These can be used to request wpa_supplicant to perform background scanning
# operations for roaming within an ESS (same SSID). See the bgscan parameter in
# the wpa_supplicant.conf file for more details.
# Periodic background scans based on signal strength
#CONFIG_BGSCAN_SIMPLE=y
# Learn channels used by the network and try to avoid bgscans on other
# channels (experimental)
#CONFIG_BGSCAN_LEARN=y
# Opportunistic Wireless Encryption (OWE)
# Experimental implementation of draft-harkins-owe-07.txt
#CONFIG_OWE=y
# Device Provisioning Protocol (DPP)
# This requires CONFIG_IEEE80211W=y to be enabled, too. (see
# wpa_supplicant/README-DPP for details)
#CONFIG_DPP=y
# uBus IPC/RPC System
# Services can connect to the bus and provide methods
# that can be called by other services or clients.
CONFIG_UBUS=y