Compare commits
10 Commits
a745c18b7c
...
05781db65b
Author | SHA1 | Date |
---|---|---|
Alexander Zhirov | 05781db65b | |
Alexander Zhirov | ab4baddf8b | |
Alexander Zhirov | 301ead7d09 | |
Alexander Zhirov | be9c79c6b0 | |
Alexander Zhirov | ebc66b0362 | |
Alexander Zhirov | 8fafe981ef | |
Alexander Zhirov | 642ebb5ec1 | |
Alexander Zhirov | 22829c92ee | |
Alexander Zhirov | 858617bf9b | |
Alexander Zhirov | 1076eb2369 |
|
@ -0,0 +1,28 @@
|
|||
# Description: C/C++ configuration file library.
|
||||
# URL: https://github.com/hyperrealm/libconfig
|
||||
# Maintainer: Alexander Zhirov
|
||||
|
||||
name=libconfig
|
||||
version=1.7.3
|
||||
release=1
|
||||
source=(https://github.com/hyperrealm/libconfig/archive/v$version/$name-v$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
autoreconf -fiv
|
||||
|
||||
# dont fail without makeinfo
|
||||
# sed -i 's|all: all-am|all:|1' doc/Makefile.in
|
||||
# sed -i 's|install: install-am|install:|1' doc/Makefile.in
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-static \
|
||||
--disable-examples
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
rm -rf $PKG/usr/share/doc
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
# Description: high-performance event loop/event model with lots of features
|
||||
# URL: http://software.schmorp.de/pkg/libev.html
|
||||
# Maintainer: Alexander Zhirov
|
||||
|
||||
name=libev
|
||||
version=4.33
|
||||
release=1
|
||||
source=(http://dist.schmorp.de/$name/$name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
make
|
||||
make prefix=$PKG/usr install
|
||||
|
||||
# rm $PKG/usr/include/event.h
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
# Description: Pluggable Authentication Modules (PAM) for Linux
|
||||
# URL: http://www.linux-pam.org/
|
||||
# Maintainer: Alexander Zhirov
|
||||
|
||||
name=linux-pam
|
||||
version=1.6.0
|
||||
release=1
|
||||
source=(
|
||||
https://github.com/$name/$name/releases/download/v${version}/Linux-PAM-$version.tar.xz
|
||||
common-account common-auth common-password common-session
|
||||
other
|
||||
pam_namespace.patch
|
||||
)
|
||||
|
||||
build() {
|
||||
cd Linux-PAM-$version
|
||||
|
||||
patch -d . -p0 < ../pam_namespace.patch
|
||||
|
||||
CONFIG_SHELL=/bin/bash ./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/lib \
|
||||
--disable-nls \
|
||||
--disable-prelude \
|
||||
--enable-db=no
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
mv $PKG/lib/pkgconfig $PKG/usr/lib
|
||||
|
||||
# unix_chkpwd needs to be setuid root
|
||||
chmod u+s $PKG/sbin/unix_chkpwd
|
||||
|
||||
mkdir -p $PKG/etc/pam.d
|
||||
install -o root -g root -m 0644 \
|
||||
$SRC/{common-*,other} \
|
||||
$PKG/etc/pam.d/
|
||||
|
||||
rm -rf $PKG/usr/{lib/systemd,share/doc}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#
|
||||
# /etc/pam.d/common-account - common account module configuration
|
||||
#
|
||||
|
||||
account required pam_unix.so
|
|
@ -0,0 +1,5 @@
|
|||
#
|
||||
# /etc/pam.d/common-auth - common auth module configuration
|
||||
#
|
||||
|
||||
auth required pam_unix.so nullok
|
|
@ -0,0 +1,5 @@
|
|||
#
|
||||
# /etc/pam.d/common-password - common password module configuration
|
||||
#
|
||||
|
||||
password required pam_unix.so shadow sha512
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# /etc/pam.d/common-session - common session module configuration
|
||||
#
|
||||
|
||||
session required pam_limits.so
|
||||
session required pam_unix.so
|
||||
session optional pam_dumb_runtime_dir.so
|
|
@ -0,0 +1,13 @@
|
|||
#
|
||||
# /etc/pam.d/other - default deny
|
||||
#
|
||||
|
||||
auth required pam_warn.so
|
||||
auth required pam_deny.so
|
||||
|
||||
account required pam_deny.so
|
||||
|
||||
password required pam_warn.so
|
||||
password required pam_deny.so
|
||||
|
||||
session required pam_deny.so
|
|
@ -0,0 +1,11 @@
|
|||
--- modules/pam_namespace/pam_namespace.c 2024-01-17 10:29:36.000000000 +0000
|
||||
+++ modules/pam_namespace/pam_namespace.c 2024-03-14 15:12:58.441979848 +0000
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "pam_inline.h"
|
||||
#include "pam_namespace.h"
|
||||
#include "argv_parse.h"
|
||||
+#include <stdint.h>
|
||||
|
||||
/* --- evaluating all files in VENDORDIR/security/namespace.d and /etc/security/namespace.d --- */
|
||||
static const char *base_name(const char *path)
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
# Description: GNU Midnight Commander
|
||||
# URL: http://www.midnight-commander.org
|
||||
# Maintainer: Alexander Zhirov
|
||||
# Depends on: glib
|
||||
|
||||
name=mc
|
||||
version=4.8.31
|
||||
release=1
|
||||
source=(
|
||||
https://github.com/MidnightCommander/mc/archive/refs/tags/${version}.tar.gz
|
||||
dracula.ini
|
||||
)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
./autogen.sh
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static
|
||||
|
||||
make -j1
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
rm $PKG/usr/lib/mc/*/README*
|
||||
rm $PKG/usr/share/mc/skins/*
|
||||
cp $SRC/dracula.ini $PKG/usr/share/mc/skins/default.ini
|
||||
}
|
|
@ -0,0 +1,127 @@
|
|||
[skin]
|
||||
description = Dracula
|
||||
[Lines]
|
||||
horiz = ─
|
||||
vert = │
|
||||
lefttop = ┌
|
||||
righttop = ┐
|
||||
leftbottom = └
|
||||
rightbottom = ┘
|
||||
topmiddle = ┬
|
||||
bottommiddle = ┴
|
||||
leftmiddle = ├
|
||||
rightmiddle = ┤
|
||||
cross = ┼
|
||||
dhoriz = ─
|
||||
dvert = │
|
||||
dlefttop = ┌
|
||||
drighttop = ┐
|
||||
dleftbottom = └
|
||||
drightbottom = ┘
|
||||
dtopmiddle = ┬
|
||||
dbottommiddle = ┴
|
||||
dleftmiddle = ├
|
||||
drightmiddle = ┤
|
||||
[core]
|
||||
_default_ = white;default
|
||||
selected = white;red
|
||||
marked = brightgreen;black
|
||||
markselect = brightgreen;blue
|
||||
gauge = black;white
|
||||
input = white;black
|
||||
inputunchanged = brightgreen;black
|
||||
inputmark = black;white
|
||||
disabled = brightgreen;black
|
||||
reverse = brightgreen;black
|
||||
commandlinemark = black;white
|
||||
header = white;black
|
||||
inputhistory =
|
||||
commandhistory =
|
||||
[dialog]
|
||||
_default_ = white;black
|
||||
dfocus = white;blue
|
||||
dhotnormal = brightgreen;black
|
||||
dhotfocus = brightgreen;blue
|
||||
dtitle = brightgreen;black
|
||||
[error]
|
||||
_default_ = red;black
|
||||
errdfocus = black;red
|
||||
errdhotnormal = brightred;black
|
||||
errdhotfocus = brightgreen;red
|
||||
errdtitle = brightgreen;black
|
||||
[filehighlight]
|
||||
directory = blue;
|
||||
executable = brightgreen;
|
||||
symlink = brightgreen;
|
||||
hardlink =
|
||||
stalelink = brightred;
|
||||
device = brightgreen;
|
||||
special = brightgreen;
|
||||
core = red;
|
||||
temp = brightgreen;
|
||||
archive = brightgreen;
|
||||
doc = white;
|
||||
source = brightcyan;
|
||||
media = brightgreen;
|
||||
graph = cyan;
|
||||
database = brightred;
|
||||
[menu]
|
||||
_default_ = white;black
|
||||
menusel = white;blue
|
||||
menuhot = brightgreen;black
|
||||
menuhotsel = brightgreen;blue
|
||||
menuinactive = brightgreen;black
|
||||
[popupmenu]
|
||||
_default_ = white;black
|
||||
menusel = white;blue
|
||||
menutitle = white;black
|
||||
[buttonbar]
|
||||
hotkey = white;blue
|
||||
button = white;black
|
||||
[statusbar]
|
||||
_default_ = white;black
|
||||
[help]
|
||||
_default_ = white;black
|
||||
helpitalic = red;black
|
||||
helpbold = brightgreen;black
|
||||
helplink = blue;black
|
||||
helpslink = white;blue
|
||||
helptitle = brightgreen;black
|
||||
[editor]
|
||||
_default_ = white;black
|
||||
editbold = brightgreen;blue
|
||||
editmarked = black;cyan
|
||||
editwhitespace = brightblue;blue
|
||||
editlinestate = white;cyan
|
||||
bookmark = white;red
|
||||
bookmarkfound = black;brightgreen
|
||||
editrightmargin = brightblue;black
|
||||
editframe = brightgreen;
|
||||
editframeactive = white;
|
||||
editframedrag = brightblue;
|
||||
[viewer]
|
||||
_default_ = white;black
|
||||
viewbold = brightgreen;blue
|
||||
viewunderline = brightred;blue
|
||||
viewselected = brightgreen;cyan
|
||||
[diffviewer]
|
||||
added = white;brightgreen
|
||||
changedline = blue;cyan
|
||||
changednew = red;cyan
|
||||
changed = white;cyan
|
||||
removed = white;red
|
||||
error = red;white
|
||||
[widget-common]
|
||||
sort-sign-up = ↑
|
||||
sort-sign-down = ↓
|
||||
[widget-panel]
|
||||
hiddenfiles-sign-show = •
|
||||
hiddenfiles-sign-hide = ○
|
||||
history-prev-item-sign = «
|
||||
history-next-item-sign = »
|
||||
history-show-list-sign = ^
|
||||
filename-scroll-left-char = «
|
||||
filename-scroll-right-char = »
|
||||
[widget-editor]
|
||||
window-state-char = ↕
|
||||
window-close-char = ✕
|
|
@ -0,0 +1,29 @@
|
|||
# Description: A compositor for X, and a fork of xcompmgr-dana, and a fork of compton.
|
||||
# URL: https://github.com/yshui/picom
|
||||
# Maintainer: Alexander Zhirov
|
||||
# Depends on: hicolor-icon-theme libconfig libev libxdg-basedir mesa xorg-libpixman xorg-xcb-util-image xorg-xcb-util-renderutil uthash dbus
|
||||
# Optional: asciidoc
|
||||
|
||||
name=picom
|
||||
version=11.2
|
||||
release=1
|
||||
source=(https://github.com/yshui/picom/archive/v$version/$name-v$version.tar.gz)
|
||||
|
||||
build() {
|
||||
[[ -e '/usr/bin/asciidoctor' ]] && PKGMK_PICOM+=' -D with_docs=true'
|
||||
|
||||
meson setup build $name-$version ${PKGMK_PICOM} \
|
||||
--prefix=/usr \
|
||||
--buildtype=plain \
|
||||
--wrap-mode nodownload \
|
||||
-D b_lto=true \
|
||||
-D b_pie=true
|
||||
|
||||
meson compile -C build -j ${JOBS:-1}
|
||||
DESTDIR=$PKG meson install -C build
|
||||
|
||||
install -Dm644 $SRC/$name-$version/picom.sample.conf $PKG/etc/xdg/picom.conf
|
||||
install -Dm644 $SRC/$name-$version/picom.sample.conf $PKG/etc/xdg/picom.conf.example
|
||||
|
||||
[ -e '/usr/bin/asciidoctor' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/picom-trans.1 $SRC/picom.1
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
# Description: A fast and easy-to-use status bar
|
||||
# URL: https://github.com/polybar/polybar
|
||||
# Maintainer: Alexander Zhirov
|
||||
# Depends on: cairo xorg-xcb-util-image xorg-xcb-util-wm xcb-util-xrm xorg-xcb-util-cursor cmake git python python3 pkg-config
|
||||
|
||||
name=polybar
|
||||
version=3.7.1
|
||||
release=1
|
||||
|
||||
source=(
|
||||
https://github.com/polybar/polybar/releases/download/${version}/${name}-${version}.tar.gz
|
||||
)
|
||||
|
||||
build() {
|
||||
|
||||
cd $name-$version
|
||||
|
||||
cmake \
|
||||
-Bbuild \
|
||||
-GNinja \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_DOC_HTML=OFF \
|
||||
-DBUILD_TESTS=OFF \
|
||||
-DBUILD_DOC=OFF
|
||||
|
||||
cmake --build build --verbose
|
||||
DESTDIR=$PKG cmake --install build
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
# Description: Secure SHell server and client tools
|
||||
# URL: https://www.openssh.org/
|
||||
# Maintainer: Alexander Zhirov
|
||||
# Depends on: linux-pam openssl zlib
|
||||
|
||||
name=sftp-server
|
||||
version=9.7p1
|
||||
release=1
|
||||
source=(http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cd openssh-$version
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libexecdir=/usr/lib/ssh \
|
||||
--sysconfdir=/etc/ssh \
|
||||
--with-mantype=man \
|
||||
--mandir=/usr/share/man \
|
||||
--with-pid-dir=/run \
|
||||
--with-privsep-user=nobody \
|
||||
--with-privsep-path=/var/empty \
|
||||
--with-xauth=/usr/bin/xauth
|
||||
|
||||
make
|
||||
make DESTDIR=$SRC/installed install
|
||||
install -dm00755 $PKG/usr/lib/ssh
|
||||
install -m00755 $SRC/installed/usr/lib/ssh/sftp-server $PKG/usr/lib/ssh
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
# Description: C macros for hash tables and more
|
||||
# URL: https://troydhanson.github.io/uthash/
|
||||
# Maintainer: Alexander Zhirov
|
||||
|
||||
name=uthash
|
||||
version=2.3.0
|
||||
release=1
|
||||
source=(https://github.com/troydhanson/uthash/archive/v$version/$name-v$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
install -vDm 644 src/* -t "$PKG/usr/include"
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
# Description: X display manager
|
||||
# URL: http://xorg.freedesktop.org
|
||||
# Maintainer: Alexander Zhirov
|
||||
# Depends on: linux-pam xorg-server xorg-xrdb
|
||||
|
||||
name=xorg-xdm
|
||||
version=1.1.14
|
||||
release=1
|
||||
source=(
|
||||
https://www.x.org/releases/individual/app/xdm-$version.tar.xz
|
||||
xdm
|
||||
xdm.pam
|
||||
)
|
||||
|
||||
build() {
|
||||
cd xdm-$version
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--with-xdmconfigdir=/etc/X11/xdm \
|
||||
--enable-xdmshell
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
install -D -m 755 $SRC/xdm $PKG/etc/rc.d/xdm
|
||||
install -D -m 755 $SRC/xdm.pam $PKG/etc/pam.d/xdm
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/xdm: start/stop xdm
|
||||
#
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
/usr/bin/xdm
|
||||
;;
|
||||
stop)
|
||||
killall -q /usr/bin/xdm
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart]"
|
||||
;;
|
||||
esac
|
||||
|
||||
# End of file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# /etc/pam.d/xdm - xdm service module configuration
|
||||
#
|
||||
|
||||
auth include common-auth
|
||||
|
||||
account include common-account
|
Loading…
Reference in New Issue