add .pkgdata; add non-download packages

This commit is contained in:
2026-09-12 04:17:58 +03:00
parent 1c3a598881
commit 513d336a07
22 changed files with 186 additions and 83 deletions

View File

@ -10,7 +10,7 @@ sed -i 's/int (\*proc_func)()/int (*proc_func)(FILE *, FILE *, void *)/' filter/
./autogen.sh
./configure --prefix=$pkgpath
make -j$(nproc)
make install
make install CUPS_DATADIR=$pkgpath/share/cups
```
``` cfg *** build deps ***

View File

@ -7,3 +7,26 @@ https://github.com/OpenPrinting/cups/archive/refs/tags/v2.4.19.tar.gz
make -j$(nproc)
make install
```
``` sh *** config ***
ln -sf /pkg/gnu/bin/foomatic-ppdfile lib/cups/driver/foomatic
sed -i 's|^#ServerBin /pkg/gnu/cups/lib/cups|ServerBin /pkg/gnu/lib/cups|' etc/cups/cups-files.conf
sed -i 's|^#DataDir /pkg/gnu/cups/share/cups|DataDir /pkg/gnu/share/cups|' etc/cups/cups-files.conf
sed -i 's|^#TempDir /pkg/gnu/cups/var/spool/cups/tmp|TempDir /pkg/gnu/cups/var/spool/cups/tmp|' etc/cups/cups-files.conf
chmod 1777 /pkg/gnu/cups/var/spool/cups/tmp
grep -q "SetEnv TMPDIR" /pkg/gnu/cups/etc/cups/cupsd.conf || \
echo 'SetEnv TMPDIR /pkg/gnu/cups/var/spool/cups/tmp' >> /pkg/gnu/cups/etc/cups/cupsd.conf
#sed -i 's|^#User nobody|User nobody|' /pkg/gnu/cups/etc/cups/cups-files.conf
#sed -i 's|^#Group lp|Group lp|' /pkg/gnu/cups/etc/cups/cups-files.conf
#echo 'SetEnv GS_OPTIONS -dNOSAFER' >> /pkg/gnu/cups/etc/cups/cupsd.conf
usermod -aG lp nobody 2>/dev/null || gpasswd -a nobody lp
chmod 750 /pkg/gnu/cups/var/spool/cups
chown root:lp /pkg/gnu/cups/var/spool/cups
```
``` cfg *** build deps ***
libusb
foomatic-db-engine
```

View File

@ -8,3 +8,7 @@ https://github.com/OpenPrinting/foomatic-db.git
make -j$(nproc)
make install
```
``` cfg *** run deps ***
foomatic-db-engine
```

View File

@ -12,10 +12,9 @@ make install
``` sh *** config ***
mkdir -p /pkg/gnu/git/etc
git config --system http.sslCAInfo /pkg/gnu/openssl/ssl/cacert.pem
git config --global url."https://github.com/".insteadOf "git@github.com:"
```
``` cfg *** build deps ***
``` cfg *** build deps ***
curl
pcre2
zlib
@ -24,4 +23,14 @@ libxcrypt
``` cfg *** run deps ***
perl
less
```
``` sh *** set ***
git config --global url."https://github.com/".insteadOf "git@github.com:"
git config --global alias.whoim '!echo "Name: $(git config user.name)" && echo "Email: $(git config user.email)"'
git config --global alias.im '!echo "Name: $(git config user.name)" && echo "Email: $(git config user.email)"'
git config --global alias.trace '!git config user.name "TraceLumen" && git config user.email "tracelumen@root-kit.ru" && echo "Author set to Trace"'
git config --global alias.sam '!git config user.name "sam" && git config user.email "svvivel@gmail.com" && echo "Author set to sam"'
git config --global core.editor nvim
```

View File

@ -10,6 +10,6 @@ ninja
ninja install
```
``` cfg *** build deps ***
``` cfg *** build run deps ***
mesa
```

9
assets/var/gnu/groff.md Normal file
View File

@ -0,0 +1,9 @@
groff 1.24.1
=
https://ftp.gnu.org/gnu/groff/groff-1.24.1.tar.gz
``` sh *** build ***
./configure --prefix=$pkgpath
make -j$(nproc)
make install
```

View File

@ -70,8 +70,15 @@ PyMODINIT_FUNC PyInit_pcardext(void)\
sed -i 's/static column = 0 ;/static int column = 0 ;/' prnt/hpps/pserror.c
```
./configure --prefix=/pkg/gnu/hplip --disable-network-build --disable-pcard-build
``` sh *** build ***
./configure --prefix=$pkgpath --disable-network-build --disable-pcard-build
./configure \
--prefix=$pkgpath \
--disable-network-build \
--disable-pcard-build \
--with-cupsfilterdir=$pkgpath/lib/cups/filter \
--with-cupsbackenddir=$pkgpath/lib/cups/backend
make -j$(nproc)
make install
```

15
assets/var/gnu/less.md Normal file
View File

@ -0,0 +1,15 @@
less
=
https://github.com/gwsw/less.git
``` sh *** build ***
make -f Makefile.aut distfiles
autoreconf -i
./configure --prefix=$pkgpath
make -j$(nproc)
make install
```
``` sh *** run deps ***
groff
```

View File

@ -9,5 +9,9 @@ make prefix=/pkg/gnu/mupdf install
``` cfg *** build deps ***
glu
```
``` cfg *** build run deps ***
glu
llvm
```

View File

@ -10,7 +10,7 @@ make install
``` sh *** config ***
pip3 install setuptools
ln bin/python3 bin/python
ln -f bin/python3 bin/python
```
``` cfg *** build deps ***

View File

@ -1,20 +1,41 @@
unitprint/backend-local
=
ssh://git@root-kit.ru:17458/UnitPrint/backend-local.git
``` env *** env ***
disable
```
cargo new backend-local
``` sh *** build ***
cargo build --release
mkdir ../bin
cp -l target/release/backend-local ../bin
```
``` cfg *** run deps ***
cups
cups-filters
foomatic-db
foomatic-db-engine
hplip
```
Для раздачи инета службу поднять/конфиг сделать под unitprint ей
``` sh *** setup ***
PRINTER_URI=$(lpinfo -v | awk '/^direct usb:\/\// {print $2; exit}')
MODEL=$(python3 -c "import urllib.parse,sys; print(urllib.parse.unquote('$PRINTER_URI'.split('/')[-1].split('?')[0]))")
PPD_PATH=$(lpinfo -m | grep -i "$MODEL" | grep -iv 'postscript' | grep -i 'hpcups' | head -n1 | awk '{print $1}')
if [[ -z "$PPD_PATH" ]]; then
PPD_PATH=$(lpinfo -m | grep -i "$MODEL" | grep -iv 'postscript' | head -n1 | awk '{print $1}')
fi
echo "URI: $PRINTER_URI"
echo "Model: $MODEL"
echo "PPD: $PPD_PATH"
lpadmin -p Auto_HP_P2015 -E -v "$PRINTER_URI" -m "$PPD_PATH"
lpadmin -d Auto_HP_P2015
echo "Default printer set:"
lpstat -d
lpoptions -p Auto_HP_P2015 -o PageSize=A4
```

View File

@ -0,0 +1,11 @@
unitprint/backend-local/s6
=
``` sh *** set ***
ln -sf $(pwd) /pkg/gnu/s6/etc/service/current/unitprint-backend-local
```
``` sh *** off ***
rm /pkg/gnu/s6/etc/service/current/unitprint-backend-local
```

View File

@ -0,0 +1 @@
../bin/backend-local

View File

@ -1,9 +1,11 @@
unitprint/backend/scan/DocRes
=
https://github.com/ZZZHANG-jx/DocRes.git
ssh://git@root-kit.ru:17458/UnitPrint/scan-DocRes.git
git remote set-url origin ssh://git@root-kit.ru:17458/UnitPrint/scan-DocScanner.git
``` sh *** build ***
mv * ..
cp -rfPl * ..
cp -rfPl .* ..
```
``` sh *** config ***
@ -17,44 +19,3 @@ mkdir -p data/weights
#rsync -avz ~/Downloads/mbd.pkl a:/pkg/gnu/unitprint/backend/scan/DocRes/data/weights
#rsync -avz ~/Downloads/docres.pkl a:/pkg/gnu/unitprint/backend/scan/DocRes/data/weights
```
mkdir -p ~/.config/miopen
export MIOPEN_USER_DB_PATH="/root/.config/miopen"
export MIOPEN_FIND_MODE=3
export HIP_VISIBLE_DEVICES=0
time ../../venv/bin/python inference.py \
--task deshadowing \
--im_path ./IMG_20260905_172410_rec.jpg \
--out_folder ./
time python inference.py \
--task appearance \
--im_path ./output_pipeline/IMG_20260905_172410_rec_deshadowing.png \
--out_folder ./output_pipeline
time python inference.py \
--task deblurring \
--im_path ./output_pipeline/IMG_20260905_172410_rec_deshadowing_appearance.png \
--out_folder ./output_pipeline
time python inference.py \
--task deblurring \
--im_path ../../DocScanner/src/rectified/IMG_20260905_172410_rec.png \
--out_folder ./output_pipeline
time python inference.py \
--task appearance \
--im_path ./output_pipeline/IMG_20260905_172410_rec_deblurring.png \
--out_folder ./output_pipeline
# 3. Appearance
time python inference.py \
--task appearance \
--im_path ./output_pipeline/IMG_20260905_172410_rec_deshadowing.png \
--out_folder ./output_pipeline
time python inference.py \
--task dewarping \
--im_path /pkg/gnu/unitprint/DocScanner/src/distorted/IMG_20260905_172410.jpg \
--out_folder ./output_pipeline

View File

@ -1,9 +1,10 @@
unitprint/backend/scan/DocScanner
=
https://root-kit.ru/UnitPrint/scan-DocScanner.git
ssh://git@root-kit.ru:17458/UnitPrint/scan-DocScanner.git
``` sh *** build ***
mv * ..
cp -rfPl * ..
cp -rfPl .* ..
```
``` sh *** config ***

View File

@ -7,7 +7,16 @@ save_source=true
```
``` sh *** build ***
ls
git pull
npm install
npm run build
rm -rf ../dist
cp -rPl dist ..
```
``` sh *** config ***
chmod o+x /pkg/gnu/unitprint
chown -R nginx:nginx /pkg/gnu/unitprint/web-app/dist
```
``` sh *** init ***
@ -16,5 +25,3 @@ npm create vite@latest . -- --template svelte --no-interactive --overwrite
npm install
```
chmod o+x /pkg/gnu/unitprint
chown -R nginx:nginx /pkg/gnu/unitprint/web-app/dist

View File

@ -0,0 +1,10 @@
usbutils
=
``` sh *** build ***
mkdir -p build
cd build
meson setup --prefix=$pkgpath --libdir=lib --buildtype=release ..
ninja
ninja install
```