├── sources └── .gitignore ├── sysroot └── .gitignore ├── debug └── .gitignore ├── images ├── iso │ └── .gitignore ├── chroot │ └── .gitignore └── vm │ └── .gitignore ├── packages └── .gitignore ├── logs └── .gitignore ├── rules ├── skeleton │ ├── doc │ │ └── rlsd │ │ │ └── .gitignore │ ├── etc │ │ ├── mtab │ │ ├── shells │ │ ├── profile.d │ │ │ └── .gitignore │ │ ├── group │ │ ├── hosts │ │ ├── shadow │ │ ├── profile │ │ ├── passwd │ │ ├── issue │ │ └── init.d │ │ │ └── network │ ├── dev │ │ └── .gitignore │ ├── lib │ │ └── .gitignore │ ├── man │ │ └── .gitignore │ ├── mnt │ │ └── .gitignore │ ├── proc │ │ └── .gitignore │ ├── run │ │ └── .gitignore │ ├── srv │ │ └── .gitignore │ ├── sys │ │ └── .gitignore │ ├── tmp │ │ └── .gitignore │ ├── home │ │ ├── boss │ │ │ └── .gitignore │ │ └── someone │ │ │ └── .gitignore │ ├── var │ │ ├── db │ │ │ └── .gitignore │ │ ├── log │ │ │ └── .gitignore │ │ ├── run │ │ │ └── .gitignore │ │ └── rw │ │ │ └── .gitignore │ ├── bin │ │ ├── vtrc │ │ └── rc │ └── build ├── nano │ ├── etc │ │ └── profile.d │ │ │ └── nano │ └── build ├── loksh │ ├── etc │ │ ├── profile.d │ │ │ └── loksh │ │ └── kshrc │ ├── build │ ├── build.patch │ ├── boss.patch │ └── packlad.patch ├── vim │ ├── etc │ │ └── vimrc │ ├── build │ └── confdir.patch ├── packlim │ ├── etc │ │ └── profile.d │ │ │ └── packlim │ ├── build │ └── bin │ │ └── packsuggest ├── screen │ ├── etc │ │ └── screenrc │ └── build ├── gpm │ ├── etc │ │ └── init.d │ │ │ └── gpm │ ├── build.patch │ ├── run.patch │ ├── build │ ├── static.patch │ └── musl.patch ├── sdaemons │ └── build ├── libwaive │ └── build ├── termolos │ └── build ├── fbim │ └── build ├── fbff │ ├── build │ └── build.patch ├── ogg122 │ └── build ├── lok │ └── build ├── stag │ ├── build │ └── build.patch ├── irssi │ ├── docdir.patch │ ├── include.patch │ └── build ├── logfence │ └── build ├── luufs │ └── build ├── ytree │ ├── musl.patch │ ├── build │ └── build.patch ├── elfence │ └── build ├── ca-certificates │ └── build ├── mc │ ├── musl.patch │ ├── no-examples.patch │ └── build ├── mdp │ ├── build │ └── build.patch ├── tinyalsa │ ├── build │ ├── musl.patch │ └── build.patch ├── libnl-tiny │ ├── pkg-config.patch │ └── build ├── xz │ ├── no-examples.patch │ └── build ├── dropbear │ ├── etc │ │ └── init.d │ │ │ └── dropbear │ ├── build │ ├── relative-links.patch │ └── options.patch ├── file │ ├── datadir.patch │ ├── musl.patch │ └── build ├── mutt │ ├── no-samples.patch │ └── build ├── calcurse │ ├── langs.patch │ ├── no-upgrade.patch │ └── build ├── libxml2 │ ├── no-cmake.patch │ ├── docdir.patch │ ├── confexecdir.patch │ ├── no-examples.patch │ └── build ├── setfont │ ├── build.patch │ ├── build │ └── musl.patch ├── linux-libre │ ├── swappiness.patch │ ├── cursor.patch │ ├── verbosity.patch │ ├── compression.patch │ ├── firmware_loading.patch │ └── auto-vga.patch ├── tty-clock │ └── build ├── ed25519 │ ├── build │ └── build.patch ├── jimtcl │ ├── win32compat.patch │ └── build ├── libjpeg-turbo │ ├── docdir.patch │ ├── no-examples.patch │ └── build ├── zlib │ ├── mandir.patch │ └── build ├── dvtm │ ├── build.patch │ └── build ├── ghostscript │ ├── no-langs.patch │ ├── build.patch │ ├── no-examples.patch │ └── build ├── fbgs │ └── build ├── vifm │ ├── no-desktop.patch │ ├── build │ └── no-scripts.patch ├── libpcap │ ├── old-headers.patch │ └── build ├── fbv │ ├── build │ ├── libpng.patch │ ├── build.patch │ └── giflib.patch ├── iana-etc │ └── build ├── vitetris │ ├── build.patch │ └── build ├── rfkill │ └── build ├── tamsyn-font │ └── build ├── isolinux │ ├── boot │ │ └── isolinux.cfg │ └── build ├── fbcat │ ├── build │ └── ffmpeg.patch ├── aop │ ├── datadir.patch │ ├── build │ └── insult.patch ├── mandoc │ ├── build │ └── bin │ │ └── man ├── bs │ └── build ├── figlet │ ├── build │ └── build.patch ├── glib1 │ └── build ├── alsa-lib │ ├── cflags.patch │ └── build ├── greed │ ├── build │ └── build.patch ├── tcpdump │ ├── executable.patch │ └── build ├── ncdu │ └── build ├── pigz │ ├── build │ └── build.patch ├── open-ath9k-htc-firmware │ └── build ├── dhcpcd │ └── build ├── mplayer │ ├── musl.patch │ └── build ├── shed │ └── build ├── htop │ ├── no-desktop.patch │ └── build ├── iptables │ ├── build │ ├── etc │ │ └── init.d │ │ │ └── iptables │ └── musl.patch ├── bwm-ng │ └── build ├── iw │ ├── build │ └── libnl-tiny.patch ├── less │ └── build ├── libpng │ └── build ├── linux-libre-headers │ └── build ├── snownews │ ├── build │ └── build.patch ├── libressl │ └── build ├── libseccomp │ └── build ├── patch │ └── build ├── bc │ └── build ├── giflib │ └── build ├── strace │ ├── build │ └── musl.patch ├── atop │ ├── build │ ├── build.patch │ └── musl.patch ├── wget │ └── build ├── libffi │ ├── build │ └── includedir.patch ├── libarchive │ └── build ├── moon-buggy │ └── build ├── glib │ └── build ├── curl │ └── build ├── links │ └── build ├── diffutils │ └── build ├── surfraw │ ├── config.patch │ ├── build │ └── no-perl.patch ├── wpa_supplicant │ ├── build │ └── libnl-tiny.patch ├── lbzip2 │ └── build ├── clzip │ └── build ├── msmtp │ └── build ├── fetchmail │ └── build ├── alsa-utils │ ├── build │ └── sounds.patch ├── lynx │ ├── build │ └── config.patch ├── bitlbee │ └── build ├── fuse │ ├── build │ └── no-init.patch ├── sdl │ └── build ├── ffmpeg │ ├── no-examples.patch │ └── build ├── mpg123 │ └── build ├── musl │ └── build └── toybox │ └── blkid-partitions.patch ├── .gitignore ├── repo └── .gitignore ├── AUTHORS ├── packer ├── .gitignore ├── build_packlim ├── packer-x86.json ├── packer-x86_64.json └── www │ └── preseed.cfg ├── hooks ├── 6cvs ├── 1locale ├── 5png ├── 3template ├── 7sign ├── 4strip ├── 2man └── 0unneeded ├── scripts ├── check_versions ├── gen_deps ├── clean ├── create_tar ├── build_rootfs ├── build_all ├── check_version ├── build ├── create_repo ├── verify_pkg ├── create_vm └── create_iso ├── Makefile ├── flavors ├── rootfs ├── huge ├── minimal └── big ├── strip ├── COPYING └── README /sources/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /sysroot/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /debug/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar.lz 2 | -------------------------------------------------------------------------------- /images/iso/.gitignore: -------------------------------------------------------------------------------- 1 | *.iso 2 | -------------------------------------------------------------------------------- /packages/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar.lz 2 | -------------------------------------------------------------------------------- /images/chroot/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar.lz 2 | -------------------------------------------------------------------------------- /logs/.gitignore: -------------------------------------------------------------------------------- 1 | *.log.lz 2 | *.log 3 | -------------------------------------------------------------------------------- /rules/skeleton/doc/rlsd/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /rules/skeleton/etc/mtab: -------------------------------------------------------------------------------- 1 | ../proc/mounts -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Makefile.deps 2 | *-config 3 | -------------------------------------------------------------------------------- /repo/.gitignore: -------------------------------------------------------------------------------- 1 | available 2 | *.pkg 3 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Dima Krasner (dima@dimakrasner.com) 2 | -------------------------------------------------------------------------------- /images/vm/.gitignore: -------------------------------------------------------------------------------- 1 | *.qcow2.lz 2 | *.vdi.lz 3 | -------------------------------------------------------------------------------- /rules/skeleton/dev/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/lib/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/man/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/mnt/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/proc/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/run/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/srv/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/sys/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/tmp/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /packer/.gitignore: -------------------------------------------------------------------------------- 1 | packer_cache 2 | x86 3 | x86_64 4 | -------------------------------------------------------------------------------- /rules/skeleton/etc/shells: -------------------------------------------------------------------------------- 1 | /bin/sh 2 | /bin/ksh 3 | -------------------------------------------------------------------------------- /rules/skeleton/home/boss/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/var/db/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/var/log/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/var/run/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/var/rw/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/nano/etc/profile.d/nano: -------------------------------------------------------------------------------- 1 | export EDITOR="nano" 2 | -------------------------------------------------------------------------------- /rules/skeleton/etc/profile.d/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/skeleton/home/someone/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /rules/loksh/etc/profile.d/loksh: -------------------------------------------------------------------------------- 1 | export ENV="/etc/kshrc" 2 | -------------------------------------------------------------------------------- /rules/vim/etc/vimrc: -------------------------------------------------------------------------------- 1 | syntax enable 2 | set colorcolumn=80 3 | -------------------------------------------------------------------------------- /rules/skeleton/etc/group: -------------------------------------------------------------------------------- 1 | boss:x:0: 2 | audio:x:1: 3 | someone:x:1000: 4 | -------------------------------------------------------------------------------- /rules/skeleton/etc/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 box localhost 2 | ::1 box localhost 3 | -------------------------------------------------------------------------------- /rules/skeleton/bin/vtrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cat /etc/issue 4 | exec fakelogin 5 | -------------------------------------------------------------------------------- /hooks/6cvs: -------------------------------------------------------------------------------- 1 | HOOK_NAME="remove VCS files" 2 | 3 | run() { 4 | find . -name .gitignore -delete 5 | } 6 | -------------------------------------------------------------------------------- /rules/packlim/etc/profile.d/packlim: -------------------------------------------------------------------------------- 1 | export REPO="http://rlsd3.dimakrasner.com/repo/$(uname -m)" 2 | -------------------------------------------------------------------------------- /rules/skeleton/etc/shadow: -------------------------------------------------------------------------------- 1 | boss:j/.0buq1dy4Ss:15954:0:99999:7::: 2 | someone::15954:0:99999:7::: 3 | -------------------------------------------------------------------------------- /scripts/check_versions: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for i in $(ls rules/) 4 | do 5 | ./scripts/check_version "$i" 6 | done 7 | -------------------------------------------------------------------------------- /rules/screen/etc/screenrc: -------------------------------------------------------------------------------- 1 | startup_message off 2 | caption always 3 | caption string "%{= kw}%-w%{wk}%n %t%{-}%+w" 4 | altscreen on 5 | -------------------------------------------------------------------------------- /rules/skeleton/etc/profile: -------------------------------------------------------------------------------- 1 | umask 022 2 | export PATH="/bin" 3 | 4 | for i in /etc/profile.d/* 5 | do 6 | . "$i" 7 | done 8 | unset i 9 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | PACKAGES = $(shell ls rules/ | cut -f 1 -d .) 2 | 3 | all: $(PACKAGES) 4 | 5 | $(PACKAGES): 6 | ./scripts/build $@ 7 | 8 | include ./Makefile.deps 9 | -------------------------------------------------------------------------------- /rules/skeleton/bin/rc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd /etc/init.d 4 | for i in * 5 | do 6 | [ -x "$i" ] && "./$i" start 7 | done 8 | 9 | echo 10 | exec vtman 11 | -------------------------------------------------------------------------------- /rules/skeleton/etc/passwd: -------------------------------------------------------------------------------- 1 | boss:x:0:0:boss:/home/boss:/bin/ksh 2 | nobody:x:1:1:nobody:/run:/bin/false 3 | someone:x:1000:1000:someone:/home/someone:/bin/ksh 4 | -------------------------------------------------------------------------------- /hooks/1locale: -------------------------------------------------------------------------------- 1 | HOOK_NAME="remove translations" 2 | 3 | run() { 4 | find . -name "locale" -type d | 5 | while read i 6 | do 7 | rm -rvf "$i" 8 | done 9 | } 10 | -------------------------------------------------------------------------------- /hooks/5png: -------------------------------------------------------------------------------- 1 | HOOK_NAME="optimize PNG images" 2 | 3 | run() { 4 | find . -name '*.png' -type f | 5 | while read i 6 | do 7 | echo "> Optimizing $i" 8 | optipng -o7 "$i" 9 | advpng -z4 "$i" 10 | done 11 | } 12 | -------------------------------------------------------------------------------- /rules/gpm/etc/init.d/gpm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | start) 5 | echo -n "Starting GPM ..." 6 | gpm -m /dev/input/mice -t imps2 7 | echo " done." 8 | ;; 9 | 10 | stop) 11 | killall gpm 12 | ;; 13 | esac 14 | -------------------------------------------------------------------------------- /flavors/rootfs: -------------------------------------------------------------------------------- 1 | set repo [env REPO] 2 | set available [packlim::available $repo ""] 3 | 4 | foreach package {skeleton toybox sdaemons loksh packlim mandoc} { 5 | packlim::fetch $repo $package $available locked "" 6 | } 7 | 8 | packlim::purge 9 | -------------------------------------------------------------------------------- /scripts/gen_deps: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for i in rules/* 4 | do 5 | PKG_BUILD_DEPS="-" 6 | PKG_DEPS="" 7 | . "$i/build" 8 | [ "-" = "$PKG_BUILD_DEPS" ] && PKG_BUILD_DEPS="$PKG_DEPS" 9 | echo "$(basename "$i"): $PKG_BUILD_DEPS" 10 | done 11 | -------------------------------------------------------------------------------- /rules/sdaemons/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/sdaemons.git" 2 | PKG_DESC="Core system daemons" 3 | PKG_DEPS="musl libwaive" 4 | 5 | build() { 6 | $MAKE HAVE_WAIVE=1 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" install 11 | } 12 | -------------------------------------------------------------------------------- /rules/libwaive/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/libwaive.git" 2 | PKG_DESC="A sandboxing library" 3 | PKG_DEPS="musl libseccomp" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" DOC_DIR="/doc" MAN_DIR="/man" install 11 | } 12 | -------------------------------------------------------------------------------- /rules/termolos/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/termolos.git" 2 | PKG_DESC="A console color scheme generator" 3 | PKG_DEPS="musl" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" MAN_DIR="/man" DOC_DIR="/doc" install 11 | } 12 | -------------------------------------------------------------------------------- /flavors/huge: -------------------------------------------------------------------------------- 1 | set repo [env REPO] 2 | set available [packlim::available $repo ""] 3 | set packages [dict keys $available] 4 | 5 | foreach package $packages { 6 | packlim::fetch $repo $package $available locked "" 7 | packlim::lock $package 8 | } 9 | 10 | packlim::purge 11 | -------------------------------------------------------------------------------- /scripts/clean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rm -rvf images/iso/* \ 4 | images/vm/* \ 5 | images/chroot/* \ 6 | sysroot/* \ 7 | logs/* \ 8 | packages/* \ 9 | debug/* \ 10 | repo/* \ 11 | *-config \ 12 | Makefile.deps 13 | -------------------------------------------------------------------------------- /rules/fbim/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/fbim.git" 2 | PKG_DESC="An image viewer" 3 | PKG_DEPS="musl" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" \ 11 | MAN_DIR="/man" \ 12 | DOC_DIR="/doc" \ 13 | install 14 | } 15 | -------------------------------------------------------------------------------- /rules/fbff/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/litcave/fbff.git" 2 | PKG_DESC="A media player" 3 | PKG_DEPS="musl tinyalsa ffmpeg" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | install -D -m 755 fbff "$1/bin/fbff" 11 | install -D -m 644 README "$1/doc/fbff/README" 12 | } 13 | -------------------------------------------------------------------------------- /scripts/create_tar: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TODAY="$(date +%d%m%Y)" 4 | 5 | root_fs="$(mktemp -d)" 6 | ./scripts/build_rootfs "$root_fs" "$1" 7 | rm -rf "$root_fs/boot" 8 | 9 | tar -C "$root_fs" -c . | 10 | lzip -9 > "images/chroot/rlsd-$TODAY-$(basename "$1").tar.lz" 11 | rm -rf "$root_fs" 12 | -------------------------------------------------------------------------------- /rules/skeleton/etc/issue: -------------------------------------------------------------------------------- 1 | Welcome to RLSD! 2 | 3 | This is free software written by many authors across the globe and you may 4 | redistribute it, under certain conditions and limitations; see /usr/share/doc 5 | for details. 6 | 7 | This software comes with ABSOLUTELY NO WARRANTY; use at your own risk. 8 | 9 | -------------------------------------------------------------------------------- /flavors/minimal: -------------------------------------------------------------------------------- 1 | set repo [env REPO] 2 | set available [packlim::available $repo ""] 3 | 4 | foreach package {skeleton toybox sdaemons loksh packlim mandoc initramfs linux-libre isolinux rfkill dhcpcd iw wpa_supplicant iptables} { 5 | packlim::fetch $repo $package $available locked "" 6 | } 7 | 8 | packlim::purge 9 | -------------------------------------------------------------------------------- /hooks/3template: -------------------------------------------------------------------------------- 1 | HOOK_NAME="add the package template" 2 | 3 | run() { 4 | for i in "$BASE_DIR/rules/$1"/* 5 | do 6 | case "$i" in 7 | */build|*/*.patch|*/*.diff) 8 | continue 9 | ;; 10 | 11 | *) 12 | echo "> Adding $i to the package" 13 | cp -av "$i" . 14 | ;; 15 | esac 16 | done 17 | } 18 | -------------------------------------------------------------------------------- /rules/ogg122/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/ogg122.git" 2 | PKG_DESC="An Ogg Vorbis player" 3 | PKG_DEPS="musl tinyalsa" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" \ 11 | PREFIX="/" \ 12 | MAN_DIR="/man" \ 13 | DOC_DIR="/doc" \ 14 | install 15 | } 16 | -------------------------------------------------------------------------------- /rules/lok/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/lok.git" 2 | PKG_DESC="A text processing tool" 3 | PKG_DEPS="musl" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" PREFIX="" install 11 | install -D -m 644 README "$1/doc/lok/README" 12 | install -m 644 README.upstream "$1/doc/lok/README.upstream" 13 | } 14 | -------------------------------------------------------------------------------- /rules/stag/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/seenaburns/stag.git" 2 | PKG_DESC="A bar graph generator" 3 | PKG_DEPS="musl ncurses" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" install 11 | install -D -m 644 README.md "$1/doc/stag/README.md" 12 | install -m 644 LICENSE.txt "$1/doc/stag/LICENSE.txt" 13 | } 14 | -------------------------------------------------------------------------------- /rules/irssi/docdir.patch: -------------------------------------------------------------------------------- 1 | diff -rup irssi-0.8.17-orig/docs/Makefile.am irssi-0.8.17/docs/Makefile.am 2 | --- irssi-0.8.17-orig/docs/Makefile.am 2015-04-20 14:24:32.671892999 -0400 3 | +++ irssi-0.8.17/docs/Makefile.am 2015-04-20 14:24:52.639892999 -0400 4 | @@ -1,5 +1,3 @@ 5 | -docdir = $(datadir)/doc/irssi 6 | - 7 | man_MANS = \ 8 | irssi.1 9 | 10 | -------------------------------------------------------------------------------- /rules/loksh/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/loksh.git" 2 | PKG_DESC="A command-line shell" 3 | PKG_DEPS="musl" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" \ 11 | BIN_DIR="/bin" \ 12 | MAN_DIR="/man" \ 13 | DOC_DIR="/doc/loksh" \ 14 | install 15 | ln -s ksh "$1/bin/sh" 16 | } 17 | -------------------------------------------------------------------------------- /rules/logfence/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/logfence.git" 2 | PKG_DESC="A file system that prevents log tampering" 3 | PKG_DEPS="musl fuse" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" \ 11 | SBIN_DIR="/bin" \ 12 | MAN_DIR="/man" \ 13 | DOC_DIR="/doc/logfence" \ 14 | install 15 | } 16 | -------------------------------------------------------------------------------- /rules/luufs/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/luufs.git" 2 | PKG_DESC="A union file system" 3 | PKG_DEPS="musl zlib fuse libwaive" 4 | 5 | build() { 6 | $MAKE HAVE_WAIVE=1 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" \ 11 | SBIN_DIR="/bin" \ 12 | MAN_DIR="/man" \ 13 | DOC_DIR="/doc/luufs" \ 14 | install 15 | } 16 | -------------------------------------------------------------------------------- /hooks/7sign: -------------------------------------------------------------------------------- 1 | HOOK_NAME="digitally-sign executables" 2 | 3 | run() { 4 | [ ! -d "./bin" ] && return 5 | 6 | find "./bin" -type f | while read i 7 | do 8 | type="$(file -b --mime-type "$i")" 9 | [ "application/x-executable" != "$type" ] && continue 10 | echo "> Digitally-signing $i" 11 | ed25519 -s "$i" /etc/packlim/priv_key /etc/packlim/pub_key >> "$i" 12 | done 13 | } 14 | -------------------------------------------------------------------------------- /scripts/build_rootfs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # install the packages 4 | HERE="$(pwd)" 5 | REPO="file://$HERE/repo" PREFIX="$1" packlim source "$2" 6 | 7 | # fix permissions 8 | chown -R 0:0 "$1" 9 | find "$1" -type d | while read directory 10 | do 11 | chmod 755 "$directory" 12 | done 13 | chmod 700 "$1/home/boss" 14 | chown 1000:1000 "$1/home/someone" 15 | chmod 755 "$1/home/someone" 16 | -------------------------------------------------------------------------------- /strip: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | src="" 4 | dest="" 5 | for i in $(seq $#) 6 | do 7 | case "$1" in 8 | -o) 9 | dest="$2" 10 | shift 11 | ;; 12 | 13 | -*) 14 | echo "> Ignoring $1" 15 | shift 16 | ;; 17 | 18 | *) 19 | [ "$1" != "$dest" ] && src="$1" 20 | shift 21 | ;; 22 | esac 23 | done 24 | 25 | [ -n "$dest" ] && cp -p "$src" "$dest" 26 | 27 | exit 0 28 | -------------------------------------------------------------------------------- /rules/ytree/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup ytree-1.97-orig/match.c ytree-1.97/match.c 2 | --- ytree-1.97-orig/match.c 2014-10-16 20:31:34.985946294 +0300 3 | +++ ytree-1.97/match.c 2014-10-16 20:33:36.516944118 +0300 4 | @@ -24,6 +24,8 @@ 5 | #endif 6 | 7 | 8 | +#define HAS_REGCOMP 9 | +#undef HAS_REGEX 10 | #ifdef HAS_REGEX 11 | #ifdef sun 12 | #define INIT register char *sp = ""; 13 | -------------------------------------------------------------------------------- /scripts/build_all: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ./scripts/gen_deps > Makefile.deps 4 | make -j 1 5 | [ 0 -ne $? ] && exit 1 6 | 7 | ./scripts/create_repo 8 | 9 | ./scripts/create_iso flavors/minimal 10 | ./scripts/create_iso flavors/big 11 | ./scripts/create_iso flavors/huge 12 | for i in images/iso/*.iso 13 | do 14 | ./scripts/create_vm "$i" 4 15 | done 16 | ./scripts/create_tar flavors/rootfs 17 | -------------------------------------------------------------------------------- /rules/skeleton/build: -------------------------------------------------------------------------------- 1 | PKG_DESC="The file system skeleton" 2 | PKG_SRCS="" 3 | 4 | build() { 5 | : 6 | } 7 | 8 | package() { 9 | install -D -m 644 "$BASE_DIR/www/index.html" "$1/doc/rlsd/index.html" 10 | install -D -m 644 "$BASE_DIR/README" "$1/doc/rlsd/README" 11 | install -m 644 "$BASE_DIR/AUTHORS" "$1/doc/rlsd/AUTHORS" 12 | install -m 644 "$BASE_DIR/COPYING" "$1/doc/rlsd/COPYING" 13 | } 14 | -------------------------------------------------------------------------------- /rules/loksh/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup loksh-master-orig/config.h loksh-master/config.h 2 | --- loksh-master-orig/config.h 2014-08-22 21:53:10.570912294 +0300 3 | +++ loksh-master/config.h 2014-08-22 21:53:20.137912123 +0300 4 | @@ -15,7 +15,7 @@ 5 | #define EMACS 1 6 | 7 | /* Include vi editing? */ 8 | -#define VI 1 9 | +/* #define VI 1 */ 10 | 11 | /* Include job control? */ 12 | #define JOBS 1 13 | -------------------------------------------------------------------------------- /rules/elfence/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/elfence.git" 2 | PKG_DESC="A file system that verifies signed ELF binaries" 3 | PKG_DEPS="musl fuse ed25519" 4 | 5 | build() { 6 | $MAKE PUB_KEY_PATH="/mnt/ro/etc/packlim/pub_key" 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" \ 11 | SBIN_DIR="/bin" \ 12 | MAN_DIR="/man" \ 13 | DOC_DIR="/doc/elfence" \ 14 | install 15 | } 16 | -------------------------------------------------------------------------------- /rules/ca-certificates/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://raw.githubusercontent.com/bagder/curl/master/lib/mk-ca-bundle.pl http://mxr.mozilla.org/mozilla/source/security/nss/COPYING?raw=1" 2 | PKG_DESC="CA certificates" 3 | 4 | build() { 5 | perl mk-ca-bundle-$PKG_VER.pl cert.pem 6 | } 7 | 8 | package() { 9 | install -D -m 644 cert.pem "$1/etc/ssl/cert.pem" 10 | install -D -m 644 COPYING-$PKG_VER "$1/doc/ca-certificates/COPYING" 11 | } 12 | 13 | -------------------------------------------------------------------------------- /rules/mc/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup mc-4.8.13-orig/lib/tty/tty-ncurses.c mc-4.8.13/lib/tty/tty-ncurses.c 2 | --- mc-4.8.13-orig/lib/tty/tty-ncurses.c 2015-02-06 13:43:15.344148526 +0200 3 | +++ mc-4.8.13/lib/tty/tty-ncurses.c 2015-02-06 13:44:18.031478015 +0200 4 | @@ -37,6 +37,7 @@ 5 | #ifdef HAVE_SYS_IOCTL_H 6 | #include 7 | #endif 8 | +#include 9 | #include 10 | 11 | #include "lib/global.h" 12 | -------------------------------------------------------------------------------- /rules/mdp/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/visit1985/mdp.git" 2 | PKG_DESC="A presentation tool" 3 | PKG_DEPS="musl ncurses" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | $MAKE DESTDIR="$1" PREFIX="" install 11 | install -D -m 644 README.md "$1/doc/mdp/README.md" 12 | install -m 644 CREDITS "$1/doc/mdp/CREDITS" 13 | install -m 644 AUTHORS "$1/doc/mdp/AUTHORS" 14 | install -m 644 COPYING "$1/doc/mdp/COPYING" 15 | } 16 | -------------------------------------------------------------------------------- /rules/tinyalsa/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/tinyalsa/tinyalsa.git" 2 | PKG_DESC="Core audio library" 3 | PKG_DEPS="musl" 4 | 5 | build() { 6 | $MAKE 7 | } 8 | 9 | package() { 10 | install -D -m 644 libtinyalsa.a "$1/lib/libtinyalsa.a" 11 | install -D -m 644 README "$1/doc/tinyalsa/README" 12 | head -n 26 mixer.c | tail -n 24 | cut -c 4- > "$1/doc/tinyalsa/COPYING" 13 | chmod 644 "$1/doc/tinyalsa/COPYING" 14 | cp -r include "$1/" 15 | } 16 | -------------------------------------------------------------------------------- /rules/loksh/boss.patch: -------------------------------------------------------------------------------- 1 | diff -rup loksh-master-orig/main.c loksh-master/main.c 2 | --- loksh-master-orig/main.c 2014-09-26 20:26:47.877995489 +0300 3 | +++ loksh-master/main.c 2014-09-26 20:26:56.233995339 +0300 4 | @@ -412,7 +412,7 @@ init_username(void) 5 | struct tbl *vp = global("USER"); 6 | 7 | if (vp->flag & ISSET) 8 | - p = ksheuid == 0 ? "root" : str_val(vp); 9 | + p = ksheuid == 0 ? "boss" : str_val(vp); 10 | else 11 | p = getlogin(); 12 | 13 | -------------------------------------------------------------------------------- /rules/vim/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://vim.googlecode.com/hg" 2 | PKG_DESC="A text editor" 3 | PKG_DEPS="musl gpm" 4 | 5 | build() { 6 | ./configure --prefix="" \ 7 | --mandir="/man" \ 8 | --enable-multibyte \ 9 | --disable-nls 10 | [ 0 -ne $? ] && return 1 11 | 12 | $MAKE 13 | } 14 | 15 | package() { 16 | $MAKE DESTDIR="$1" install 17 | ln -s vim "$1/bin/vi" 18 | install -D -m 644 README.txt "$1/doc/vim/README.txt" 19 | } 20 | -------------------------------------------------------------------------------- /rules/gpm/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup gpm-1.20.7-orig/src/Makefile.in gpm-1.20.7/src/Makefile.in 2 | --- gpm-1.20.7-orig/src/Makefile.in 2012-10-26 23:21:38.000000000 +0200 3 | +++ gpm-1.20.7/src/Makefile.in 2014-11-08 13:47:48.258926805 +0200 4 | @@ -172,8 +172,6 @@ lib/libgpm.so.@abi_lev@: lib/libgpm.so.@ 5 | #lib/libgpm.so: lib/libgpm.so.@abi_full@ 6 | # $(LN_S) -f libgpm.so.@abi_full@ lib/libgpm.so 7 | 8 | -include $(DEPFILE) 9 | - 10 | ## Release / Dist 11 | 12 | 13 | -------------------------------------------------------------------------------- /rules/packlim/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/packlim.git" 2 | PKG_DESC="A package manager" 3 | PKG_BUILD_DEPS="musl libarchive curl ed25519 jimtcl" 4 | PKG_DEPS="musl libarchive curl clzip ed25519 jimtcl" 5 | 6 | build() { 7 | $MAKE 8 | } 9 | 10 | package() { 11 | $MAKE DESTDIR="$1" \ 12 | SBIN_DIR="/bin" \ 13 | DOC_DIR="/doc" \ 14 | MAN_DIR="/man" \ 15 | install 16 | install -D -m 644 /etc/packlim/pub_key "$1/etc/packlim/pub_key" 17 | } 18 | -------------------------------------------------------------------------------- /rules/libnl-tiny/pkg-config.patch: -------------------------------------------------------------------------------- 1 | diff -rup libnl-tiny-svn20062015-orig/files/libnl-tiny.pc libnl-tiny-svn20062015/files/libnl-tiny.pc 2 | --- libnl-tiny-svn20062015-orig/files/libnl-tiny.pc 2015-06-20 23:15:39.290256066 +0300 3 | +++ libnl-tiny-svn20062015/files/libnl-tiny.pc 2015-06-20 23:15:45.630287517 +0300 4 | @@ -1,5 +1,5 @@ 5 | -prefix=/usr 6 | -exec_prefix=/usr 7 | +prefix= 8 | +exec_prefix= 9 | libdir=${exec_prefix}/lib 10 | includedir=${prefix}/include/libnl-tiny 11 | 12 | -------------------------------------------------------------------------------- /rules/xz/no-examples.patch: -------------------------------------------------------------------------------- 1 | diff -rup xz-5.0.7-orig/Makefile.in xz-5.0.7/Makefile.in 2 | --- xz-5.0.7-orig/Makefile.in 2014-10-16 19:53:20.763987380 +0300 3 | +++ xz-5.0.7/Makefile.in 2014-10-16 19:54:50.560985771 +0300 4 | @@ -951,8 +951,7 @@ info: info-recursive 5 | 6 | info-am: 7 | 8 | -install-data-am: install-dist_docDATA install-dist_examplesDATA \ 9 | - install-dist_examplesoldDATA 10 | +install-data-am: install-dist_docDATA 11 | 12 | install-dvi: install-dvi-recursive 13 | 14 | -------------------------------------------------------------------------------- /rules/dropbear/etc/init.d/dropbear: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | start) 5 | echo -n "Starting Dropbear ..." 6 | 7 | # generate encryption keys 8 | for i in rsa dss ecdsa 9 | do 10 | [ -f /etc/dropbear/dropbear_${i}_host_key ] && continue 11 | dropbearkey -t $i -f /etc/dropbear/dropbear_${i}_host_key > /dev/null 2>&1 12 | done 13 | 14 | # start Dropbear 15 | dropbear 16 | 17 | echo " done." 18 | ;; 19 | 20 | stop) 21 | killall dropbear 22 | ;; 23 | esac 24 | -------------------------------------------------------------------------------- /rules/file/datadir.patch: -------------------------------------------------------------------------------- 1 | diff -rup file-5.19-orig/configure.ac file-5.19/configure.ac 2 | --- file-5.19-orig/configure.ac 2014-08-08 00:41:12.402804848 +0300 3 | +++ file-5.19/configure.ac 2014-08-08 00:40:41.478805402 +0300 4 | @@ -61,7 +61,7 @@ esac 5 | AC_SUBST(MINGW) 6 | AM_CONDITIONAL(MINGW, test "$MINGW" = 1) 7 | 8 | -AC_SUBST([pkgdatadir], ['$(datadir)/misc']) 9 | +AC_SUBST([pkgdatadir], ['$(datadir)/file']) 10 | AC_SUBST(fsect) 11 | AM_CONDITIONAL(FSECT5, test x$fsect = x5) 12 | 13 | -------------------------------------------------------------------------------- /rules/mutt/no-samples.patch: -------------------------------------------------------------------------------- 1 | diff -rup mutt-1.5.24-orig/Makefile.am mutt-1.5.24/Makefile.am 2 | --- mutt-1.5.24-orig/Makefile.am 2015-09-14 12:59:07.105781413 +0300 3 | +++ mutt-1.5.24/Makefile.am 2015-09-14 12:59:38.085934778 +0300 4 | @@ -10,7 +10,7 @@ IMAP_SUBDIR = imap 5 | IMAP_INCLUDES = -I$(top_srcdir)/imap 6 | endif 7 | 8 | -SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR) 9 | +SUBDIRS = m4 po intl doc $(IMAP_SUBDIR) 10 | 11 | bin_SCRIPTS = muttbug flea $(SMIMEAUX_TARGET) 12 | 13 | -------------------------------------------------------------------------------- /flavors/big: -------------------------------------------------------------------------------- 1 | set repo [env REPO] 2 | set available [packlim::available $repo ""] 3 | 4 | foreach package {skeleton toybox sdaemons loksh packlim mandoc initramfs linux-libre isolinux rfkill dhcpcd iw wpa_supplicant iptables libarchive pigz lbzip2 xz nano alsa-utils gpm bitlbee calcurse dropbear fbcat fbv fbgs ffmpeg file htop irssi lynx mpg123 mplayer mutt ncdu ogg122 screen snownews surfraw tcpdump tty-clock vifm vim wget} { 5 | packlim::fetch $repo $package $available locked "" 6 | } 7 | 8 | packlim::purge 9 | -------------------------------------------------------------------------------- /rules/file/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup file-5.20-orig/src/file.h file-5.20/src/file.h 2 | --- file-5.20-orig/src/file.h 2014-10-11 13:31:30.011970075 +0300 3 | +++ file-5.20/src/file.h 2014-10-11 13:31:57.726969579 +0300 4 | @@ -477,7 +477,7 @@ protected int file_os2_apptype(struct ma 5 | 6 | typedef struct { 7 | const char *pat; 8 | -#if defined(HAVE_NEWLOCALE) && defined(HAVE_USELOCALE) && defined(HAVE_FREELOCALE) 9 | +#if 0 10 | #define USE_C_LOCALE 11 | locale_t old_lc_ctype; 12 | locale_t c_lc_ctype; 13 | -------------------------------------------------------------------------------- /rules/loksh/etc/kshrc: -------------------------------------------------------------------------------- 1 | tty="$(readlink /proc/self/fd/0)" 2 | case "$tty" in 3 | /dev/tty*) 4 | tty="|$(basename "$tty")" 5 | ;; 6 | /dev/pts/*) 7 | tty="|pts$(basename "$tty")" 8 | ;; 9 | *) 10 | tty="" 11 | esac 12 | export PS1="[\u$tty@\w]\$ " 13 | unset tty 14 | export HISTFILE="$HOME/.ksh_history" 15 | 16 | bind '^[[1~'="beginning-of-line" 17 | bind '^[[4~'="end-of-line" 18 | bind '^[[3~'="delete-char-forward" 19 | bind -m '^L'="clear^J" 20 | 21 | alias ls="ls --color=auto" 22 | alias ll="ls -la" 23 | -------------------------------------------------------------------------------- /rules/vim/confdir.patch: -------------------------------------------------------------------------------- 1 | diff -rup vim-hg31012015-orig/src/feature.h vim-hg31012015/src/feature.h 2 | --- vim-hg31012015-orig/src/feature.h 2015-01-31 23:25:57.056816566 +0200 3 | +++ vim-hg31012015/src/feature.h 2015-01-31 23:26:45.912817727 +0200 4 | @@ -931,7 +931,7 @@ 5 | /* 6 | * SYS_VIMRC_FILE Name of the system-wide .vimrc file. 7 | */ 8 | -/* #define SYS_VIMRC_FILE "/etc/vimrc" */ 9 | +#define SYS_VIMRC_FILE "/etc/vimrc" 10 | 11 | /* 12 | * SYS_GVIMRC_FILE Name of the system-wide .gvimrc file. 13 | -------------------------------------------------------------------------------- /scripts/check_version: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | get_latest() { 4 | date +%d%m%Y 5 | } 6 | 7 | PKG_VER="$(get_latest)" 8 | . "./rules/$1/build" 9 | 10 | echo "> Checking whether $PKG_VER is the latest version of $1" 11 | latest="$(get_latest)" 12 | if [ -z "$latest" ] 13 | then 14 | echo "> Warning: failed to obtain the latest version of $1" 15 | else 16 | if [ "$PKG_VER" != "$latest" ] 17 | then 18 | echo "> Warning: the latest version of $1 is $latest" 19 | else 20 | echo "> $1 is up-to-date" 21 | fi 22 | fi 23 | -------------------------------------------------------------------------------- /hooks/4strip: -------------------------------------------------------------------------------- 1 | HOOK_NAME="remove debugging symbols" 2 | 3 | run() { 4 | [ ! -d "./bin" ] && return 5 | 6 | find "./bin" -type f | while read i 7 | do 8 | type="$(file -b --mime-type "$i")" 9 | [ "application/x-executable" != "$type" ] && continue 10 | dbg="$(basename "$i").dbg" 11 | echo "> Exporting debugging symbols to $dbg" 12 | [ ! -d "./dbg" ] && mkdir dbg 13 | objcopy --only-keep-debug "$i" "dbg/$dbg" 14 | echo "> Stripping $i" 15 | strip --strip-all -R .note -R .comment "$i" 16 | done 17 | } 18 | -------------------------------------------------------------------------------- /rules/calcurse/langs.patch: -------------------------------------------------------------------------------- 1 | diff -rup calcurse-3.2.1-orig/doc/Makefile.in calcurse-3.2.1/doc/Makefile.in 2 | --- calcurse-3.2.1-orig/doc/Makefile.in 2014-08-17 23:40:10.988989380 +0300 3 | +++ calcurse-3.2.1/doc/Makefile.in 2014-08-17 23:40:26.260989107 +0300 4 | @@ -266,7 +266,7 @@ AUTOMAKE_OPTIONS = foreign 5 | @HAVE_A2X_TRUE@ -d manpage \ 6 | @HAVE_A2X_TRUE@ -f manpage 7 | 8 | -doc_langs = fr de es nl ru pt_BR 9 | +doc_langs = 10 | nobase_dist_doc_DATA = \ 11 | manual.html \ 12 | submitting-patches.html \ 13 | -------------------------------------------------------------------------------- /rules/libxml2/no-cmake.patch: -------------------------------------------------------------------------------- 1 | diff -rup libxml2-2.9.2-orig/Makefile.in libxml2-2.9.2/Makefile.in 2 | --- libxml2-2.9.2-orig/Makefile.in 2014-10-16 20:12:00.052967335 +0300 3 | +++ libxml2-2.9.2/Makefile.in 2014-10-16 20:16:52.924962090 +0300 4 | @@ -1780,7 +1780,7 @@ info: info-recursive 5 | 6 | info-am: 7 | 8 | -install-data-am: install-cmakeDATA install-data-local \ 9 | +install-data-am: install-data-local \ 10 | install-m4dataDATA install-man install-pkgconfigDATA 11 | 12 | install-dvi: install-dvi-recursive 13 | -------------------------------------------------------------------------------- /rules/setfont/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup kbd-2.0.2-orig/configure.ac kbd-2.0.2/configure.ac 2 | --- kbd-2.0.2-orig/configure.ac 2014-11-01 14:04:35.712999271 +0200 3 | +++ kbd-2.0.2/configure.ac 2014-11-01 14:09:04.704994453 +0200 4 | @@ -11,8 +11,6 @@ AM_INIT_AUTOMAKE([1.9 -Wall color-tests 5 | AC_CONFIG_SRCDIR([src/loadkeys.c]) 6 | AC_CONFIG_HEADERS(config.h) 7 | 8 | -PKG_CHECK_MODULES([CHECK], [check >= 0.9.4]) 9 | - 10 | m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])]) 11 | AM_SILENT_RULES([yes]) 12 | 13 | -------------------------------------------------------------------------------- /rules/packlim/bin/packsuggest: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # packsuggest: a package suggestion helper for ksh 4 | 5 | [ 1 -ne $# ] && exit 1 6 | 7 | match="$(packlim available 2>/dev/null | sort -r | grep "^$1" | head -n 1 | cut -f 1 -d \|)" 8 | case "$match" in 9 | "") 10 | exit 1 11 | ;; 12 | "$1") 13 | echo "$match is not installed. To install $match, run 'packlim install $match'." 14 | ;; 15 | *) 16 | echo "Maybe you meant '$match'. To install $match, run 'packlim install $match'." 17 | ;; 18 | esac 19 | 20 | exit 0 21 | -------------------------------------------------------------------------------- /scripts/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | [ -f "packages/$1.tar.lz" ] && exit 0 4 | 5 | rm -f "logs/$1.log.lz" "logs/$1.log" 2>/dev/null 6 | 7 | for i in 1 2 3 8 | do 9 | echo "> Building $1 (attempt $i), $(date -R)" >> "logs/$1.log" 10 | ./scripts/try_build "$1" \ 11 | "packages/$1.tar.lz" \ 12 | "debug/$1.tar.lz" >> "logs/$1.log" 2>&1 13 | [ 0 -ne $? ] && continue 14 | 15 | echo "> Successfully built $1" >> "logs/$1.log" 16 | lzip -9 "logs/$1.log" 17 | exit 0 18 | done 19 | 20 | exit 1 21 | -------------------------------------------------------------------------------- /rules/linux-libre/swappiness.patch: -------------------------------------------------------------------------------- 1 | diff -rup linux-3.14-orig/mm/vmscan.c linux-3.14/mm/vmscan.c 2 | --- linux-3.14-orig/mm/vmscan.c 2014-07-04 16:50:21.578724205 +0300 3 | +++ linux-3.14/mm/vmscan.c 2014-07-04 16:51:54.823722535 +0300 4 | @@ -129,7 +129,7 @@ struct scan_control { 5 | /* 6 | * From 0 .. 100. Higher means more swappy. 7 | */ 8 | -int vm_swappiness = 60; 9 | +int vm_swappiness = 20; 10 | unsigned long vm_total_pages; /* The total number of pages which the VM controls */ 11 | 12 | static LIST_HEAD(shrinker_list); 13 | -------------------------------------------------------------------------------- /rules/tty-clock/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/xorg62/tty-clock.git" 2 | PKG_DESC="An analog clock" 3 | PKG_DEPS="musl ncurses" 4 | 5 | build() { 6 | $CC -o tty-clock ttyclock.c $CFLAGS $LDFLAGS -lncurses 7 | } 8 | 9 | package() { 10 | install -D -m 755 tty-clock "$1/bin/tty-clock" 11 | install -D -m 644 tty-clock.1 "$1/man/man1/tty-clock.1" 12 | install -D -m 644 README "$1/doc/tty-clock/README" 13 | head -n 30 ttyclock.c | tail -n 28 | cut -c 9- > "$1/doc/tty-clock/COPYING" 14 | chmod 644 "$1/doc/tty-clock/COPYING" 15 | } 16 | -------------------------------------------------------------------------------- /rules/ed25519/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/orlp/ed25519.git" 2 | PKG_DESC="A digital signature system" 3 | PKG_DEPS="musl" 4 | 5 | build() { 6 | cd src 7 | $MAKE 8 | [ 0 -ne $? ] && return 1 9 | 10 | $CC $CFLAGS $LDFLAGS -o ed25519 ../ed25519.c -I. -L. -led25519 $LIBS 11 | } 12 | 13 | package() { 14 | install -D -m 755 ed25519 "$1/bin/ed25519" 15 | install -D -m 644 libed25519.a "$1/lib/libed25519.a" 16 | install -D -m 644 ed25519.h "$1/include/ed25519.h" 17 | install -D -m 644 ../readme.md "$1/doc/ed25519/readme.md" 18 | } 19 | -------------------------------------------------------------------------------- /rules/jimtcl/win32compat.patch: -------------------------------------------------------------------------------- 1 | diff -rup jimtcl-git15052015-orig/jim.h jimtcl-git15052015/jim.h 2 | --- jimtcl-git15052015-orig/jim.h 2015-05-15 23:40:34.544214571 +0300 3 | +++ jimtcl-git15052015/jim.h 2015-05-15 23:40:44.980266753 +0300 4 | @@ -79,8 +79,6 @@ extern "C" { 5 | * System configuration 6 | * autoconf (configure) will set these 7 | * ---------------------------------------------------------------------------*/ 8 | -#include 9 | - 10 | #ifndef HAVE_NO_AUTOCONF 11 | #include 12 | #endif 13 | -------------------------------------------------------------------------------- /rules/libjpeg-turbo/docdir.patch: -------------------------------------------------------------------------------- 1 | diff -rup libjpeg-turbo-1.4.1-orig/Makefile.in libjpeg-turbo-1.4.1/Makefile.in 2 | --- libjpeg-turbo-1.4.1-orig/Makefile.in 2015-06-09 20:59:22.221803249 +0300 3 | +++ libjpeg-turbo-1.4.1/Makefile.in 2015-06-09 21:02:58.450875410 +0300 4 | @@ -414,7 +414,7 @@ build_cpu = @build_cpu@ 5 | build_os = @build_os@ 6 | build_vendor = @build_vendor@ 7 | datadir = @datadir@ 8 | -docdir = @docdir@ 9 | +docdir = @docdir@/@PACKAGE@ 10 | exec_prefix = @exec_prefix@ 11 | host = @host@ 12 | host_alias = @host_alias@ 13 | -------------------------------------------------------------------------------- /rules/libjpeg-turbo/no-examples.patch: -------------------------------------------------------------------------------- 1 | diff -rup libjpeg-turbo-1.3.1-orig/Makefile.in libjpeg-turbo-1.3.1/Makefile.in 2 | --- libjpeg-turbo-1.3.1-orig/Makefile.in 2014-10-16 19:57:14.635983191 +0300 3 | +++ libjpeg-turbo-1.3.1/Makefile.in 2014-10-16 19:58:06.978982254 +0300 4 | @@ -2007,7 +2007,7 @@ info: info-recursive 5 | 6 | info-am: 7 | 8 | -install-data-am: install-dist_docDATA install-dist_exampleDATA \ 9 | +install-data-am: install-dist_docDATA \ 10 | install-includeHEADERS install-man \ 11 | install-nodist_includeHEADERS 12 | 13 | -------------------------------------------------------------------------------- /rules/libnl-tiny/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="svn://svn.openwrt.org/openwrt/trunk/package/libs/libnl-tiny" 2 | PKG_DESC="An IPC library" 3 | PKG_DEPS="musl" 4 | 5 | build() { 6 | cd src 7 | for i in *.c 8 | do 9 | $CC $CFLAGS -Iinclude -c -o "$(basename "$i" .c).o" "$i" 10 | done 11 | ar rcs libnl-tiny.a *.o 12 | } 13 | 14 | package() { 15 | install -D -m 644 libnl-tiny.a "$1/lib/libnl-tiny.a" 16 | mkdir "$1/include" 17 | cp -r include "$1/include/libnl-tiny" 18 | install -D -m 644 ../files/libnl-tiny.pc "$1/lib/pkgconfig/libnl-tiny.pc" 19 | } 20 | -------------------------------------------------------------------------------- /rules/tinyalsa/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup tinyalsa-orig/include/sound/asound.h tinyalsa/include/sound/asound.h 2 | --- tinyalsa-orig/include/sound/asound.h 2013-12-27 17:27:14.052719655 +0000 3 | +++ tinyalsa/include/sound/asound.h 2013-12-27 17:37:45.132736556 +0000 4 | @@ -13,6 +13,7 @@ 5 | #define __SOUND_ASOUND_H 6 | 7 | #include 8 | +#include 9 | 10 | #define SNDRV_PROTOCOL_VERSION(major, minor, subminor) (((major)<<16)|((minor)<<8)|(subminor)) 11 | #define SNDRV_PROTOCOL_MAJOR(version) (((version)>>16)&0xffff) 12 | -------------------------------------------------------------------------------- /rules/zlib/mandir.patch: -------------------------------------------------------------------------------- 1 | diff -rup zlib-1.2.8-orig/configure zlib-1.2.8/configure 2 | --- zlib-1.2.8-orig/configure 2015-01-30 14:29:27.614159767 +0200 3 | +++ zlib-1.2.8/configure 2015-01-30 14:29:36.118159969 +0200 4 | @@ -64,7 +64,7 @@ exec_prefix=${exec_prefix-'${prefix}'} 5 | libdir=${libdir-'${exec_prefix}/lib'} 6 | sharedlibdir=${sharedlibdir-'${libdir}'} 7 | includedir=${includedir-'${prefix}/include'} 8 | -mandir=${mandir-'${prefix}/share/man'} 9 | +mandir=${mandir-'${prefix}/man'} 10 | shared_ext='.so' 11 | shared=1 12 | solo=0 13 | -------------------------------------------------------------------------------- /rules/libxml2/docdir.patch: -------------------------------------------------------------------------------- 1 | diff -rup libxml2-2.9.2-orig/Makefile.in libxml2-2.9.2/Makefile.in 2 | --- libxml2-2.9.2-orig/Makefile.in 2015-01-30 15:04:22.554209556 +0200 3 | +++ libxml2-2.9.2/Makefile.in 2015-01-30 15:05:03.210210522 +0200 4 | @@ -833,8 +833,8 @@ cmake_DATA = libxml2-config.cmake 5 | # 6 | # Install the tests program sources as examples 7 | # 8 | -BASE_DIR = $(datadir)/doc 9 | -DOC_MODULE = libxml2-$(VERSION) 10 | +BASE_DIR = $(docdir) 11 | +DOC_MODULE = libxml2 12 | EXAMPLES_DIR = $(BASE_DIR)/$(DOC_MODULE)/examples 13 | 14 | # 15 | -------------------------------------------------------------------------------- /rules/dvtm/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup dvtm-0.14-orig/config.mk dvtm-0.14/config.mk 2 | --- dvtm-0.14-orig/config.mk 2015-02-28 16:35:20.850125031 +0200 3 | +++ dvtm-0.14/config.mk 2015-02-28 16:37:07.306127561 +0200 4 | @@ -3,8 +3,8 @@ VERSION = 0.14 5 | 6 | # Customize below to fit your system 7 | 8 | -PREFIX ?= /usr/local 9 | -MANPREFIX = ${PREFIX}/share/man 10 | +PREFIX = 11 | +MANPREFIX = ${PREFIX}/man 12 | # specify your systems terminfo directory 13 | # leave empty to install into your home folder 14 | TERMINFO := ${DESTDIR}${PREFIX}/share/terminfo 15 | -------------------------------------------------------------------------------- /rules/ghostscript/no-langs.patch: -------------------------------------------------------------------------------- 1 | diff -rup ghostscript-9.15-orig/base/unixinst.mak ghostscript-9.15/base/unixinst.mak 2 | --- ghostscript-9.15-orig/base/unixinst.mak 2014-10-16 20:42:16.829934800 +0300 3 | +++ ghostscript-9.15/base/unixinst.mak 2014-10-16 20:52:57.937923319 +0300 4 | @@ -142,7 +142,7 @@ install-doc: $(PSDOCDIR)/News.htm 5 | done' 6 | 7 | # install the man pages for each locale 8 | -MAN_LCDIRS=. de 9 | +MAN_LCDIRS=. 10 | MAN1_LINKS_PS2PS=eps2eps 11 | MAN1_LINKS_PS2PDF=ps2pdf12 ps2pdf13 ps2pdf14 12 | MAN1_LINKS_GSLP=gsbj gsdj gsdj500 gslj 13 | -------------------------------------------------------------------------------- /rules/gpm/run.patch: -------------------------------------------------------------------------------- 1 | diff -rup gpm-1.20.7-orig/src/headers/gpm.h gpm-1.20.7/src/headers/gpm.h 2 | --- gpm-1.20.7-orig/src/headers/gpm.h 2012-10-26 23:21:38.000000000 +0200 3 | +++ gpm-1.20.7/src/headers/gpm.h 2014-11-08 14:15:50.305896683 +0200 4 | @@ -51,7 +51,7 @@ extern "C" { 5 | #define _PATH_DEV "/dev/" 6 | #endif 7 | 8 | -#define GPM_NODE_DIR _PATH_VARRUN 9 | +#define GPM_NODE_DIR "/run/" 10 | 11 | /* itz Wed Jul 1 11:56:46 PDT 1998 this definitely ought not to be 12 | world-writable; umask doesn't apply either, as gpm is most often 13 | -------------------------------------------------------------------------------- /rules/calcurse/no-upgrade.patch: -------------------------------------------------------------------------------- 1 | diff -rup calcurse-3.2.1-orig/scripts/Makefile.in calcurse-3.2.1/scripts/Makefile.in 2 | --- calcurse-3.2.1-orig/scripts/Makefile.in 2015-01-30 21:11:47.505179254 +0200 3 | +++ calcurse-3.2.1/scripts/Makefile.in 2015-01-30 21:12:11.169005756 +0200 4 | @@ -253,8 +253,7 @@ top_build_prefix = @top_build_prefix@ 5 | top_builddir = @top_builddir@ 6 | top_srcdir = @top_srcdir@ 7 | AUTOMAKE_OPTIONS = foreign 8 | -dist_bin_SCRIPTS = \ 9 | - calcurse-upgrade 10 | +dist_bin_SCRIPTS = 11 | 12 | EXTRA_DIST = \ 13 | calcurse-upgrade.sh.in 14 | -------------------------------------------------------------------------------- /rules/ghostscript/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup ghostscript-9.14-orig/configure.ac ghostscript-9.14/configure.ac 2 | --- ghostscript-9.14-orig/configure.ac 2014-08-22 14:33:32.233939806 +0300 3 | +++ ghostscript-9.14/configure.ac 2014-08-22 15:43:32.926864580 +0300 4 | @@ -150,7 +150,7 @@ SET_DT_SONAME="-soname=" 5 | case `uname` in 6 | Linux*|GNU*) 7 | if test $ac_cv_prog_gcc = yes; then 8 | - CC_OPT_FLAGS_TO_TRY="-O2" 9 | + CC_OPT_FLAGS_TO_TRY="" 10 | CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0" 11 | fi 12 | ;; 13 | -------------------------------------------------------------------------------- /rules/mc/no-examples.patch: -------------------------------------------------------------------------------- 1 | diff -rup mc-4.8.13-orig/misc/Makefile.in mc-4.8.13/misc/Makefile.in 2 | --- mc-4.8.13-orig/misc/Makefile.in 2015-02-13 13:49:32.623749344 +0200 3 | +++ mc-4.8.13/misc/Makefile.in 2015-02-13 13:50:08.483748608 +0200 4 | @@ -468,7 +468,7 @@ target_alias = @target_alias@ 5 | top_build_prefix = @top_build_prefix@ 6 | top_builddir = @top_builddir@ 7 | top_srcdir = @top_srcdir@ 8 | -SUBDIRS = ext.d macros.d skins syntax 9 | +SUBDIRS = ext.d skins syntax 10 | LIBFILES_OUT = mc.ext 11 | noinst_DATA = xterm.ad 12 | pkgdata_DATA = mc.lib $(am__append_1) 13 | -------------------------------------------------------------------------------- /rules/fbgs/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.10" 2 | PKG_SRCS="https://www.kraxel.org/releases/fbida/fbida-$PKG_VER.tar.gz" 3 | PKG_DESC="A PDF viewer" 4 | PKG_BUILD_DEPS="" 5 | PKG_DEPS="loksh ghostscript fbv" 6 | 7 | get_latest() { 8 | wget -q -O - "https://www.kraxel.org/releases/fbida/" | 9 | grep "\.tar" | 10 | head -n 1 | 11 | cut -f 3 -d \- | 12 | sed s~'\.tar.*'~~ 13 | } 14 | 15 | build() { 16 | : 17 | } 18 | 19 | package() { 20 | install -D -m 755 fbgs "$1/bin/fbgs" 21 | install -D -m 644 fbgs.man "$1/man/man1/fbgs.1" 22 | install -D -m 644 COPYING "$1/doc/fbgs/COPYING" 23 | } 24 | -------------------------------------------------------------------------------- /rules/vifm/no-desktop.patch: -------------------------------------------------------------------------------- 1 | diff -rup vifm-0.8-orig/src/Makefile.in vifm-0.8/src/Makefile.in 2 | --- vifm-0.8-orig/src/Makefile.in 2015-07-11 11:05:04.557977851 +0300 3 | +++ vifm-0.8/src/Makefile.in 2015-07-11 11:08:13.094912778 +0300 4 | @@ -348,7 +348,7 @@ MOSTLYCLEANFILES = compile_info.c \ 5 | 6 | desktopappdir = $(datadir)/applications 7 | desktopappfile = ../data/vifm.desktop 8 | -desktopapp_DATA = $(desktopappfile) 9 | +desktopapp_DATA = 10 | desktoppixdir = $(datadir)/pixmaps 11 | desktoppixfile = ../data/graphics/vifm.png 12 | desktoppix_DATA = $(desktoppixfile) 13 | -------------------------------------------------------------------------------- /scripts/create_repo: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TODAY="$(date +%d%m%Y)" 4 | 5 | for i in rules/* 6 | do 7 | PKG_VER="$TODAY" 8 | PKG_DEPS="" 9 | . "$i/build" 10 | name="$(basename "$i")" 11 | package="$name-$PKG_VER.pkg" 12 | tar2pkg "packages/$name.tar.lz" \ 13 | /etc/packlim/priv_key \ 14 | /etc/packlim/pub_key \ 15 | "repo/$package" 16 | echo "$name|$PKG_VER|$PKG_DESC|$package|$PKG_DEPS" >> repo/available 17 | done 18 | 19 | ed25519 -s \ 20 | repo/available \ 21 | /etc/packlim/priv_key \ 22 | /etc/packlim/pub_key > repo/available.sig 23 | -------------------------------------------------------------------------------- /rules/libpcap/old-headers.patch: -------------------------------------------------------------------------------- 1 | diff -rup libpcap-1.7.2-orig/pcap-linux.c libpcap-1.7.2/pcap-linux.c 2 | --- libpcap-1.7.2-orig/pcap-linux.c 2015-03-11 18:49:39.693272105 +0200 3 | +++ libpcap-1.7.2/pcap-linux.c 2015-03-11 18:50:17.149272995 +0200 4 | @@ -187,6 +187,9 @@ 5 | # endif /* PACKET_AUXDATA */ 6 | # endif /* PACKET_HOST */ 7 | 8 | +# ifndef SKF_AD_VLAN_TAG_PRESENT 9 | +# define SKF_AD_VLAN_TAG_PRESENT 48 10 | +# endif 11 | 12 | /* check for memory mapped access avaibility. We assume every needed 13 | * struct is defined if the macro TPACKET_HDRLEN is defined, because it 14 | -------------------------------------------------------------------------------- /rules/fbv/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.0b" 2 | PKG_SRCS="http://s-tech.elsat.net.pl/fbv/fbv-$PKG_VER.tar.gz" 3 | PKG_DESC="An image viewer" 4 | PKG_DEPS="musl libpng libjpeg-turbo giflib" 5 | 6 | get_latest() { 7 | wget -q -O - "http://s-tech.elsat.net.pl/fbv/" | 8 | grep "\.tar" | 9 | sort -V | 10 | cut -f 3 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | $MAKE 16 | } 17 | 18 | package() { 19 | $MAKE DESTDIR="$1" install 20 | install -D -m 644 README "$1/doc/fbv/README" 21 | install -m 644 ChangeLog "$1/doc/fbv/ChangeLog" 22 | install -m 644 COPYING "$1/doc/fbv/COPYING" 23 | } 24 | -------------------------------------------------------------------------------- /rules/linux-libre/cursor.patch: -------------------------------------------------------------------------------- 1 | diff -rup linux-3.14.37-orig/drivers/tty/vt/vt.c linux-3.14.37/drivers/tty/vt/vt.c 2 | --- linux-3.14.37-orig/drivers/tty/vt/vt.c 2015-04-09 15:11:54.054670713 +0300 3 | +++ linux-3.14.37/drivers/tty/vt/vt.c 2015-04-09 15:12:08.134670424 +0300 4 | @@ -162,7 +162,7 @@ module_param(default_utf8, int, S_IRUGO 5 | int global_cursor_default = -1; 6 | module_param(global_cursor_default, int, S_IRUGO | S_IWUSR); 7 | 8 | -static int cur_default = CUR_DEFAULT; 9 | +static int cur_default = 16748305; 10 | module_param(cur_default, int, S_IRUGO | S_IWUSR); 11 | 12 | /* 13 | -------------------------------------------------------------------------------- /rules/iana-etc/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.30" 2 | PKG_SRCS="http://sethwklein.net/iana-etc-$PKG_VER.tar.bz2" 3 | PKG_DESC="IANA data files" 4 | 5 | get_latest() { 6 | wget -q -O - "http://sethwklein.net/iana-etc" | 7 | grep "\.tar" | 8 | head -n 1 | 9 | cut -f 5 -d \- | 10 | sed s~'\.tar.*'~~ 11 | } 12 | 13 | build() { 14 | $MAKE 15 | } 16 | 17 | package() { 18 | $MAKE DESTDIR="$1" install 19 | install -D -m 644 README "$1/doc/iana-etc/README" 20 | install -m 644 NEWS "$1/doc/iana-etc/NEWS" 21 | install -m 644 CREDITS "$1/doc/iana-etc/CREDITS" 22 | install -m 644 COPYING "$1/doc/iana-etc/COPYING" 23 | } 24 | -------------------------------------------------------------------------------- /rules/zlib/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.2.8" 2 | PKG_SRCS="http://zlib.net/zlib-$PKG_VER.tar.gz" 3 | PKG_DESC="A compression library" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.zlib.net/" | 8 | grep 'zlib [0-9]' | 9 | head -n 1 | 10 | cut -f 8 -d \ | 11 | cut -f 1 -d \< 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --static 17 | [ 0 -ne $? ] && return 1 18 | 19 | $MAKE libz.a 20 | } 21 | 22 | package() { 23 | $MAKE DESTDIR="$1" install 24 | install -D -m 644 README "$1/doc/zlib/README" 25 | install -m 644 ChangeLog "$1/doc/zlib/ChangeLog" 26 | } 27 | -------------------------------------------------------------------------------- /rules/ed25519/build.patch: -------------------------------------------------------------------------------- 1 | diff -rupN ed25519-orig/src/Makefile ed25519/src/Makefile 2 | --- ed25519-orig/src/Makefile 1970-01-01 02:00:00.000000000 +0200 3 | +++ ed25519/src/Makefile 2014-10-23 22:48:24.630924971 +0300 4 | @@ -0,0 +1,21 @@ 5 | +CC ?= cc 6 | +CFLAGS ?= -O2 -pipe 7 | +LDFLAGS ?= -s 8 | + 9 | +CFLAGS += -std=gnu99 -Wall -pedantic 10 | + 11 | +SRCS = $(wildcard *.c) 12 | +OBJS = $(SRCS:.c=.o) 13 | + 14 | +LIB = libed25519.a 15 | + 16 | +all: $(LIB) 17 | + 18 | +%.o: %.c 19 | + $(CC) -c -o $@ $< $(CFLAGS) 20 | + 21 | +$(LIB): $(OBJS) 22 | + ar rcs $@ $^ 23 | + 24 | +clean: 25 | + rm -f $(LIB) $(OBJS) 26 | -------------------------------------------------------------------------------- /rules/vitetris/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup vitetris-0.57-orig/Makefile vitetris-0.57/Makefile 2 | --- vitetris-0.57-orig/Makefile 2014-10-07 23:18:23.153985438 +0300 3 | +++ vitetris-0.57/Makefile 2014-10-07 23:20:41.623982958 +0300 4 | @@ -1,9 +1,9 @@ 5 | include config.mk 6 | 7 | -PROGNAME = tetris$(EXE) 8 | +PROGNAME = vitetris$(EXE) 9 | 10 | # Uncomment to change the default. (Only used in Unix-like systems.) 11 | -#HISCORE_FILENAME = /var/games/vitetris-hiscores 12 | +HISCORE_FILENAME = /var/games/vitetris/hiscores 13 | 14 | INSTALL = install -oroot -groot 15 | 16 | Only in vitetris-0.57: vitetris 17 | -------------------------------------------------------------------------------- /rules/rfkill/build: -------------------------------------------------------------------------------- 1 | PKG_VER="0.5" 2 | PKG_SRCS="https://www.kernel.org/pub/software/network/rfkill/rfkill-$PKG_VER.tar.xz" 3 | PKG_DESC="A tool for disabling network interfaces" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "https://www.kernel.org/pub/software/network/rfkill/" | 8 | grep "\.tar" | 9 | tail -n 1 | 10 | cut -f 2 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | $MAKE 16 | } 17 | 18 | package() { 19 | $MAKE DESTDIR="$1" SBINDIR="/bin" MANDIR="/man" install 20 | install -D -m 644 README "$1/doc/rfkill/README" 21 | install -m 644 COPYING "$1/doc/rfkill/COPYING" 22 | } 23 | -------------------------------------------------------------------------------- /rules/ytree/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.98" 2 | PKG_SRCS="http://www.han.de/~werner/ytree-$PKG_VER.tar.gz" 3 | PKG_DESC="A file manager" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.han.de/~werner/ytree.html" | 8 | grep "New in" | 9 | head -n 1 | 10 | cut -f 3 -d \ 11 | } 12 | 13 | build() { 14 | $MAKE CC="$CC" 15 | } 16 | 17 | package() { 18 | $MAKE DESTDIR="$1" install 19 | install -D -m 644 README "$1/doc/ytree/README" 20 | install -m 644 CHANGES "$1/doc/ytree/CHANGES" 21 | install -m 644 THANKS "$1/doc/ytree/THANKS" 22 | install -m 644 COPYING "$1/doc/ytree/COPYING" 23 | } 24 | -------------------------------------------------------------------------------- /rules/tamsyn-font/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.11" 2 | PKG_SRCS="http://www.fial.com/~scott/tamsyn-font/download/tamsyn-font-$PKG_VER.tar.gz" 3 | PKG_DESC="A monospace, programming font" 4 | 5 | get_latest() { 6 | wget -q -O - "http://www.fial.com/~scott/tamsyn-font/" | 7 | grep "download/Tamsyn" | 8 | cut -f 2 -d \- | 9 | sed s~'\.zip.*'~~ 10 | } 11 | 12 | build() { 13 | gunzip *.gz 14 | } 15 | 16 | package() { 17 | for i in *.psf 18 | do 19 | install -D -m 644 $i "$1/share/consolefonts/$i" 20 | done 21 | install -D -m 644 README "$1/doc/tamsyn-font/README" 22 | install -m 644 LICENSE "$1/doc/tamsyn-font/LICENSE" 23 | } 24 | -------------------------------------------------------------------------------- /rules/isolinux/boot/isolinux.cfg: -------------------------------------------------------------------------------- 1 | DEFAULT menu.c32 2 | PROMPT 0 3 | TIMEOUT 50 4 | 5 | MENU TITLE RLSD 6 | MENU CLEAR 7 | 8 | LABEL rlsd 9 | MENU LABEL Boot normally 10 | KERNEL /boot/bzImage 11 | INITRD /boot/initrd.xz 12 | 13 | LABEL auto 14 | MENU LABEL Boot and try to guess the display resolution 15 | KERNEL /boot/bzImage 16 | INITRD /boot/initrd.xz 17 | APPEND vga=ask 18 | 19 | LABEL text 20 | MENU LABEL Boot in text mode 21 | KERNEL /boot/bzImage 22 | INITRD /boot/initrd.xz 23 | APPEND nomodeset 24 | 25 | LABEL dev 26 | MENU LABEL Boot in developer mode 27 | KERNEL /boot/bzImage 28 | INITRD /boot/initrd.xz 29 | APPEND secure=0 30 | -------------------------------------------------------------------------------- /rules/libxml2/confexecdir.patch: -------------------------------------------------------------------------------- 1 | diff -rup libxml2-2.9.2-orig/Makefile.in libxml2-2.9.2/Makefile.in 2 | --- libxml2-2.9.2-orig/Makefile.in 2014-10-16 20:12:00.052967335 +0300 3 | +++ libxml2-2.9.2/Makefile.in 2014-10-16 20:12:06.064967228 +0300 4 | @@ -808,7 +808,7 @@ runxmlconf_DEPENDENCIES = $(DEPS) 5 | runxmlconf_LDADD = $(LDADDS) 6 | CLEANFILES = runxmlconf.log test.out xml2Conf.sh *.gcda *.gcno *.res 7 | DISTCLEANFILES = COPYING missing.lst 8 | -confexecdir = $(libdir) 9 | +confexecdir = $(pkgdatadir) 10 | confexec_DATA = xml2Conf.sh 11 | CVS_EXTRA_DIST = 12 | EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \ 13 | -------------------------------------------------------------------------------- /rules/fbcat/build: -------------------------------------------------------------------------------- 1 | PKG_VER="0.4.1" 2 | PKG_SRCS="https://bitbucket.org/jwilk/fbcat/downloads/fbcat-$PKG_VER.tar.gz" 3 | PKG_DESC="A screenshot taking tool" 4 | PKG_BUILD_DEPS="musl" 5 | PKG_DEPS="musl ffmpeg" 6 | 7 | get_latest() { 8 | wget -q -O - "https://bitbucket.org/jwilk/fbcat/downloads" | 9 | grep "\.tar" | 10 | head -n 1 | 11 | cut -f 2 -d \- | 12 | sed s~'\.tar.*'~~ 13 | } 14 | 15 | build() { 16 | $MAKE 17 | } 18 | 19 | package() { 20 | install -D -m 755 fbcat "$1/bin/fbcat" 21 | install -m 755 fbgrab "$1/bin/fbgrab" 22 | install -D -m 644 doc/changelog "$1/doc/fbcat/changelog" 23 | install -m 644 COPYING "$1/doc/fbcat/COPYING" 24 | } 25 | -------------------------------------------------------------------------------- /rules/aop/datadir.patch: -------------------------------------------------------------------------------- 1 | diff -rup aop-0.6-orig/aop.c aop-0.6/aop.c 2 | --- aop-0.6-orig/aop.c 2014-09-24 12:54:28.070958917 +0300 3 | +++ aop-0.6/aop.c 2014-09-24 12:54:50.306958519 +0300 4 | @@ -21,7 +21,7 @@ int main(int argc, char *argv[]) { 5 | init_pair(1, COLOR_RED, COLOR_BLACK); 6 | 7 | start: memset(field, ' ', 25*81); 8 | - snprintf(tmp, 96, "/usr/local/share/aop/aop-level-%02d.txt", level); 9 | + snprintf(tmp, 96, "/share/aop/aop-level-%02d.txt", level); 10 | f = fopen(argc>=2 ? argv[level] : tmp, "r"); 11 | if (!f) { endwin(); printf("Can't open level file.\n"); return 1; } 12 | opx=ipx=px=3, opy=ipy=py=2; op=p; p += 700000 + level*373737; 13 | -------------------------------------------------------------------------------- /rules/mandoc/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.13.3" 2 | PKG_SRCS="http://mdocml.bsd.lv/snapshots/mdocml-$PKG_VER.tar.gz" 3 | PKG_DESC="A man page formatting tool" 4 | PKG_DEPS="musl less" 5 | 6 | get_latest() { 7 | wget -q -O - "http://mdocml.bsd.lv/" | 8 | grep "current version" | 9 | cut -f 7 -d \ 10 | } 11 | 12 | build() { 13 | ./configure 14 | [ 0 -ne $? ] && return 1 15 | 16 | $MAKE CC="$CC" \ 17 | CFLAGS="$CFLAGS" 18 | } 19 | 20 | package() { 21 | install -D -m 755 mandoc "$1/bin/mandoc" 22 | install -D -m 644 mandoc.1 "$1/man/man1/mandoc.1" 23 | install -D -m 644 NEWS "$1/doc/mandoc/NEWS" 24 | install -m 644 LICENSE "$1/doc/mandoc/LICENSE" 25 | } 26 | -------------------------------------------------------------------------------- /rules/bs/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.10" 2 | PKG_SRCS="http://www.catb.org/~esr/bs/bs-$PKG_VER.tar.gz" 3 | PKG_DESC="A Battleships clone" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.catb.org/esr/bs/" | 8 | grep "Resource page for " | 9 | tail -n 1 | 10 | cut -f 5 -d \ | 11 | cut -f 1 -d \< 12 | } 13 | 14 | build() { 15 | $MAKE CC="$CC" TERMLIB="$LDFLAGS -lncurses $LIBS" 16 | } 17 | 18 | package() { 19 | install -D -m 755 bs "$1/bin/bs" 20 | install -D -m 644 bs.6 "$1/man/man6/bs.6" 21 | install -D -m 644 README "$1/doc/bs/README" 22 | install -m 644 NEWS "$1/doc/bs/NEWS" 23 | install -m 644 COPYING "$1/doc/bs/COPYING" 24 | } 25 | -------------------------------------------------------------------------------- /rules/figlet/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.2.5" 2 | PKG_SRCS="ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-$PKG_VER.tar.gz" 3 | PKG_DESC="A text banner generator" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.figlet.org/" | 8 | grep "The current version" | 9 | cut -f 8 -d \ | 10 | cut -f 1 -d \< 11 | } 12 | 13 | build() { 14 | LD="$CC" \ 15 | CFLAGS="-D__BEGIN_DECLS=\; -D__END_DECLS=\; $CFLAGS" \ 16 | $MAKE 17 | } 18 | 19 | package() { 20 | $MAKE DESTDIR="$1" install 21 | install -D -m 644 README "$1/doc/figlet/README" 22 | install -m 644 CHANGES "$1/doc/figlet/CHANGES" 23 | install -m 644 LICENSE "$1/doc/figlet/LICENSE" 24 | } 25 | -------------------------------------------------------------------------------- /rules/mutt/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.5.24" 2 | PKG_SRCS="https://bitbucket.org/mutt/mutt/downloads/mutt-$PKG_VER.tar.gz" 3 | PKG_DESC="An e-mail client" 4 | PKG_BUILD_DEPS="musl ncurses libressl" 5 | PKG_DEPS="musl ncurses libressl fetchmail msmtp" 6 | 7 | get_latest() { 8 | wget -q -O - "http://www.mutt.org/" | 9 | grep "was released" | 10 | head -n 1 | 11 | cut -f 8 -d \ 12 | } 13 | 14 | build() { 15 | SENDMAIL="/bin/msmtp" \ 16 | ./configure --prefix="" \ 17 | --datarootdir="/" \ 18 | --disable-nls \ 19 | --with-ssl 20 | [ 0 -ne $? ] && return 1 21 | 22 | $MAKE 23 | } 24 | 25 | package() { 26 | $MAKE DESTDIR="$1" install 27 | } 28 | -------------------------------------------------------------------------------- /rules/fbff/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup fbff-orig/Makefile fbff/Makefile 2 | --- fbff-orig/Makefile 2015-05-30 12:11:27.635382025 +0300 3 | +++ fbff/Makefile 2015-05-30 12:11:53.211508850 +0300 4 | @@ -1,8 +1,5 @@ 5 | -FF_PATH = /opt 6 | -CC = cc 7 | -CFLAGS = -I$(FF_PATH)/include -Wall -O2 8 | -LDFLAGS = -L$(FF_PATH)/lib -lavutil -lavformat -lavcodec -lavutil \ 9 | - -lswscale -lswresample -lz -lm -lpthread -ltinyalsa 10 | +CFLAGS += -pthread $(shell pkg-config --cflags libavutil libavformat libavcodec libswscale libswresample) 11 | +LDFLAGS += -pthread $(shell pkg-config --libs libavutil libavformat libavcodec libswscale libswresample) -ltinyalsa 12 | 13 | all: fbff 14 | .c.o: 15 | -------------------------------------------------------------------------------- /rules/glib1/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/dimkr/glib.git" 2 | PKG_DESC="A utility library" 3 | PKG_DEPS="musl" 4 | 5 | build() { 6 | CFLAGS="-D_LARGEFILE64_SOURCE $CFLAGS" \ 7 | ./configure --prefix="" \ 8 | --infodir="/share/info" \ 9 | --enable-debug="no" \ 10 | --enable-static \ 11 | --disable-shared 12 | [ 0 -ne $? ] && return 1 13 | 14 | $MAKE 15 | } 16 | 17 | package() { 18 | $MAKE DESTDIR="$1" install 19 | install -D -m 644 README "$1/doc/glib1/README" 20 | install -m 644 NEWS "$1/doc/glib1/NEWS" 21 | install -m 644 AUTHORS "$1/doc/glib1/AUTHORS" 22 | install -m 644 COPYING "$1/doc/glib1/COPYING" 23 | } 24 | -------------------------------------------------------------------------------- /rules/aop/build: -------------------------------------------------------------------------------- 1 | PKG_VER="0.6" 2 | PKG_SRCS="http://raffi.at/code/aop/aop-$PKG_VER.tar.gz" 3 | PKG_DESC="An arcade game" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://raffi.at/code/aop/" | 8 | grep -E 'aop-.+\.tar\.' | 9 | tail -n 1 | 10 | cut -f 7 -d \> | 11 | sed s~'\.tar.*'~~ | 12 | cut -f 2- -d \- 13 | } 14 | 15 | build() { 16 | $CC -o aop aop.c $CFLAGS $LDFLAGS -lncurses $LIBS 17 | } 18 | 19 | package() { 20 | install -D -m 755 aop "$1/bin/aop" 21 | for i in *.txt 22 | do 23 | install -D -m 644 "$i" "$1/share/aop/$i" 24 | done 25 | install -D -m 644 README "$1/doc/aop/README" 26 | install -m 644 COPYING "$1/doc/aop/COPYING" 27 | } 28 | -------------------------------------------------------------------------------- /rules/alsa-lib/cflags.patch: -------------------------------------------------------------------------------- 1 | diff -rup alsa-lib-1.0.28-orig/modules/mixer/simple/Makefile.in alsa-lib-1.0.28/modules/mixer/simple/Makefile.in 2 | --- alsa-lib-1.0.28-orig/modules/mixer/simple/Makefile.in 2014-08-22 19:06:37.801996387 +0300 3 | +++ alsa-lib-1.0.28/modules/mixer/simple/Makefile.in 2014-08-22 19:07:43.269995214 +0300 4 | @@ -307,7 +307,7 @@ top_build_prefix = @top_build_prefix@ 5 | top_builddir = @top_builddir@ 6 | top_srcdir = @top_srcdir@ 7 | alsaplugindir = @ALSA_PLUGIN_DIR@ 8 | -AM_CFLAGS = -g -O2 -W -Wall 9 | +AM_CFLAGS = -W -Wall 10 | AM_CPPFLAGS = -I$(top_srcdir)/include 11 | pkglib_LTLIBRARIES = smixer-sbase.la smixer-ac97.la smixer-hda.la \ 12 | $(am__append_1) 13 | -------------------------------------------------------------------------------- /rules/dvtm/build: -------------------------------------------------------------------------------- 1 | PKG_VER="0.14" 2 | PKG_SRCS="http://www.brain-dump.org/projects/dvtm/dvtm-$PKG_VER.tar.gz" 3 | PKG_DESC="A dynamic virtual terminal manager" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.brain-dump.org/projects/dvtm/" | 8 | grep "\.tar" | 9 | head -n 1 | 10 | cut -f 2 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | $MAKE 16 | } 17 | 18 | package() { 19 | # create /share/terminfo - otherwise, tic installs the compiled files to ~ 20 | install -D -d -m 755 "$1/share/terminfo" 21 | $MAKE DESTDIR="$1" install 22 | install -D -m 644 README "$1/doc/dvtm/README" 23 | install -m 644 LICENSE "$1/doc/dvtm/LICENSE" 24 | } 25 | -------------------------------------------------------------------------------- /rules/greed/build: -------------------------------------------------------------------------------- 1 | PKG_VER="4.1" 2 | PKG_SRCS="http://www.catb.org/~esr/greed/greed-$PKG_VER.tar.gz" 3 | PKG_DESC="A strategy game" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.catb.org/esr/greed/" | 8 | grep "Resource page for " | 9 | tail -n 1 | 10 | cut -f 5 -d \ | 11 | cut -f 1 -d \< 12 | } 13 | 14 | build() { 15 | $MAKE 16 | } 17 | 18 | package() { 19 | install -D -m 755 greed "$1/bin/greed" 20 | install -D -m 644 greed.6 "$1/man/man6/greed.6" 21 | install -d -D -m 755 "$1/var/games/greed" 22 | install -D -m 644 README "$1/doc/greed/README" 23 | install -m 644 NEWS "$1/doc/greed/NEWS" 24 | install -m 644 COPYING "$1/doc/greed/COPYING" 25 | } 26 | -------------------------------------------------------------------------------- /rules/vitetris/build: -------------------------------------------------------------------------------- 1 | PKG_VER="0.57" 2 | PKG_SRCS="http://www.victornils.net/tetris/vitetris-$PKG_VER.tar.gz" 3 | PKG_DESC="A Tetris clone" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.victornils.net/tetris/" | 8 | grep "Latest version" | 9 | cut -f 5 -d \ 10 | } 11 | 12 | build() { 13 | ./configure --prefix="" \ 14 | --docdir="/doc/vitetris" \ 15 | --desktopdir="" \ 16 | --pixmapdir="" 17 | [ 0 -ne $? ] && return 1 18 | 19 | $MAKE 20 | } 21 | 22 | package() { 23 | $MAKE DESTDIR="$1" install 24 | install -D -d -m 755 "$1/var/games/vitetris" 25 | install -m 644 changes.txt "$1/doc/vitetris/changes.txt" 26 | } 27 | -------------------------------------------------------------------------------- /rules/linux-libre/verbosity.patch: -------------------------------------------------------------------------------- 1 | diff -rup linux-3.14-orig/kernel/printk/printk.c linux-3.14/kernel/printk/printk.c 2 | --- linux-3.14-orig/kernel/printk/printk.c 2014-07-04 16:49:38.523724976 +0300 3 | +++ linux-3.14/kernel/printk/printk.c 2014-07-04 16:54:00.109720291 +0300 4 | @@ -59,7 +59,7 @@ 5 | 6 | /* We show everything that is MORE important than this.. */ 7 | #define MINIMUM_CONSOLE_LOGLEVEL 1 /* Minimum loglevel we let people use */ 8 | -#define DEFAULT_CONSOLE_LOGLEVEL 7 /* anything MORE serious than KERN_DEBUG */ 9 | +#define DEFAULT_CONSOLE_LOGLEVEL 3 /* anything MORE serious than KERN_ERR */ 10 | 11 | int console_printk[4] = { 12 | DEFAULT_CONSOLE_LOGLEVEL, /* console_loglevel */ 13 | -------------------------------------------------------------------------------- /rules/figlet/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup figlet-2.2.5-orig/Makefile figlet-2.2.5/Makefile 2 | --- figlet-2.2.5-orig/Makefile 2015-01-30 22:54:36.109033404 +0200 3 | +++ figlet-2.2.5/Makefile 2015-01-30 22:55:22.969034518 +0200 4 | @@ -19,17 +19,17 @@ 5 | SHELL = /bin/sh 6 | 7 | # The C compiler and linker to use 8 | -CC = gcc 9 | -CFLAGS = -g -O2 -Wall 10 | -LD = gcc 11 | -LDFLAGS = 12 | +CC ?= gcc 13 | +CFLAGS ?= -g -O2 -Wall 14 | +LD ?= gcc 15 | +LDFLAGS ?= 16 | 17 | # Feature flags: 18 | # define TLF_FONTS to use TOIlet TLF fonts 19 | XCFLAGS = -DTLF_FONTS 20 | 21 | # Where to install files 22 | -prefix = /usr/local 23 | +prefix = 24 | 25 | # Where the executables should be put 26 | BINDIR = $(prefix)/bin 27 | -------------------------------------------------------------------------------- /rules/tcpdump/executable.patch: -------------------------------------------------------------------------------- 1 | diff -rup tcpdump-4.6.1-orig/Makefile.in tcpdump-4.6.1/Makefile.in 2 | --- tcpdump-4.6.1-orig/Makefile.in 2014-08-07 22:06:34.026971006 +0300 3 | +++ tcpdump-4.6.1/Makefile.in 2014-08-07 22:07:12.515970317 +0300 4 | @@ -404,7 +404,6 @@ install: all 5 | [ -d $(DESTDIR)$(sbindir) ] || \ 6 | (mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir)) 7 | $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG) 8 | - $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG).`cat ${srcdir}/VERSION` 9 | [ -d $(DESTDIR)$(mandir)/man1 ] || \ 10 | (mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1) 11 | $(INSTALL_DATA) $(PROG).1 $(DESTDIR)$(mandir)/man1/$(PROG).1 12 | -------------------------------------------------------------------------------- /rules/ncdu/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.11" 2 | PKG_SRCS="http://dev.yorhel.nl/download/ncdu-$PKG_VER.tar.gz" 3 | PKG_DESC="A disk usage analyzer" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://dev.yorhel.nl/ncdu" | 8 | grep "download/ncdu" | 9 | head -n 1 | 10 | cut -f 2 -d \> | 11 | cut -f 1 -d \ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --mandir="/man" \ 17 | --with-ncurses 18 | [ 0 -ne $? ] && return 1 19 | 20 | $MAKE 21 | } 22 | 23 | package() { 24 | $MAKE DESTDIR="$1" install 25 | install -D -m 644 README "$1/doc/ncdu/README" 26 | install -D -m 644 ChangeLog "$1/doc/ncdu/ChangeLog" 27 | install -D -m 644 COPYING "$1/doc/ncdu/COPYING" 28 | } 29 | -------------------------------------------------------------------------------- /rules/isolinux/build: -------------------------------------------------------------------------------- 1 | PKG_VER="4.07" 2 | PKG_SRCS="https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-$PKG_VER.tar.xz" 3 | PKG_DESC="A BIOS boot loader for ISO9660 file systems" 4 | 5 | get_latest() { 6 | # we stick with 4.07, to avoid the need for extra files required in later 7 | # versions 8 | echo "$PKG_VER" 9 | } 10 | 11 | build() { 12 | : 13 | } 14 | 15 | package() { 16 | install -D -m 644 core/isolinux.bin "$1/boot/isolinux.bin" 17 | install -m 644 mbr/isohdpfx.bin "$1/boot/isohdpfx.bin" 18 | install -m 644 com32/menu/menu.c32 "$1/boot/menu.c32" 19 | install -D -m 644 README "$1/doc/isolinux/README" 20 | install -m 644 NEWS "$1/doc/isolinux/NEWS" 21 | install -m 644 COPYING "$1/doc/isolinux/COPYING" 22 | } 23 | -------------------------------------------------------------------------------- /rules/pigz/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.3.3" 2 | PKG_SRCS="http://zlib.net/pigz/pigz-$PKG_VER.tar.gz" 3 | PKG_DESC="Compression tools" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://zlib.net/pigz" | 8 | grep "source code version" | 9 | cut -f 6 -d \ 10 | } 11 | 12 | build() { 13 | $MAKE 14 | } 15 | 16 | package() { 17 | install -D -m 755 pigz "$1/bin/pigz" 18 | ln -s pigz "$1/bin/gzip" 19 | install -m 755 unpigz "$1/bin/unpigz" 20 | ln -s unpigz "$1/bin/gunzip" 21 | install -D -m 644 README "$1/doc/pigz/README" 22 | install -m 644 zopfli/README "$1/doc/pigz/README.zopfli" 23 | install -m 644 zopfli/CONTRIBUTORS "$1/doc/pigz/CONTRIBUTORS.zopfli" 24 | install -m 644 zopfli/COPYING "$1/doc/pigz/COPYING.zopfli" 25 | } 26 | -------------------------------------------------------------------------------- /rules/greed/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup greed-3.10-orig/Makefile greed-3.10/Makefile 2 | --- greed-3.10-orig/Makefile 2014-09-24 14:58:36.883980608 +0300 3 | +++ greed-3.10/Makefile 2014-09-24 14:59:33.776979589 +0300 4 | @@ -2,12 +2,12 @@ 5 | 6 | VERS=3.10 7 | 8 | -SFILE=/usr/games/lib/greed.hs 9 | +SFILE=/var/games/greed/greed.hs 10 | # Location of game executable 11 | BIN=/usr/games 12 | 13 | greed: greed.c 14 | - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DSCOREFILE=\"$(SFILE)\" -DRELEASE=\"$(VERS)\" -o greed greed.c -O3 -lcurses 15 | + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DSCOREFILE=\"$(SFILE)\" -DRELEASE=\"$(VERS)\" -o greed greed.c -lncurses 16 | 17 | greed.6: greed.xml 18 | xmlto man greed.xml 19 | Only in greed-3.10-orig/: greed.6 20 | -------------------------------------------------------------------------------- /rules/open-ath9k-htc-firmware/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/qca/open-ath9k-htc-firmware.git" 2 | PKG_DESC="Firmware for Atheros AR7010 and AR9271" 3 | 4 | build() { 5 | CC="" CFLAGS="" LDFLAGS="" make toolchain 6 | [ 0 -ne $? ] && return 1 7 | 8 | CFLAGS="" LDFLAGS="" $MAKE -C target_firmware 9 | } 10 | 11 | package() { 12 | install -D -m 755 ./target_firmware/htc_7010.fw \ 13 | "$1/lib/firmware/htc_7010.fw" 14 | install -m 755 ./target_firmware/htc_9271.fw "$1/lib/firmware/htc_9271.fw" 15 | install -D -m 644 README "$1/doc/open-ath9k-htc-firmware/README" 16 | install -m 644 LICENCE.TXT "$1/doc/open-ath9k-htc-firmware/LICENCE.TXT" 17 | install -m 644 NOTICE.TXT "$1/doc/open-ath9k-htc-firmware/NOTICE.TXT" 18 | } 19 | -------------------------------------------------------------------------------- /hooks/2man: -------------------------------------------------------------------------------- 1 | HOOK_NAME="trim and decompress man pages" 2 | 3 | run() { 4 | find . -name "man" -type d | 5 | while read i 6 | do 7 | # remove localized man pages 8 | for j in "$i"/* 9 | do 10 | case "$j" in 11 | */man[1-9]) 12 | break 13 | ;; 14 | *) 15 | rm -vrf "$j" 16 | ;; 17 | esac 18 | done 19 | 20 | # decompress all compressed man pages 21 | find "$i" -name '*.gz' -type f | 22 | while read j 23 | do 24 | echo "> Decompressing $j" 25 | gunzip -v "$j" 26 | done 27 | 28 | find "$i" -name '*.gz' -type l | 29 | while read j 30 | do 31 | target="$(readlink "$j" | sed s/\.gz$//)" 32 | rm -vf "$j" 33 | ln -sv "$target" "$(echo "$j" | sed s/\.gz$//)" 34 | done 35 | done 36 | } 37 | -------------------------------------------------------------------------------- /rules/dhcpcd/build: -------------------------------------------------------------------------------- 1 | PKG_VER="3.2.3" 2 | PKG_SRCS="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$PKG_VER.tar.bz2 http://ftp.de.debian.org/debian/pool/main/d/dhcpcd/dhcpcd_3.2.3-11.diff.gz" 3 | PKG_DESC="A DHCP client" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | # we stick with this old version - it's old, but stable and gets the job done 8 | echo "$PKG_VER" 9 | } 10 | 11 | build() { 12 | cat ../dhcpcd_3.2.3-11.diff.gz | gzip -d | patch -p 1 13 | [ 0 -ne $? ] && return 1 14 | 15 | $MAKE CC="$CC" \ 16 | CFLAGS="-Icompat $CFLAGS" \ 17 | LDFLAGS="$LDFLAGS" \ 18 | INFODIR="/run" 19 | } 20 | 21 | package() { 22 | $MAKE DESTDIR="$1" BINDIR="/bin" MANDIR="/man/man" install 23 | install -D -m 644 README "$1/doc/dhcpcd/README" 24 | } 25 | -------------------------------------------------------------------------------- /rules/mplayer/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup MPlayer-1.1.1-orig/loader/ldt_keeper.c MPlayer-1.1.1/loader/ldt_keeper.c 2 | --- MPlayer-1.1.1-orig/loader/ldt_keeper.c 2015-04-23 15:07:09.580805888 +0300 3 | +++ MPlayer-1.1.1/loader/ldt_keeper.c 2015-04-23 15:08:07.736807270 +0300 4 | @@ -47,7 +47,7 @@ 5 | #if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0)) 6 | _syscall3( int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount ); 7 | #else 8 | -int modify_ldt(int func, void *ptr, unsigned long bytecount); 9 | +#define modify_ldt(func, ptr, bytecount) syscall(__NR_modify_ldt, func, ptr, bytecount) 10 | #endif 11 | #else 12 | #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) 13 | -------------------------------------------------------------------------------- /rules/shed/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.15" 2 | PKG_SRCS="http://downloads.sourceforge.net/project/shed/shed/shed%20$PKG_VER/shed-$PKG_VER.tar.gz" 3 | PKG_DESC="A hex editor" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://shed.sourceforge.net/" | 8 | grep "The latest version is" | 9 | cut -f 6 -d \ | 10 | sed s~'\.$'~~ 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" 16 | [ 0 -ne $? ] && return 1 17 | 18 | $MAKE 19 | } 20 | 21 | package() { 22 | $MAKE DESTDIR="$1" install 23 | install -D -m 644 README "$1/doc/shed/README" 24 | install -m 644 ChangeLog "$1/doc/shed/ChangeLog" 25 | install -m 644 AUTHORS "$1/doc/shed/AUTHORS" 26 | install -m 644 COPYING "$1/doc/shed/COPYING" 27 | } 28 | -------------------------------------------------------------------------------- /rules/htop/no-desktop.patch: -------------------------------------------------------------------------------- 1 | diff -rup htop-1.0.3-orig/Makefile.in htop-1.0.3/Makefile.in 2 | --- htop-1.0.3-orig/Makefile.in 2014-10-16 21:49:47.165862266 +0300 3 | +++ htop-1.0.3/Makefile.in 2014-10-16 21:50:21.723861647 +0300 4 | @@ -128,7 +128,7 @@ am__base_list = \ 5 | man1dir = $(mandir)/man1 6 | NROFF = nroff 7 | MANS = $(dist_man_MANS) 8 | -DATA = $(applications_DATA) $(pixmap_DATA) 9 | +DATA = $(pixmap_DATA) 10 | ETAGS = etags 11 | CTAGS = ctags 12 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 13 | @@ -1408,7 +1408,7 @@ info: info-am 14 | 15 | info-am: 16 | 17 | -install-data-am: install-applicationsDATA install-man \ 18 | +install-data-am: install-man \ 19 | install-pixmapDATA 20 | 21 | install-dvi: install-dvi-am 22 | -------------------------------------------------------------------------------- /rules/iptables/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.4.21" 2 | PKG_SRCS="http://www.netfilter.org/projects/iptables/files/iptables-$PKG_VER.tar.bz2" 3 | PKG_DESC="Packet filtering tools" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.netfilter.org/projects/iptables/downloads.html" | 8 | grep -E "iptables .+ released" | 9 | head -n 1 | 10 | awk '{print $4}' 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --sbindir="/bin" \ 16 | --mandir="/man" \ 17 | --enable-static \ 18 | --disable-shared \ 19 | --disable-devel 20 | [ 0 -ne $? ] && return 1 21 | 22 | $MAKE 23 | } 24 | 25 | package() { 26 | $MAKE DESTDIR="$1" install 27 | install -D -m 644 COPYING "$1/doc/iptables/COPYING" 28 | } 29 | -------------------------------------------------------------------------------- /rules/calcurse/build: -------------------------------------------------------------------------------- 1 | PKG_VER="4.0.0" 2 | PKG_SRCS="http://calcurse.org/files/calcurse-$PKG_VER.tar.gz" 3 | PKG_DESC="A personal organizer" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.calcurse.org/" | 8 | grep \(source\) | 9 | cut -f 7 -d \ 10 | } 11 | 12 | build() { 13 | ./configure --prefix="" \ 14 | --datarootdir="/" \ 15 | --disable-nls \ 16 | --disable-memory-debug 17 | [ 0 -ne $? ] && return 1 18 | 19 | $MAKE 20 | } 21 | 22 | package() { 23 | $MAKE DESTDIR="$1" install 24 | install -D -m 644 README "$1/doc/calcurse/README" 25 | install -m 644 NEWS "$1/doc/calcurse/NEWS" 26 | install -m 644 AUTHORS "$1/doc/calcurse/AUTHORS" 27 | install -m 644 COPYING "$1/doc/calcurse/COPYING" 28 | } 29 | -------------------------------------------------------------------------------- /rules/bwm-ng/build: -------------------------------------------------------------------------------- 1 | PKG_VER="0.6.1" 2 | PKG_SRCS="http://www.gropp.org/bwm-ng/bwm-ng-$PKG_VER.tar.gz" 3 | PKG_DESC="A network monitor" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.gropp.org/?id=projects&sub=bwm-ng" | 8 | grep "current version:" | 9 | cut -f 2 -d \> | 10 | cut -f 3 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --mandir="/man" 17 | [ 0 -ne $? ] && return 1 18 | 19 | $MAKE 20 | } 21 | 22 | package() { 23 | $MAKE DESTDIR="$1" install 24 | install -D -m 644 README "$1/doc/bwm-ng/README" 25 | install -m 644 NEWS "$1/doc/bwm-ng/NEWS" 26 | install -m 644 AUTHORS "$1/doc/bwm-ng/AUTHORS" 27 | install -m 644 THANKS "$1/doc/bwm-ng/THANKS" 28 | install -m 644 COPYING "$1/doc/bwm-ng/COPYING" 29 | } 30 | -------------------------------------------------------------------------------- /rules/ghostscript/no-examples.patch: -------------------------------------------------------------------------------- 1 | diff -rup ghostscript-9.15-orig/base/unixinst.mak ghostscript-9.15/base/unixinst.mak 2 | --- ghostscript-9.15-orig/base/unixinst.mak 2014-10-16 20:42:16.829934800 +0300 3 | +++ ghostscript-9.15/base/unixinst.mak 2014-10-16 20:43:08.327933878 +0300 4 | @@ -55,7 +55,7 @@ PSDOCDIR=$(PSLIBDIR)/../doc 5 | PSEXDIR=$(PSLIBDIR)/../examples 6 | PSMANDIR=$(PSLIBDIR)/../man 7 | 8 | -install-data: install-libdata install-resdata$(COMPILE_INITS) install-iccdata$(COMPILE_INITS) install-doc install-man install-examples 9 | +install-data: install-libdata install-resdata$(COMPILE_INITS) install-iccdata$(COMPILE_INITS) install-doc install-man 10 | 11 | # There's no point in providing a complete dependency list: we include 12 | # one file from each subdirectory just as a sanity check. 13 | -------------------------------------------------------------------------------- /rules/iw/build: -------------------------------------------------------------------------------- 1 | PKG_VER="4.3" 2 | PKG_SRCS="https://www.kernel.org/pub/software/network/iw/iw-$PKG_VER.tar.xz" 3 | PKG_DESC="A wireless network interface configuration tool" 4 | PKG_DEPS="musl libnl-tiny" 5 | 6 | get_latest() { 7 | wget -q -O - "https://www.kernel.org/pub/software/network/iw/" | 8 | grep "\.tar" | 9 | tail -n 1 | 10 | cut -f 3 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | # iw uses kernel-style sections that contain structs, so it breaks when 16 | # built with -gc-sections 17 | CFLAGS="-D_GNU_SOURCE $CFLAGS" \ 18 | LDFLAGS="$(echo $LDFLAGS | sed s~'-Wl,-gc-sections'~~)" \ 19 | $MAKE 20 | } 21 | 22 | package() { 23 | $MAKE DESTDIR="$1" SBINDIR="/bin" MANDIR="/man" install 24 | install -D -m 644 README "$1/doc/iw/README" 25 | install -m 644 COPYING "$1/doc/iw/COPYING" 26 | } 27 | -------------------------------------------------------------------------------- /rules/less/build: -------------------------------------------------------------------------------- 1 | PKG_VER="481" 2 | PKG_SRCS="http://www.greenwoodsoftware.com/less/less-$PKG_VER.tar.gz" 3 | PKG_DESC="A file viewer" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.greenwoodsoftware.com/less/" | 8 | grep "The current released version is" | 9 | cut -f 2 -d \- | 10 | sed s~'\.$'~~ 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --with-regex="re_comp" \ 17 | --with-editor="/bin/vi" 18 | [ 0 -ne $? ] && return 1 19 | 20 | $MAKE 21 | } 22 | 23 | package() { 24 | $MAKE DESTDIR="$1" install 25 | install -D -m 644 README "$1/doc/less/README" 26 | install -m 644 NEWS "$1/doc/less/NEWS" 27 | install -m 644 LICENSE "$1/doc/less/LICENSE" 28 | install -m 644 COPYING "$1/doc/less/COPYING" 29 | } 30 | -------------------------------------------------------------------------------- /rules/libpcap/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.7.4" 2 | PKG_SRCS="http://www.tcpdump.org/release/libpcap-$PKG_VER.tar.gz" 3 | PKG_DESC="A packet capture library" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.tcpdump.org/#latest-release" | 8 | grep "release/libpcap" | 9 | head -n 1 | 10 | cut -f 3 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --mandir="/man" \ 17 | --disable-shared \ 18 | --enable-static 19 | [ 0 -ne $? ] && return 1 20 | 21 | $MAKE 22 | } 23 | 24 | package() { 25 | $MAKE DESTDIR="$1" install 26 | install -D -m 644 README "$1/doc/libpcap/README" 27 | install -m 644 CHANGES "$1/doc/libpcap/CHANGES" 28 | install -m 644 CREDITS "$1/doc/libpcap/CREDITS" 29 | install -m 644 LICENSE "$1/doc/libpcap/LICENSE" 30 | } 31 | -------------------------------------------------------------------------------- /rules/libpng/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.6.20" 2 | PKG_SRCS="ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-$PKG_VER.tar.xz" 3 | PKG_DESC="A library for handling PNG images" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.libpng.org/pub/png/libpng.html" | 8 | grep "The current public release," | 9 | cut -f 8 -d \ | 10 | cut -f 1 -d \< 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --enable-static \ 17 | --disable-shared \ 18 | --without-binconfigs 19 | [ 0 -ne $? ] && return 1 20 | 21 | $MAKE 22 | } 23 | 24 | package() { 25 | $MAKE DESTDIR="$1" install 26 | install -D -m 644 README "$1/doc/libpng/README" 27 | install -m 644 CHANGES "$1/doc/libpng/CHANGES" 28 | install -m 644 LICENSE "$1/doc/libpng/LICENSE" 29 | } 30 | -------------------------------------------------------------------------------- /rules/fbv/libpng.patch: -------------------------------------------------------------------------------- 1 | diff -rup fbv-1.0b-orig/png.c fbv-1.0b/png.c 2 | --- fbv-1.0b-orig/png.c 2014-11-07 13:50:06.901976613 +0200 3 | +++ fbv-1.0b/png.c 2014-11-07 13:50:27.911976237 +0200 4 | @@ -69,7 +69,7 @@ int fh_png_load(char *name,unsigned char 5 | fclose(fh); return(FH_ERROR_FORMAT); 6 | } 7 | rp=0; 8 | - if (setjmp(png_ptr->jmpbuf)) 9 | + if (setjmp(png_jmpbuf(png_ptr))) 10 | { 11 | png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); 12 | if(rp) free(rp); 13 | @@ -161,7 +161,7 @@ int fh_png_getsize(char *name,int *x,int 14 | fclose(fh); return(FH_ERROR_FORMAT); 15 | } 16 | rp=0; 17 | - if (setjmp(png_ptr->jmpbuf)) 18 | + if (setjmp(png_jmpbuf(png_ptr))) 19 | { 20 | png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); 21 | if(rp) free(rp); 22 | -------------------------------------------------------------------------------- /rules/libjpeg-turbo/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.4.2" 2 | PKG_SRCS="http://sourceforge.net/projects/libjpeg-turbo/files/$PKG_VER/libjpeg-turbo-$PKG_VER.tar.gz" 3 | PKG_DESC="A library for handling JPEG images" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://sourceforge.net/projects/libjpeg-turbo/files/" | 8 | grep "Click to enter" | 9 | grep -v "beta" | 10 | head -n 1 | 11 | awk '{print $4}' | 12 | sed s~\"\$~~ 13 | } 14 | 15 | build() { 16 | ./configure --prefix="" \ 17 | --datadir="/" \ 18 | --mandir="/man" \ 19 | --enable-static \ 20 | --disable-shared \ 21 | --without-jpeg7 \ 22 | --without-jpeg8 \ 23 | --without-turbojpeg 24 | [ 0 -ne $? ] && return 1 25 | 26 | $MAKE 27 | } 28 | 29 | package() { 30 | $MAKE DESTDIR="$1" install 31 | } 32 | -------------------------------------------------------------------------------- /rules/linux-libre-headers/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.6.32.69" 2 | PKG_SRCS="http://linux-libre.fsfla.org/pub/linux-libre/releases/$PKG_VER-gnu1/linux-libre-$PKG_VER-gnu1.tar.xz" 3 | PKG_DESC="Kernel API headers" 4 | 5 | get_latest() { 6 | wget -q -O - "http://www.kernel.org/" | 7 | grep "v2.6.32/" | 8 | head -n 1 | 9 | cut -f 2 -d \- | 10 | sed s~'\.tar.*'~~ 11 | } 12 | 13 | build() { 14 | $MAKE clean 15 | $MAKE mrproper 16 | } 17 | 18 | package() { 19 | $MAKE INSTALL_HDR_PATH="$1" headers_install 20 | find "$1/include" -name .install -or -name ..install.cmd | xargs rm -f 21 | 22 | install -D -m 644 README "$1/doc/linux-libre-headers/README" 23 | install -m 644 COPYING "$1/doc/linux-libre-headers/COPYING" 24 | install -m 644 CREDITS "$1/doc/linux-libre-headers/CREDITS" 25 | install -m 644 MAINTAINERS "$1/doc/linux-libre-headers/MAINTAINERS" 26 | } 27 | -------------------------------------------------------------------------------- /rules/snownews/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.5.12" 2 | PKG_SRCS="https://kiza.eu/media/software/snownews/snownews-$PKG_VER.tar.gz" 3 | PKG_DESC="A news reader" 4 | PKG_DEPS="musl zlib ncurses libressl libxml2" 5 | 6 | get_latest() { 7 | wget -q -O - "https://kiza.eu/software/snownews/" | 8 | grep "Snownews " | 9 | cut -f 3 -d \ 10 | } 11 | 12 | build() { 13 | ./configure --prefix="" \ 14 | --disable-nls 15 | [ 0 -ne $? ] && return 1 16 | 17 | EXTRA_CFLAGS="$CFLAGS" \ 18 | EXTRA_LDFLAGS="$LDFLAGS" \ 19 | $MAKE 20 | } 21 | 22 | package() { 23 | $MAKE DESTDIR="$1" install 24 | install -D -m 644 README "$1/doc/snownews/README" 25 | install -m 644 Changelog "$1/doc/snownews/Changelog" 26 | install -m 644 AUTHOR "$1/doc/snownews/AUTHOR" 27 | install -m 644 CREDITS "$1/doc/snownews/CREDITS" 28 | install -m 644 COPYING "$1/doc/snownews/COPYING" 29 | } 30 | -------------------------------------------------------------------------------- /scripts/verify_pkg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # make sure the package does not contain /usr or /sbin 4 | [ -d "$2/usr" ] && exit 1 5 | [ -d "$2/sbin" ] && exit 1 6 | 7 | # make sure man pages go only to /man 8 | case "$(find "$2" -type d -name "man")" in 9 | ""|"$2/man") 10 | ;; 11 | 12 | *) 13 | exit 1 14 | ;; 15 | esac 16 | 17 | # make sure the package documentation goes to either /doc/$1 or /share/$1 18 | find "$2" -type d -name "doc" | while read i 19 | do 20 | case "$i" in 21 | "$2/doc"|"$2/share/$1"/*) 22 | ;; 23 | 24 | *) 25 | exit 1 26 | ;; 27 | esac 28 | done 29 | [ 0 -ne $? ] && exit 1 30 | 31 | # make sure the package has only one directory under /doc 32 | if [ -d "$2/doc" ] 33 | then 34 | cd rules 35 | for i in * 36 | do 37 | [ "$1" = "$i" ] && continue 38 | [ -d "$2/doc/$i" ] && exit 1 39 | done 40 | fi 41 | 42 | exit 0 43 | -------------------------------------------------------------------------------- /rules/libressl/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.2.5" 2 | PKG_SRCS="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$PKG_VER.tar.gz" 3 | PKG_DESC="An encryption and privacy library" 4 | PKG_BUILD_DEPS="musl zlib" 5 | PKG_DEPS="musl zlib ca-certificates" 6 | 7 | get_latest() { 8 | wget -q -O - "http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/" | 9 | grep "\.tar" | 10 | tail -n 1 | 11 | cut -f 2 -d \- | 12 | sed s~'\.tar.*'~~ 13 | } 14 | 15 | build() { 16 | ./configure --prefix="" \ 17 | --datarootdir="/" \ 18 | --disable-shared \ 19 | --enable-static 20 | [ 0 -ne $? ] && return 1 21 | 22 | $MAKE 23 | } 24 | 25 | package() { 26 | $MAKE DESTDIR="$1" install 27 | install -D -m 644 README "$1/doc/libressl/README" 28 | install -m 644 ChangeLog "$1/doc/libressl/ChangeLog" 29 | install -m 644 COPYING "$1/doc/libressl/COPYING" 30 | } 31 | -------------------------------------------------------------------------------- /rules/libseccomp/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.2.3" 2 | PKG_SRCS="https://github.com/seccomp/libseccomp/releases/download/v$PKG_VER/libseccomp-$PKG_VER.tar.gz" 3 | PKG_DESC="A system call filtering library" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "https://github.com/seccomp/libseccomp/releases" | 8 | grep "Version " | 9 | head -n 1 | 10 | cut -f 2 -d \ 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --enable-static \ 17 | --disable-shared 18 | [ 0 -ne $? ] && return 1 19 | 20 | $MAKE 21 | } 22 | 23 | package() { 24 | $MAKE DESTDIR="$1" install 25 | install -D -m 644 README "$1/doc/libseccomp/README" 26 | install -m 644 CHANGELOG "$1/doc/libseccomp/CHANGELOG" 27 | install -m 644 CREDITS "$1/doc/libseccomp/CREDITS" 28 | install -m 644 LICENSE "$1/doc/libseccomp/LICENSE" 29 | } 30 | -------------------------------------------------------------------------------- /rules/libxml2/no-examples.patch: -------------------------------------------------------------------------------- 1 | diff -rup libxml2-2.9.2-orig/Makefile.in libxml2-2.9.2/Makefile.in 2 | --- libxml2-2.9.2-orig/Makefile.in 2014-10-16 20:12:00.052967335 +0300 3 | +++ libxml2-2.9.2/Makefile.in 2014-10-16 20:13:35.311965629 +0300 4 | @@ -2874,11 +2874,6 @@ xml2Conf.sh: xml2Conf.sh.in Makefile 5 | install-data-local: 6 | $(MKDIR_P) $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) 7 | -$(INSTALL) -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) 8 | - $(MKDIR_P) $(DESTDIR)$(EXAMPLES_DIR) 9 | - -$(INSTALL) -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR) 10 | - -$(INSTALL) -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR) 11 | - -$(INSTALL) -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR) 12 | - -$(INSTALL) -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR) 13 | 14 | uninstall-local: 15 | rm -f $(DESTDIR)$(EXAMPLES_DIR)/testXPath.c 16 | -------------------------------------------------------------------------------- /rules/patch/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.7.5" 2 | PKG_SRCS="http://ftp.gnu.org/gnu/patch/patch-$PKG_VER.tar.xz" 3 | PKG_DESC="A file patching tool" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "ftp://ftp.gnu.org/gnu/patch/" | 8 | grep "\.tar" | 9 | cut -f 2 -d \> | 10 | cut -f 2 -d \- | 11 | sed s~'\.tar.*'~~ | 12 | sort -V | 13 | tail -n 1 14 | } 15 | 16 | build() { 17 | ./configure --prefix="" \ 18 | --mandir="/man" 19 | [ 0 -ne $? ] && return 1 20 | 21 | $MAKE 22 | } 23 | 24 | package() { 25 | $MAKE DESTDIR="$1" install 26 | install -D -m 644 README "$1/doc/patch/README" 27 | install -m 644 NEWS "$1/doc/patch/NEWS" 28 | install -m 644 ChangeLog "$1/doc/patch/ChangeLog" 29 | install -m 644 ChangeLog-2011 "$1/doc/patch/ChangeLog-2011" 30 | install -m 644 AUTHORS "$1/doc/patch/AUTHORS" 31 | install -m 644 COPYING "$1/doc/patch/COPYING" 32 | } 33 | -------------------------------------------------------------------------------- /rules/jimtcl/build: -------------------------------------------------------------------------------- 1 | PKG_SRCS="https://github.com/msteveb/jimtcl.git" 2 | PKG_DESC="An embeddable Tcl interpreter" 3 | PKG_DEPS="musl" 4 | 5 | build() { 6 | ./configure --prefix="" \ 7 | --mandir="/man" \ 8 | --ipv6 \ 9 | --disable-jim-regexp \ 10 | --with-ext="aio eventloop array exec file glob package posix regexp stdlib tclcompat" 11 | [ 0 -ne $? ] && return 1 12 | 13 | $MAKE 14 | } 15 | 16 | package() { 17 | install -D -m 755 jimsh "$1/bin/jimsh" 18 | install -D -m 755 libjim.a "$1/lib/libjim.a" 19 | install -D -m 644 jim.h "$1/include/jim.h" 20 | install -m 644 jim-config.h "$1/include/jim-config.h" 21 | install -D -m 644 jim_tcl.txt "$1/doc/jimtcl/jim_tcl.txt" 22 | install -m 644 README "$1/doc/jimtcl/README" 23 | install -m 644 AUTHORS "$1/doc/jimtcl/AUTHORS" 24 | install -m 644 LICENSE "$1/doc/jimtcl/LICENSE" 25 | } 26 | -------------------------------------------------------------------------------- /rules/bc/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.06" 2 | PKG_SRCS="http://ftp.gnu.org/pub/gnu/bc/bc-$PKG_VER.tar.gz" 3 | PKG_DESC="A numeric processing language" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://ftp.gnu.org/gnu/bc/" | 8 | grep -E 'bc-.+\.tar\.' | 9 | tail -n 1 | 10 | cut -f 7 -d \> | 11 | sed s~'\.tar.*'~~g | 12 | cut -f 2- -d \- 13 | } 14 | 15 | build() { 16 | ./configure --prefix="" \ 17 | --infodir="/share/info" \ 18 | --mandir="/man" 19 | [ 0 -ne $? ] && return 1 20 | 21 | $MAKE 22 | } 23 | 24 | package() { 25 | $MAKE DESTDIR="$1" install 26 | install -D -m 644 README "$1/doc/bc/README" 27 | install -m 644 ChangeLog "$1/doc/bc/ChangeLog" 28 | install -m 644 NEWS "$1/doc/bc/NEWS" 29 | install -m 644 AUTHORS "$1/doc/bc/AUTHORS" 30 | install -m 644 COPYING.LIB "$1/doc/bc/COPYING.LIB" 31 | install -m 644 COPYING "$1/doc/bc/COPYING" 32 | } 33 | -------------------------------------------------------------------------------- /rules/giflib/build: -------------------------------------------------------------------------------- 1 | PKG_VER="5.1.1" 2 | PKG_SRCS="http://downloads.sourceforge.net/project/giflib/giflib-$PKG_VER.tar.bz2" 3 | PKG_DESC="A library for handling of GIF images" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://sourceforge.net/projects/giflib/files/?source=navbar" | 8 | grep "Click to download" | 9 | head -n 1 | 10 | cut -f 2 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --enable-static \ 17 | --disable-shared 18 | [ 0 -ne $? ] && return 1 19 | 20 | $MAKE 21 | } 22 | 23 | package() { 24 | $MAKE DESTDIR="$1" install 25 | install -D -m 644 README "$1/doc/giflib/README" 26 | install -m 644 NEWS "$1/doc/giflib/NEWS" 27 | install -m 644 ChangeLog "$1/doc/giflib/ChangeLog" 28 | install -m 644 AUTHORS "$1/doc/giflib/AUTHORS" 29 | install -m 644 COPYING "$1/doc/giflib/COPYING" 30 | } 31 | -------------------------------------------------------------------------------- /rules/strace/build: -------------------------------------------------------------------------------- 1 | PKG_VER="4.10" 2 | PKG_SRCS="http://sourceforge.net/projects/strace/files/strace/$PKG_VER/strace-$PKG_VER.tar.xz" 3 | PKG_DESC="A system call tracer" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://sourceforge.net/projects/strace/files/strace/" | 8 | grep "Click to enter" | 9 | head -n 1 | 10 | awk '{print $4}' | 11 | sed s~'"$'~~ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --mandir="/man" 17 | [ 0 -ne $? ] && return 1 18 | 19 | $MAKE 20 | } 21 | 22 | package() { 23 | $MAKE DESTDIR="$1" install 24 | install -D -m 644 README "$1/doc/strace/README" 25 | install -m 644 NEWS "$1/doc/strace/NEWS" 26 | install -m 644 ChangeLog "$1/doc/strace/ChangeLog" 27 | install -m 644 AUTHORS "$1/doc/strace/AUTHORS" 28 | install -m 644 CREDITS "$1/doc/strace/CREDITS" 29 | install -m 644 COPYING "$1/doc/strace/COPYING" 30 | } 31 | -------------------------------------------------------------------------------- /rules/atop/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.2-3" 2 | PKG_SRCS="http://www.atoptool.nl/download/atop-$PKG_VER.tar.gz" 3 | PKG_DESC="A performance monitor" 4 | PKG_DEPS="musl zlib ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.atoptool.nl/downloadatop.php" | 8 | grep -E "atopreleases.+tar\.gz" | 9 | head -n 1 | 10 | cut -f 2- -d \> | 11 | cut -f 2- -d \- | 12 | sed s~'\.tar.*'~~ 13 | } 14 | 15 | build() { 16 | LDFLAGS="$LDFLAGS $LIBS" $MAKE 17 | } 18 | 19 | package() { 20 | $MAKE DESTDIR="$1" \ 21 | BINPATH="/bin" \ 22 | SBINPATH="/bin" \ 23 | MAN1PATH="/man/man1" \ 24 | MAN5PATH="/man/man5" \ 25 | MAN8PATH="/man/man8" \ 26 | genericinstall 27 | install -D -m 644 README "$1/doc/atop/README" 28 | install -m 644 ChangeLog "$1/doc/atop/ChangeLog" 29 | install -m 644 AUTHOR "$1/doc/atop/AUTHOR" 30 | install -m 644 COPYING "$1/doc/atop/COPYING" 31 | } 32 | -------------------------------------------------------------------------------- /rules/htop/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.0.3" 2 | PKG_SRCS="http://hisham.hm/htop/releases/$PKG_VER/htop-$PKG_VER.tar.gz" 3 | PKG_DESC="A process viewer" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://hisham.hm/htop/index.php?page=downloads" | 8 | grep "The latest version is" | 9 | cut -f 2 -d \> | 10 | cut -f 1 -d \< 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --disable-openvz \ 17 | --disable-vserver \ 18 | --disable-ancient-vserver \ 19 | --disable-unicode 20 | [ 0 -ne $? ] && return 1 21 | 22 | $MAKE 23 | } 24 | 25 | package() { 26 | $MAKE DESTDIR="$1" install 27 | install -D -m 644 README "$1/doc/htop/README" 28 | install -m 644 NEWS "$1/doc/htop/NEWS" 29 | install -m 644 AUTHORS "$1/doc/htop/AUTHORS" 30 | install -m 644 COPYING "$1/doc/htop/COPYING" 31 | } 32 | -------------------------------------------------------------------------------- /rules/wget/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.17.1" 2 | PKG_SRCS="http://ftp.gnu.org/gnu/wget/wget-$PKG_VER.tar.xz" 3 | PKG_DESC="A HTTP and FTP client" 4 | PKG_DEPS="musl libressl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://ftp.gnu.org/gnu/wget/" | 8 | grep \.tar | 9 | cut -f 3 -d \- | 10 | sed s~'\.tar.*'~~ | 11 | sort -V | 12 | tail -n 1 13 | } 14 | 15 | build() { 16 | autoreconf 17 | [ 0 -ne $? ] && return 1 18 | 19 | ./configure --prefix="" \ 20 | --mandir="/man" \ 21 | --disable-debug \ 22 | --disable-nls \ 23 | --with-ssl="openssl" 24 | [ 0 -ne $? ] && return 1 25 | 26 | $MAKE 27 | } 28 | 29 | package() { 30 | $MAKE DESTDIR="$1" install 31 | install -D -m 644 README "$1/doc/wget/README" 32 | install -m 644 NEWS "$1/doc/wget/NEWS" 33 | install -m 644 AUTHORS "$1/doc/wget/AUTHORS" 34 | install -m 644 COPYING "$1/doc/wget/COPYING" 35 | } 36 | -------------------------------------------------------------------------------- /rules/file/build: -------------------------------------------------------------------------------- 1 | PKG_VER="5.25" 2 | PKG_SRCS="ftp://ftp.astron.com/pub/file/file-$PKG_VER.tar.gz" 3 | PKG_DESC="A file type guessing tool" 4 | PKG_DEPS="musl zlib" 5 | 6 | get_latest() { 7 | wget -q -O - "ftp://ftp.astron.com/pub/file/" | 8 | grep "\.tar" | 9 | tail -n 1 | 10 | cut -f 3 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | aclocal 16 | [ 0 -ne $? ] && return 1 17 | 18 | autoconf 19 | [ 0 -ne $? ] && return 1 20 | 21 | ./configure --prefix="" \ 22 | --mandir="/man" \ 23 | --enable-static \ 24 | --disable-shared 25 | [ 0 -ne $? ] && return 1 26 | 27 | $MAKE 28 | } 29 | 30 | package() { 31 | $MAKE DESTDIR="$1" install 32 | install -D -m 644 README "$1/doc/file/README" 33 | install -m 644 ChangeLog "$1/doc/file/ChangeLog" 34 | install -m 644 AUTHORS "$1/doc/file/AUTHORS" 35 | install -m 644 COPYING "$1/doc/file/COPYING" 36 | } 37 | -------------------------------------------------------------------------------- /rules/libffi/build: -------------------------------------------------------------------------------- 1 | PKG_VER="3.2.1" 2 | PKG_SRCS="ftp://sourceware.org/pub/libffi/libffi-$PKG_VER.tar.gz" 3 | PKG_DESC="A calling conventions support library" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "https://www.sourceware.org/libffi/" | 8 | grep "was released" | 9 | cut -f 2 -d \- | 10 | cut -f 1 -d \< 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --enable-static \ 17 | --disable-shared 18 | [ 0 -ne $? ] && return 1 19 | 20 | $MAKE 21 | } 22 | 23 | package() { 24 | $MAKE DESTDIR="$1" install 25 | install -D -m 644 README "$1/doc/libffi/README" 26 | install -m 644 ChangeLog "$1/doc/libffi/ChangeLog" 27 | install -m 644 ChangeLog.libffi "$1/doc/libffi/ChangeLog.libffi" 28 | install -m 644 ChangeLog.libffi-3.1 "$1/doc/libffi/ChangeLog.libffi-3.1" 29 | install -m 644 LICENSE "$1/doc/libffi/LICENSE" 30 | } 31 | -------------------------------------------------------------------------------- /rules/libarchive/build: -------------------------------------------------------------------------------- 1 | PKG_VER="3.1.2" 2 | PKG_SRCS="http://www.libarchive.org/downloads/libarchive-$PKG_VER.tar.gz" 3 | PKG_DESC="An archive handling library" 4 | PKG_DEPS="musl zlib xz lbzip2" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.libarchive.org/" | 8 | grep "Stable release:" | 9 | cut -f 2 -d \- | 10 | sed s~'\.tar.*'~~ 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --enable-static \ 17 | --disable-shared \ 18 | --without-openssl \ 19 | --without-xml2 20 | [ 0 -ne $? ] && return 1 21 | 22 | $MAKE 23 | } 24 | 25 | package() { 26 | $MAKE DESTDIR="$1" install 27 | ln -s bsdtar "$1/bin/tar" 28 | ln -s bsdcpio "$1/bin/cpio" 29 | install -D -m 644 README "$1/doc/libarchive/README" 30 | install -m 644 NEWS "$1/doc/libarchive/NEWS" 31 | install -m 644 COPYING "$1/doc/libarchive/COPYING" 32 | } 33 | -------------------------------------------------------------------------------- /rules/moon-buggy/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.0" 2 | PKG_SRCS="http://m.seehuhn.de/programs/moon-buggy-$PKG_VER.tar.gz" 3 | PKG_DESC="A moon-patrol clone" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.seehuhn.de/pages/moon-buggy" | 8 | grep "stable version" | 9 | head -n 1 | 10 | cut -f 3 -d \ | 11 | sed s~',$'~~ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --infodir="/share/info" \ 17 | --mandir="/man" \ 18 | --sharedstatedir="/var/games" 19 | [ 0 -ne $? ] && return 1 20 | 21 | $MAKE 22 | } 23 | 24 | package() { 25 | $MAKE DESTDIR="$1" install 26 | install -D -m 644 README "$1/doc/moon-buggy/README" 27 | install -m 644 ChangeLog "$1/doc/moon-buggy/ChangeLog" 28 | install -m 644 AUTHORS "$1/doc/moon-buggy/AUTHORS" 29 | install -m 644 THANKS "$1/doc/moon-buggy/THANKS" 30 | install -m 644 COPYING "$1/doc/moon-buggy/COPYING" 31 | } 32 | -------------------------------------------------------------------------------- /rules/tcpdump/build: -------------------------------------------------------------------------------- 1 | PKG_VER="4.7.4" 2 | PKG_SRCS="http://www.tcpdump.org/release/tcpdump-$PKG_VER.tar.gz" 3 | PKG_DESC="A packet capture and analysis tool" 4 | PKG_DEPS="musl libressl libpcap" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.tcpdump.org/" | 8 | grep "release/tcpdump" | 9 | head -n 1 | 10 | cut -f 2 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --sbindir="/bin" \ 17 | --mandir="/man" \ 18 | --enable-ipv6 \ 19 | --with-system-libpcap \ 20 | --with-crypto 21 | [ 0 -ne $? ] && return 1 22 | 23 | $MAKE 24 | } 25 | 26 | package() { 27 | $MAKE DESTDIR="$1" install 28 | install -D -m 644 README.md "$1/doc/tcpdump/README.md" 29 | install -m 644 CHANGES "$1/doc/tcpdump/CHANGES" 30 | install -m 644 CREDITS "$1/doc/tcpdump/CREDITS" 31 | install -m 644 LICENSE "$1/doc/tcpdump/LICENSE" 32 | } 33 | -------------------------------------------------------------------------------- /rules/xz/build: -------------------------------------------------------------------------------- 1 | PKG_VER="5.2.2" 2 | PKG_SRCS="http://tukaani.org/xz/xz-$PKG_VER.tar.xz" 3 | PKG_DESC="Compression tools" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://tukaani.org/xz/" | 8 | grep "was released on" | 9 | head -n 1 | 10 | cut -f 1 -d \ 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --includedir="/include" \ 16 | --datarootdir="/" \ 17 | --enable-static \ 18 | --disable-shared \ 19 | --disable-xzdec \ 20 | --disable-lzmadec \ 21 | --disable-scripts \ 22 | --disable-nls 23 | [ 0 -ne $? ] && return 1 24 | 25 | $MAKE 26 | } 27 | 28 | package() { 29 | $MAKE DESTDIR="$1" install 30 | install -m 644 ChangeLog "$1/doc/xz/ChangeLog" 31 | install -m 644 COPYING.GPLv3 "$1/doc/xz/COPYING.GPLv3" 32 | install -m 644 COPYING.LGPLv2.1 "$1/doc/xz/COPYING.LGPLv2.1" 33 | } 34 | -------------------------------------------------------------------------------- /rules/alsa-lib/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.0.29" 2 | PKG_SRCS="ftp://ftp.alsa-project.org/pub/lib/alsa-lib-$PKG_VER.tar.bz2" 3 | PKG_DESC="Core audio library" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.alsa-project.org/main/index.php/Main_Page_News" | 8 | grep -E 'alsa .+ release' | 9 | cut -f 3 -d \ | 10 | head -n 1 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --enable-static \ 17 | --disable-shared \ 18 | --disable-old-symbols \ 19 | --without-debug \ 20 | --with-pcm-plugins="all" \ 21 | --with-ctl-plugins="" \ 22 | --with-max-cards=2 23 | [ 0 -ne $? ] && return 1 24 | 25 | $MAKE 26 | } 27 | 28 | package() { 29 | $MAKE DESTDIR="$1" install 30 | install -D -m 644 ChangeLog "$1/doc/alsa-lib/ChangeLog" 31 | install -m 644 COPYING "$1/doc/alsa-lib/COPYING" 32 | } 33 | -------------------------------------------------------------------------------- /rules/glib/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.46.2" 2 | PKG_SRCS="http://ftp.acc.umu.se/pub/GNOME/sources/glib/2.46/glib-$PKG_VER.tar.xz" 3 | PKG_DESC="A utility library" 4 | PKG_DEPS="musl libffi" 5 | 6 | get_latest() { 7 | wget -q -O - "https://developer.gnome.org/glib/" | 8 | grep "" | 9 | head -n 1 | 10 | cut -f 4 -d \> | 11 | cut -f 1 -d \< 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --mandir="/man" \ 17 | --enable-debug="no" \ 18 | --enable-static \ 19 | --disable-shared \ 20 | --with-libiconv="no" 21 | [ 0 -ne $? ] && return 1 22 | 23 | $MAKE 24 | } 25 | 26 | package() { 27 | $MAKE DESTDIR="$1" install 28 | install -D -m 644 README "$1/doc/glib/README" 29 | install -m 644 NEWS "$1/doc/glib/NEWS" 30 | install -m 644 ChangeLog "$1/doc/glib/ChangeLog" 31 | install -m 644 AUTHORS "$1/doc/glib/AUTHORS" 32 | install -m 644 COPYING "$1/doc/glib/COPYING" 33 | } 34 | -------------------------------------------------------------------------------- /rules/curl/build: -------------------------------------------------------------------------------- 1 | PKG_VER="7.46.0" 2 | PKG_SRCS="http://curl.haxx.se/download/curl-$PKG_VER.tar.bz2" 3 | PKG_DESC="A file transfer library" 4 | PKG_DEPS="musl zlib libressl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://curl.haxx.se/download.html" | 8 | grep "Released" | 9 | cut -f 3 -d \ | 10 | cut -f 1 -d \< 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --enable-static \ 17 | --disable-shared \ 18 | --disable-debug \ 19 | --with-ca-bundle="/etc/ssl/cert.pem" \ 20 | --disable-rtsp \ 21 | --enable-ipv6 22 | [ 0 -ne $? ] && return 1 23 | 24 | $MAKE 25 | } 26 | 27 | package() { 28 | $MAKE DESTDIR="$1" install 29 | install -D -m 644 README "$1/doc/curl/README" 30 | install -m 644 RELEASE-NOTES "$1/doc/curl/RELEASE-NOTES" 31 | install -m 644 CHANGES "$1/doc/curl/CHANGES" 32 | install -m 644 COPYING "$1/doc/curl/COPYING" 33 | } 34 | 35 | -------------------------------------------------------------------------------- /rules/links/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.12" 2 | PKG_SRCS="http://links.twibright.com/download/links-$PKG_VER.tar.bz2" 3 | PKG_DESC="A web browser" 4 | PKG_DEPS="musl zlib xz libressl libpng libjpeg-turbo gpm" 5 | 6 | get_latest() { 7 | wget -q -O - "http://links.twibright.com/download.php" | 8 | grep "Current version" | 9 | cut -f 4 -d \ | 10 | sed s~\.$~~ 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --enable-debuglevel=0 \ 17 | --enable-graphics \ 18 | --without-libtiff 19 | [ 0 -ne $? ] && return 1 20 | 21 | $MAKE 22 | } 23 | 24 | package() { 25 | $MAKE DESTDIR="$1" install 26 | install -D -m 644 README "$1/doc/links/README" 27 | install -m 644 KEYS "$1/doc/links/KEYS" 28 | install -m 644 ChangeLog "$1/doc/links/ChangeLog" 29 | install -m 644 NEWS "$1/doc/links/NEWS" 30 | install -m 644 AUTHORS "$1/doc/links/AUTHORS" 31 | install -m 644 COPYING "$1/doc/links/COPYING" 32 | } 33 | -------------------------------------------------------------------------------- /rules/diffutils/build: -------------------------------------------------------------------------------- 1 | PKG_VER="3.3" 2 | PKG_SRCS="http://ftp.gnu.org/gnu/diffutils/diffutils-$PKG_VER.tar.xz" 3 | PKG_DESC="Patch creation and file comparison tools" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://ftp.gnu.org/gnu/diffutils/" | 8 | grep "\.tar" | 9 | tail -n 1 | 10 | cut -f 3 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --mandir="/man" \ 17 | --disable-nls 18 | [ 0 -ne $? ] && return 1 19 | 20 | $MAKE 21 | } 22 | 23 | package() { 24 | $MAKE DESTDIR="$1" install 25 | install -D -m 644 README "$1/doc/diffutils/README" 26 | install -m 644 NEWS "$1/doc/diffutils/NEWS" 27 | install -m 644 ChangeLog "$1/doc/diffutils/ChangeLog" 28 | install -m 644 ChangeLog-2008 "$1/doc/diffutils/ChangeLog-2008" 29 | install -m 644 AUTHORS "$1/doc/diffutils/AUTHORS" 30 | install -m 644 THANKS "$1/doc/diffutils/THANKS" 31 | install -m 644 COPYING "$1/doc/diffutils/COPYING" 32 | } 33 | -------------------------------------------------------------------------------- /rules/surfraw/config.patch: -------------------------------------------------------------------------------- 1 | diff -rup surfraw-2.2.9-orig/surfraw.conf.IN surfraw-2.2.9/surfraw.conf.IN 2 | --- surfraw-2.2.9-orig/surfraw.conf.IN 2015-02-10 20:59:03.334368079 +0200 3 | +++ surfraw-2.2.9/surfraw.conf.IN 2015-02-10 21:35:09.382419558 +0200 4 | @@ -26,9 +26,8 @@ 5 | # autoconf guessed prefix 6 | prefix=@prefix@ 7 | 8 | -# graphical browser? defaults to yes for meatminds. text browser users can 9 | -# work it out how to change it. 10 | -defyn SURFRAW_graphical yes 11 | +# graphical browser? defaults to no. 12 | +defyn SURFRAW_graphical no 13 | 14 | # name/path of text browser executable 15 | # e.g links, lynx, w3m 16 | @@ -42,7 +41,7 @@ def SURFRAW_graphical_browser @GRAPHIC 17 | def SURFRAW_text_browser_args none 18 | 19 | # graphical browser arguments, or "none" 20 | -def SURFRAW_graphical_browser_args none 21 | +def SURFRAW_graphical_browser_args -g 22 | 23 | # use -remote openURL for graphical browser 24 | defyn SURFRAW_graphical_remote no 25 | -------------------------------------------------------------------------------- /rules/wpa_supplicant/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.5" 2 | PKG_SRCS="http://hostap.epitest.fi/releases/wpa_supplicant-$PKG_VER.tar.gz" 3 | PKG_DESC="A tool for association with wireless networks" 4 | PKG_DEPS="musl libressl libnl-tiny" 5 | 6 | get_latest() { 7 | wget -q -O - "http://w1.fi/wpa_supplicant/" | 8 | grep "releases/" | 9 | head -n 1 | 10 | cut -f 3 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | cd wpa_supplicant 16 | 17 | cp defconfig .config 18 | echo "CONFIG_TLS=openssl 19 | CONFIG_TLSV11=y 20 | CONFIG_TLSV12=y 21 | CC = $CC 22 | CFLAGS += -D_GNU_SOURCE $(pkg-config --cflags libnl-tiny) 23 | LDFLAGS += $(pkg-config --libs libnl-tiny) 24 | CONFIG_LIBNL_TINY=y" >> .config 25 | $MAKE 26 | } 27 | 28 | package() { 29 | $MAKE DESTDIR="$1" BINDIR="/bin" install 30 | install -D -m 644 README "$1/doc/wpa_supplicant/README" 31 | install -m 644 ../CONTRIBUTIONS "$1/doc/wpa_supplicant/CONTRIBUTIONS" 32 | install -m 644 ../COPYING "$1/doc/wpa_supplicant/COPYING" 33 | } 34 | -------------------------------------------------------------------------------- /packer/build_packlim: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | # fetch RLSD's build system 4 | git clone git://rlsd2.dimakrasner.com/ rlsd 5 | 6 | # build Ed25519 and install its frontend 7 | git clone --depth 1 https://github.com/orlp/ed25519.git 8 | cd ed25519 9 | patch -p 1 < ../rlsd/rules/ed25519/build.patch 10 | patch -p 1 < ../rlsd/rules/ed25519/frontend.patch 11 | cd src 12 | make 13 | gcc -o ed25519 ../ed25519.c -I. -L. -led25519 14 | cp -f ed25519 /usr/local/bin/ 15 | 16 | # build Jim 17 | git clone --depth 1 https://github.com/msteveb/jimtcl.git ../../jimtcl 18 | cd ../../jimtcl 19 | ./configure --without-ext="load" 20 | make libjim.a 21 | 22 | # build and install packlim 23 | git clone --depth 1 https://github.com/dimkr/packlim.git ../packlim 24 | cd ../packlim 25 | CFLAGS="-I../../ed25519/src -I../../jimtcl" \ 26 | LDFLAGS="-L../../ed25519/src -L../../jimtcl" \ 27 | make 28 | make install 29 | 30 | # generate a keypair 31 | mkdir /etc/packlim 32 | ed25519 -g /etc/packlim/priv_key /etc/packlim/pub_key 33 | -------------------------------------------------------------------------------- /rules/aop/insult.patch: -------------------------------------------------------------------------------- 1 | diff -rup aop-0.6-orig/aop.c aop-0.6/aop.c 2 | --- aop-0.6-orig/aop.c 2014-10-04 01:08:40.314669321 +0300 3 | +++ aop-0.6/aop.c 2014-10-04 01:10:08.392667744 +0300 4 | @@ -44,7 +44,7 @@ start: memset(field, ' ', 25*81); 5 | } else if (field[py][px] == '0') lifes++; 6 | else if (field[py][px] != ' ' && dir) { 7 | field[opy][opx] = '0'; sleep(1); flushinp(); 8 | - if(--lifes == 0) { p=op; lastword="Sucker!"; break; } 9 | + if(--lifes == 0) { p=op; lastword="You lost!"; break; } 10 | opx=px=ipx; opy=py=ipy; c=dir=0; continue; 11 | } 12 | field[opy][opx] = ' '; field[opy=py][opx=px] = 'O'; 13 | @@ -58,7 +58,7 @@ start: memset(field, ' ', 25*81); 14 | refresh(); usleep(dir < 5 ? 50000 : 100000); 15 | } while( (c=getch()) != 'q' ); 16 | endwin(); printf("%s (%d points)\n", lastword, p); 17 | - return strcmp(lastword, "Sucker!") == 0; 18 | + return strcmp(lastword, "You lost!") == 0; 19 | } 20 | 21 | /* Yup - This are 64 lines of C code. ;-) */ 22 | -------------------------------------------------------------------------------- /rules/vifm/build: -------------------------------------------------------------------------------- 1 | PKG_VER="0.8" 2 | PKG_SRCS="http://prdownloads.sourceforge.net/vifm/vifm-$PKG_VER.tar.bz2" 3 | PKG_DESC="A two-pane file manager" 4 | PKG_DEPS="musl ncurses file" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.vifm.info/" | 8 | grep "Vifm v" | 9 | head -n 1 | 10 | awk '{print $2}' | 11 | cut -f 1 -d \< | 12 | sed s~^v~~ 13 | } 14 | 15 | build() { 16 | LIBS="-lmagic -lz $LIBS" \ 17 | ./configure --prefix="" \ 18 | --mandir="/man" \ 19 | --docdir="/doc/vifm" \ 20 | --disable-desktop-files 21 | [ 0 -ne $? ] && return 1 22 | 23 | $MAKE 24 | } 25 | 26 | package() { 27 | $MAKE DESTDIR="$1" install 28 | install -D -m 644 README "$1/doc/vifm/README" 29 | install -m 644 FAQ "$1/doc/vifm/FAQ" 30 | install -m 644 NEWS "$1/doc/vifm/NEWS" 31 | install -m 644 ChangeLog "$1/doc/vifm/ChangeLog" 32 | install -m 644 AUTHORS "$1/doc/vifm/AUTHORS" 33 | install -m 644 THANKS "$1/doc/vifm/THANKS" 34 | install -m 644 COPYING "$1/doc/vifm/COPYING" 35 | } 36 | -------------------------------------------------------------------------------- /rules/mc/build: -------------------------------------------------------------------------------- 1 | PKG_VER="4.8.14" 2 | PKG_SRCS="http://ftp.midnight-commander.org/mc-$PKG_VER.tar.xz" 3 | PKG_DESC="A dual-pane file manager" 4 | PKG_DEPS="musl ncurses gpm glib" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.midnight-commander.org/" | 8 | grep "Current version is:" | 9 | cut -f 4 -d \ | 10 | sed s~';$'~~ 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" \ 16 | --libexecdir="/share" \ 17 | --disable-nls \ 18 | --disable-vfs \ 19 | --with-screen="ncurses" \ 20 | --with-homedir \ 21 | --without-internal-edit 22 | [ 0 -ne $? ] && return 1 23 | 24 | $MAKE 25 | } 26 | 27 | package() { 28 | $MAKE DESTDIR="$1" install 29 | install -D -m 644 README "$1/doc/mc/README" 30 | install -m 644 NEWS "$1/doc/mc/NEWS" 31 | install -m 644 ChangeLog "$1/doc/mc/ChangeLog" 32 | install -m 644 AUTHORS "$1/doc/mc/AUTHORS" 33 | install -m 644 COPYING "$1/doc/mc/COPYING" 34 | } 35 | -------------------------------------------------------------------------------- /rules/irssi/include.patch: -------------------------------------------------------------------------------- 1 | diff -rup irssi-0.8.17-orig/m4/curses.m4 irssi-0.8.17/m4/curses.m4 2 | --- irssi-0.8.17-orig/m4/curses.m4 2015-04-20 21:07:49.413212471 +0300 3 | +++ irssi-0.8.17/m4/curses.m4 2015-04-20 21:18:27.113191892 +0300 4 | @@ -205,8 +205,6 @@ dnl 5 | AC_DEFUN([AC_NCURSES], [ 6 | if $search_ncurses 7 | then 8 | - if test -f $1/$2 9 | - then 10 | AC_MSG_RESULT(Found ncurses on $1/$2) 11 | 12 | CURSES_LIBS="$3" 13 | @@ -225,13 +223,14 @@ AC_DEFUN([AC_NCURSES], [ 14 | has_curses=true 15 | has_ncurses=true 16 | AC_DEFINE(USE_NCURSES) 17 | - fi 18 | fi 19 | ]) 20 | 21 | AC_DEFUN([AC_SEARCH_NCURSES], [ 22 | AC_CHECKING("location of ncurses.h file") 23 | 24 | + AC_NCURSES(/include, ncurses.h, -lncurses,, 25 | + [ncurses in /include]) 26 | AC_NCURSES(/usr/include, ncurses.h, -lncurses,, 27 | [ncurses in /usr/include]) 28 | AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, 29 | -------------------------------------------------------------------------------- /rules/lbzip2/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.5" 2 | PKG_SRCS="http://archive.lbzip2.org/lbzip2-$PKG_VER.tar.gz" 3 | PKG_DESC="Compression tools" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.lbzip2.org/" | 8 | grep "The latest released version" | 9 | cut -f 8 -d \ | 10 | sed s~'\.$'~~ 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --mandir="/man" 16 | [ 0 -ne $? ] && return 1 17 | 18 | $MAKE 19 | } 20 | 21 | package() { 22 | $MAKE DESTDIR="$1" install 23 | for i in "$1/bin"/* 24 | do 25 | name="$(basename "$i")" 26 | ln -s "$name" "$1/bin/$(echo "$name" | cut -c 2-)" 27 | done 28 | install -D -m 644 README "$1/doc/lbzip2/README" 29 | install -m 644 NEWS "$1/doc/lbzip2/NEWS" 30 | install -m 644 ChangeLog "$1/doc/lbzip2/ChangeLog" 31 | install -m 644 ChangeLog.old "$1/doc/lbzip2/ChangeLog.old" 32 | install -m 644 AUTHORS "$1/doc/lbzip2/AUTHORS" 33 | install -m 644 THANKS "$1/doc/lbzip2/THANKS" 34 | install -m 644 COPYING "$1/doc/lbzip2/COPYING" 35 | } 36 | -------------------------------------------------------------------------------- /rules/loksh/packlad.patch: -------------------------------------------------------------------------------- 1 | diff -rup loksh-orig/exec.c loksh/exec.c 2 | --- loksh-orig/exec.c 2014-10-04 22:55:04.431935433 +0300 3 | +++ loksh/exec.c 2014-10-04 23:45:18.179992206 +0300 4 | @@ -398,6 +398,7 @@ comexec(struct op *t, struct tbl *volati 5 | int keepasn_ok; 6 | int fcflags = FC_BI|FC_FUNC|FC_PATH; 7 | int bourne_function_call = 0; 8 | + char *nfound_ap[] = {"/bin/packsuggest", ap[0], NULL}; 9 | 10 | /* snag the last argument for $_ XXX not the same as at&t ksh, 11 | * which only seems to set $_ after a newline (but not in 12 | @@ -649,6 +650,13 @@ comexec(struct op *t, struct tbl *volati 13 | } else { 14 | warningf(true, "%s: not found", cp); 15 | rv = 127; 16 | + if (Flag(FTALKING)) { 17 | + texec.type = TEXEC; 18 | + texec.left = t; 19 | + texec.str = nfound_ap[0]; 20 | + texec.args = nfound_ap; 21 | + exchild(&texec, flags, xerrok, -1); 22 | + } 23 | } 24 | break; 25 | } 26 | Binary files loksh-orig/.git/index and loksh/.git/index differ 27 | -------------------------------------------------------------------------------- /rules/clzip/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.7" 2 | PKG_SRCS="http://download.savannah.gnu.org/releases/lzip/clzip/clzip-$PKG_VER.tar.gz" 3 | PKG_DESC="A compression tool" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://download.savannah.gnu.org/releases/lzip/clzip/" | 8 | grep \.tar\.lz\" | 9 | grep -v -E '(pre|rc)[0-9]' | 10 | tail -n 1 | 11 | cut -f 2 -d \- | 12 | sed s~\.tar.*~~ 13 | } 14 | 15 | build() { 16 | ./configure --prefix="" \ 17 | --prefix="" \ 18 | --datarootdir="/share" \ 19 | --mandir="/man" \ 20 | CC="$CC" \ 21 | CFLAGS="$CFLAGS" \ 22 | LDFLAGS="$LDFLAGS" 23 | [ 0 -ne $? ] && return 1 24 | 25 | $MAKE 26 | } 27 | 28 | package() { 29 | $MAKE DESTDIR="$1" install 30 | install -D -m 644 README "$1/doc/clzip/README" 31 | install -m 644 NEWS "$1/doc/clzip/NEWS" 32 | install -m 644 ChangeLog "$1/doc/clzip/ChangeLog" 33 | install -m 644 AUTHORS "$1/doc/clzip/AUTHORS" 34 | install -m 644 COPYING "$1/doc/clzip/COPYING" 35 | } 36 | -------------------------------------------------------------------------------- /rules/msmtp/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.6.2" 2 | PKG_SRCS="http://sourceforge.net/projects/msmtp/files/msmtp/$PKG_VER/msmtp-$PKG_VER.tar.xz" 3 | PKG_DESC="An e-mail sending tool" 4 | PKG_DEPS="musl libressl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://sourceforge.net/projects/msmtp/files/msmtp/" | 8 | grep "Click to enter" | 9 | grep -v -E 'rc[0-9]' | 10 | head -n 1 | 11 | awk '{print $4}' | 12 | sed s~'"$'~~ 13 | } 14 | 15 | build() { 16 | ./configure --prefix="" \ 17 | --mandir="/man" \ 18 | --disable-nls \ 19 | --with-ssl="openssl" \ 20 | --without-libidn 21 | [ 0 -ne $? ] && return 1 22 | 23 | $MAKE 24 | } 25 | 26 | package() { 27 | $MAKE DESTDIR="$1" install 28 | install -D -m 644 README "$1/doc/msmtp/README" 29 | install -m 644 NEWS "$1/doc/msmtp/NEWS" 30 | install -m 644 ChangeLog "$1/doc/msmtp/ChangeLog" 31 | install -m 644 AUTHORS "$1/doc/msmtp/AUTHORS" 32 | install -m 644 THANKS "$1/doc/msmtp/THANKS" 33 | install -m 644 COPYING "$1/doc/msmtp/COPYING" 34 | } 35 | -------------------------------------------------------------------------------- /rules/surfraw/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.2.9" 2 | PKG_SRCS="http://surfraw.alioth.debian.org/dist/surfraw-$PKG_VER.tar.gz" 3 | PKG_DESC="A search engine frontend" 4 | PKG_BUILD_DEPS="" 5 | PKG_DEPS="loksh lok lynx links" 6 | 7 | get_latest() { 8 | wget -q -O - "http://surfraw.alioth.debian.org/" | 9 | grep "dist/surfraw" | 10 | head -n 1 | 11 | cut -f 2 -d \- | 12 | sed s~'\.tar.*'~~ 13 | } 14 | 15 | build() { 16 | AWK="awk" \ 17 | ./configure --prefix="" \ 18 | --libdir="/share" \ 19 | --mandir="/man" \ 20 | --disable-opensearch \ 21 | --with-text-browser="lynx" \ 22 | --with-graphical-browser="links" 23 | [ 0 -ne $? ] && return 1 24 | 25 | $MAKE 26 | } 27 | 28 | package() { 29 | $MAKE DESTDIR="$1" install 30 | install -D -m 644 README "$1/doc/surfraw/README" 31 | install -m 644 NEWS "$1/doc/surfraw/NEWS" 32 | install -m 644 ChangeLog "$1/doc/surfraw/ChangeLog" 33 | install -m 644 AUTHORS "$1/doc/surfraw/AUTHORS" 34 | install -m 644 COPYING "$1/doc/surfraw/COPYING" 35 | } 36 | -------------------------------------------------------------------------------- /rules/fetchmail/build: -------------------------------------------------------------------------------- 1 | PKG_VER="6.3.26" 2 | PKG_SRCS="http://sourceforge.net/projects/fetchmail/files/branch_6.3/fetchmail-$PKG_VER.tar.xz" 3 | PKG_DESC="An e-mail retrieval tool" 4 | PKG_DEPS="musl libressl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://sourceforge.net/projects/fetchmail" | 8 | grep ".tar.xz" | 9 | tail -n 1 | 10 | cut -f 2 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | autoconf 16 | [ 0 -ne $? ] && return 1 17 | 18 | ./configure --prefix="" \ 19 | --mandir="/man" \ 20 | --disable-nls \ 21 | --enable-fallback=no \ 22 | --with-ssl="$SYSROOT" 23 | [ 0 -ne $? ] && return 1 24 | 25 | $MAKE 26 | } 27 | 28 | package() { 29 | install -D -m 755 fetchmail "$1/bin/fetchmail" 30 | install -D -m 644 fetchmail.man "$1/man/man1/fetchmail.1" 31 | install -D -m 644 README "$1/doc/fetchmail/README" 32 | install -m 644 FAQ "$1/doc/fetchmail/FAQ" 33 | install -m 644 NEWS "$1/doc/fetchmail/NEWS" 34 | install -m 644 COPYING "$1/doc/fetchmail/COPYING" 35 | } 36 | -------------------------------------------------------------------------------- /rules/dropbear/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2015.68" 2 | PKG_SRCS="https://matt.ucc.asn.au/dropbear/releases/dropbear-$PKG_VER.tar.bz2" 3 | PKG_DESC="A SSH server and client" 4 | PKG_DEPS="musl zlib" 5 | 6 | PROGRAMS="dropbear dbclient dropbearkey scp" 7 | 8 | get_latest() { 9 | wget -q -O - "https://matt.ucc.asn.au/dropbear/dropbear.html" | 10 | grep "Latest is" | 11 | cut -f 3 -d \ | 12 | cut -f 1 -d \< 13 | } 14 | 15 | build() { 16 | ./configure --prefix="" \ 17 | --sbindir="/bin" \ 18 | --mandir="/man" \ 19 | --enable-zlib \ 20 | --disable-pam \ 21 | --disable-lastlog 22 | [ 0 -ne $? ] && return 1 23 | 24 | $MAKE PROGRAMS="$PROGRAMS" MULTI=1 25 | } 26 | 27 | package() { 28 | $MAKE DESTDIR="$1" PROGRAMS="$PROGRAMS" MULTI=1 install 29 | ln -s dropbearmulti "$1/bin/ssh" 30 | install -d -m 644 "$1/etc/dropbear" 31 | install -D -m 644 README "$1/doc/dropbear/README" 32 | install -m 644 CHANGES "$1/doc/dropbear/CHANGES" 33 | install -m 644 LICENSE "$1/doc/dropbear/LICENSE" 34 | } 35 | -------------------------------------------------------------------------------- /rules/linux-libre/compression.patch: -------------------------------------------------------------------------------- 1 | diff -rup linux-3.14.17-orig/scripts/Makefile.lib linux-3.14.17/scripts/Makefile.lib 2 | --- linux-3.14.17-orig/scripts/Makefile.lib 2014-08-29 19:06:31.869996385 +0300 3 | +++ linux-3.14.17/scripts/Makefile.lib 2014-08-29 19:11:06.422991468 +0300 4 | @@ -366,7 +366,7 @@ cmd_xzkern = (cat $(filter-out FORCE,$^) 5 | 6 | quiet_cmd_xzmisc = XZMISC $@ 7 | cmd_xzmisc = (cat $(filter-out FORCE,$^) | \ 8 | - xz --check=crc32 --lzma2=dict=1MiB) > $@ || \ 9 | + xz -9 -e --check=crc32 --lzma2=dict=1MiB) > $@ || \ 10 | (rm -f $@ ; false) 11 | 12 | # misc stuff 13 | diff -rup linux-3.14.17-orig/scripts/xz_wrap.sh linux-3.14.17/scripts/xz_wrap.sh 14 | --- linux-3.14.17-orig/scripts/xz_wrap.sh 2014-08-29 19:06:31.837996386 +0300 15 | +++ linux-3.14.17/scripts/xz_wrap.sh 2014-08-29 19:10:25.481992202 +0300 16 | @@ -20,4 +20,4 @@ case $SRCARCH in 17 | sparc) BCJ=--sparc ;; 18 | esac 19 | 20 | -exec xz --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB 21 | +exec xz -9 -e --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB 22 | -------------------------------------------------------------------------------- /rules/nano/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.4.2" 2 | PKG_SRCS="http://www.nano-editor.org/dist/v2.4/nano-$PKG_VER.tar.gz" 3 | PKG_DESC="A text editor" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.nano-editor.org/download.php" | 8 | grep "dist/" | 9 | head -n 1 | 10 | cut -f 3 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --datarootdir="/share" \ 17 | --docdir="/doc/nano" \ 18 | --mandir="/man" \ 19 | --disable-nls \ 20 | --disable-libmagic \ 21 | --disable-utf8 \ 22 | --without-slang 23 | [ 0 -ne $? ] && return 1 24 | 25 | $MAKE 26 | } 27 | 28 | package() { 29 | $MAKE DESTDIR="$1" install 30 | install -D -m 644 README "$1/doc/nano/README" 31 | install -m 644 NEWS "$1/doc/nano/NEWS" 32 | install -m 644 ChangeLog "$1/doc/nano/ChangeLog" 33 | install -m 644 AUTHORS "$1/doc/nano/AUTHORS" 34 | install -m 644 THANKS "$1/doc/nano/THANKS" 35 | install -m 644 COPYING "$1/doc/nano/COPYING" 36 | } 37 | -------------------------------------------------------------------------------- /rules/irssi/build: -------------------------------------------------------------------------------- 1 | PKG_VER="0.8.17" 2 | PKG_SRCS="http://www.irssi.org/files/irssi-$PKG_VER.tar.bz2" 3 | PKG_DESC="An IRC client" 4 | PKG_DEPS="musl ncurses libressl glib" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.irssi.org/download" | 8 | grep "Latest release version" | 9 | cut -f 3 -d \> | 10 | cut -f 1 -d \< 11 | } 12 | 13 | build() { 14 | autoreconf 15 | [ 0 -ne $? ] && return 1 16 | 17 | ./configure --prefix="" \ 18 | --mandir="/man" \ 19 | --docdir="/doc/irssi" \ 20 | --without-bot \ 21 | --without-proxy \ 22 | --without-modules \ 23 | --with-perl="no" \ 24 | --with-ncurses 25 | [ 0 -ne $? ] && return 1 26 | 27 | $MAKE 28 | } 29 | 30 | package() { 31 | $MAKE DESTDIR="$1" install 32 | install -D -m 644 README.md "$1/doc/irssi/README.md" 33 | install -m 644 NEWS "$1/doc/irssi/NEWS" 34 | install -m 644 ChangeLog "$1/doc/irssi/ChangeLog" 35 | install -m 644 AUTHORS "$1/doc/irssi/AUTHORS" 36 | install -m 644 COPYING "$1/doc/irssi/COPYING" 37 | } 38 | -------------------------------------------------------------------------------- /rules/alsa-utils/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.0.29" 2 | PKG_SRCS="ftp://ftp.alsa-project.org/pub/utils/alsa-utils-$PKG_VER.tar.bz2" 3 | PKG_DESC="Audio tools" 4 | PKG_DEPS="musl ncurses alsa-lib" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.alsa-project.org/main/index.php/Main_Page_News" | 8 | grep -E 'alsa .+ release' | 9 | cut -f 3 -d \ | 10 | head -n 1 11 | } 12 | 13 | build() { 14 | autoconf 15 | [ 0 -ne $? ] && return 1 16 | 17 | ./configure --prefix="" \ 18 | --sbindir=/bin \ 19 | --mandir="/man" \ 20 | --disable-nls \ 21 | --disable-xmlto \ 22 | --without-udev-rules-dir \ 23 | --with-curses="ncurses" \ 24 | --with-asound-state-dir="/etc" \ 25 | --with-alsactl-pidfile-dir="/run" 26 | [ 0 -ne $? ] && return 1 27 | 28 | $MAKE 29 | } 30 | 31 | package() { 32 | $MAKE DESTDIR="$1" install 33 | install -D -m 644 README "$1/doc/alsa-utils/README" 34 | install -m 644 ChangeLog "$1/doc/alsa-utils/ChangeLog" 35 | install -m 644 COPYING "$1/doc/alsa-utils/COPYING" 36 | } 37 | -------------------------------------------------------------------------------- /rules/gpm/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.20.7" 2 | PKG_SRCS="http://www.nico.schottelius.org/software/gpm/archives/gpm-$PKG_VER.tar.bz2" 3 | PKG_DESC="A mouse server" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.nico.schottelius.org/software/gpm/archives/" | 8 | grep "\.tar" | 9 | grep -v "1.99" | 10 | tail -n 1 | 11 | cut -f 2 -d \- | 12 | sed s~'\.tar.*'~~ 13 | } 14 | 15 | build() { 16 | ./autogen.sh 17 | [ 0 -ne $? ] && return 1 18 | 19 | ./configure --prefix="" \ 20 | --localstatedir="/run" 21 | [ 0 -ne $? ] && return 1 22 | 23 | cd src 24 | $MAKE lib/libgpm.a 25 | [ 0 -ne $? ] && return 1 26 | $MAKE gpm 27 | [ 0 -ne $? ] && return 1 28 | 29 | cd ../doc 30 | $MAKE gpm.8 31 | } 32 | 33 | package() { 34 | install -D -m 755 ../src/gpm "$1/bin/gpm" 35 | install -D -m 644 ../src/lib/libgpm.a "$1/lib/libgpm.a" 36 | install -D -m 644 ../src/headers/gpm.h "$1/include/gpm.h" 37 | install -D -m 755 gpm.8 "$1/man/man8/gpm.8" 38 | install -D -m 644 ../README "$1/doc/gpm/README" 39 | install -m 644 ../COPYING "$1/doc/gpm/COPYING" 40 | } 41 | -------------------------------------------------------------------------------- /rules/lynx/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.8.8" 2 | PKG_SRCS="http://lynx.isc.org/lynx$PKG_VER/lynx$PKG_VER.tar.bz2" 3 | PKG_DESC="A web browser" 4 | PKG_DEPS="musl zlib ncurses libressl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://lynx.isc.org/release/" | 8 | grep "\.tar" | 9 | head -n 1 | 10 | cut -f 2 -d / | 11 | cut -c 5- 12 | } 13 | 14 | build() { 15 | CFLAGS="-DUSE_OPENSSL_INCL $CFLAGS" \ 16 | ./configure --prefix="" \ 17 | --mandir="/man" \ 18 | --disable-nls \ 19 | --with-ssl \ 20 | --enable-ipv6 \ 21 | --with-screen="ncurses" \ 22 | --enable-underlines \ 23 | --disable-gzip-help \ 24 | --with-zlib 25 | [ 0 -ne $? ] && return 1 26 | 27 | $MAKE 28 | } 29 | 30 | package() { 31 | $MAKE DESTDIR="$1" install 32 | install -D -m 644 README "$1/doc/lynx/README" 33 | install -m 644 CHANGES "$1/doc/lynx/CHANGES" 34 | install -m 644 AUTHORS "$1/doc/lynx/AUTHORS" 35 | install -m 644 COPYHEADER "$1/doc/lynx/COPYHEADER" 36 | install -m 644 COPYING "$1/doc/lynx/COPYING" 37 | } 38 | -------------------------------------------------------------------------------- /rules/bitlbee/build: -------------------------------------------------------------------------------- 1 | PKG_VER="3.4.1" 2 | PKG_SRCS="http://get.bitlbee.org/src/bitlbee-$PKG_VER.tar.gz" 3 | PKG_DESC="A tunneler of IM protocols over IRC" 4 | PKG_DEPS="musl libressl glib" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.bitlbee.org/main.php/news.r.html" | 8 | grep "Stable:" | 9 | cut -f 2 -d \< | 10 | cut -f 3 -d \ 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --sbindir="/bin" \ 16 | --mandir="/man" \ 17 | --pidfile="/run/bitlbee.pid" \ 18 | --strip=0 \ 19 | --pie=0 \ 20 | --plugins=0 \ 21 | --ssl="openssl" 22 | [ 0 -ne $? ] && return 1 23 | 24 | $MAKE 25 | } 26 | 27 | package() { 28 | $MAKE DESTDIR="$1" install install-etc 29 | install -d -D -m 755 "$1/var/lib/bitlbee" 30 | install -D -m 644 doc/README "$1/doc/bitlbee/README" 31 | install -m 644 doc/CHANGES "$1/doc/bitlbee/CHANGES" 32 | install -m 644 doc/AUTHORS "$1/doc/bitlbee/AUTHORS" 33 | install -m 644 doc/CREDITS "$1/doc/bitlbee/CREDITS" 34 | install -m 644 COPYING "$1/doc/bitlbee/COPYING" 35 | } 36 | -------------------------------------------------------------------------------- /packer/packer-x86.json: -------------------------------------------------------------------------------- 1 | { 2 | "builders": 3 | [ 4 | { 5 | "name": "x86", 6 | "type": "qemu", 7 | "iso_url": "http://mirror.fsf.org/trisquel-images/trisquel-netinst_7.0_i686.iso", 8 | "iso_checksum": "3b3d04f197bbefeddf31fbfb756dd06d", 9 | "iso_checksum_type": "md5", 10 | "ssh_wait_timeout": "30s", 11 | "shutdown_command": "shutdown -P now", 12 | "disk_size": 20000, 13 | "output_directory": "x86", 14 | "http_directory": "www", 15 | "ssh_username": "root", 16 | "ssh_password": "root", 17 | "ssh_wait_timeout": "90m", 18 | "vm_name": "rlsd", 19 | "boot_wait": "5s", 20 | "boot_command": 21 | [ 22 | "preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed.cfg debian-installer=en_US auto locale=en_US kbd-chooser/method=us hostname={{.Name}} debconf/frontend=noninteractive keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA keyboard-configuration/variant=USA console-setup/ask_detect=false" 23 | ] 24 | } 25 | ], 26 | "provisioners": 27 | [ 28 | { 29 | "type": "shell", 30 | "script": "build_packlim" 31 | } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /packer/packer-x86_64.json: -------------------------------------------------------------------------------- 1 | { 2 | "builders": 3 | [ 4 | { 5 | "name": "x86_64", 6 | "type": "qemu", 7 | "iso_url": "http://mirror.fsf.org/trisquel-images/trisquel-netinst_7.0_amd64.iso", 8 | "iso_checksum": "b03d6ba5cea83de3c24c9e80e9a95362", 9 | "iso_checksum_type": "md5", 10 | "ssh_wait_timeout": "30s", 11 | "shutdown_command": "shutdown -P now", 12 | "disk_size": 20000, 13 | "output_directory": "x86_64", 14 | "http_directory": "www", 15 | "ssh_username": "root", 16 | "ssh_password": "root", 17 | "ssh_wait_timeout": "90m", 18 | "vm_name": "rlsd", 19 | "boot_wait": "5s", 20 | "boot_command": 21 | [ 22 | "preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed.cfg debian-installer=en_US auto locale=en_US kbd-chooser/method=us hostname={{.Name}} debconf/frontend=noninteractive keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA keyboard-configuration/variant=USA console-setup/ask_detect=false" 23 | ] 24 | } 25 | ], 26 | "provisioners": 27 | [ 28 | { 29 | "type": "shell", 30 | "script": "build_packlim" 31 | } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /rules/fuse/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.9.4" 2 | PKG_SRCS="http://downloads.sourceforge.net/project/fuse/fuse-2.X/$PKG_VER/fuse-$PKG_VER.tar.gz" 3 | PKG_DESC="An interface for user-mode file systems" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://sourceforge.net/projects/fuse/files/fuse-2.X/" | 8 | grep "Click to enter" | 9 | head -n 1 | 10 | awk '{print $4}' | 11 | sed s~\"~~ 12 | } 13 | 14 | build() { 15 | MOUNT_FUSE_PATH="/bin" \ 16 | ./configure --prefix="" \ 17 | --mandir="/man" \ 18 | --enable-static \ 19 | --disable-shared \ 20 | --disable-example \ 21 | --disable-mtab 22 | [ 0 -ne $? ] && return 1 23 | 24 | $MAKE 25 | } 26 | 27 | package() { 28 | $MAKE DESTDIR="$1" install 29 | install -D -m 644 README "$1/doc/fuse/README" 30 | install -m 644 README.NFS "$1/doc/fuse/README.NFS" 31 | install -m 644 NEWS "$1/doc/fuse/NEWS" 32 | install -m 644 ChangeLog "$1/doc/fuse/ChangeLog" 33 | install -m 644 AUTHORS "$1/doc/fuse/AUTHORS" 34 | install -m 644 COPYING "$1/doc/fuse/COPYING" 35 | install -m 644 COPYING.LIB "$1/doc/fuse/COPYING.LIB" 36 | } 37 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013, 2014, 2015 Dima Krasner 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /rules/screen/build: -------------------------------------------------------------------------------- 1 | PKG_VER="4.3.1" 2 | PKG_SRCS="http://ftp.gnu.org/gnu/screen/screen-$PKG_VER.tar.gz" 3 | PKG_DESC="A terminal multiplexer" 4 | PKG_DEPS="musl ncurses" 5 | 6 | get_latest() { 7 | wget -q -O - "http://ftp.gnu.org/gnu/screen/" | 8 | grep "\.tar" | 9 | tail -n 1 | 10 | cut -f 2 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | ./configure --prefix="" \ 16 | --datadir="/share" \ 17 | --mandir="/man" \ 18 | --disable-socket-dir \ 19 | --disable-pam \ 20 | --disable-use-locale \ 21 | --disable-telnet \ 22 | --disable-colors256 \ 23 | --disable-rxvt_osc \ 24 | --with-sys-screenrc="/etc/screenrc" 25 | [ 0 -ne $? ] && return 1 26 | 27 | $MAKE 28 | } 29 | 30 | package() { 31 | $MAKE DESTDIR="$1" install 32 | rm -f "$1/bin/screen" 33 | mv "$1/bin/screen-$PKG_VER" "$1/bin/screen" 34 | install -D -m 644 README "$1/doc/screen/README" 35 | install -m 644 NEWS "$1/doc/screen/NEWS" 36 | install -m 644 ChangeLog "$1/doc/screen/ChangeLog" 37 | install -m 644 COPYING "$1/doc/screen/COPYING" 38 | } 39 | -------------------------------------------------------------------------------- /rules/setfont/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.0.2" 2 | PKG_SRCS="http://www.kbd-project.org/download/kbd-$PKG_VER.tar.xz" 3 | PKG_DESC="A utility for setting the console font" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.kbd-project.org/download/" | 8 | grep "\.tar" | 9 | tail -n 1 | 10 | cut -f 2 -d \- | 11 | sed s~'\.tar.*'~~ 12 | } 13 | 14 | build() { 15 | autoconf 16 | [ 0 -ne $? ] && return 1 17 | 18 | ./configure --prefix="" \ 19 | --mandir="/man" \ 20 | --disable-nls \ 21 | --disable-vlock 22 | [ 0 -ne $? ] && return 1 23 | 24 | cd src/libkeymap 25 | $MAKE 26 | [ 0 -ne $? ] && return 1 27 | 28 | cd .. 29 | $MAKE setfont 30 | } 31 | 32 | package() { 33 | install -D -m 755 setfont "$1/bin/setfont" 34 | install -D -m 644 ../docs/man/man8/setfont.8 "$1/man/man8/setfont.8" 35 | install -D -m 644 ../README "$1/doc/setfont/README" 36 | install -m 644 ../ChangeLog "$1/doc/setfont/ChangeLog" 37 | install -m 644 ../AUTHORS "$1/doc/setfont/AUTHORS" 38 | install -m 644 ../CREDITS "$1/doc/setfont/CREDITS" 39 | install -m 644 ../COPYING "$1/doc/setfont/COPYING" 40 | } 41 | -------------------------------------------------------------------------------- /rules/dropbear/relative-links.patch: -------------------------------------------------------------------------------- 1 | diff -rup dropbear-2015.67-orig/Makefile.in dropbear-2015.67/Makefile.in 2 | --- dropbear-2015.67-orig/Makefile.in 2015-01-28 21:23:28.632281070 +0200 3 | +++ dropbear-2015.67/Makefile.in 2015-01-28 21:25:09.328283463 +0200 4 | @@ -129,14 +129,14 @@ install: $(addprefix inst_, $(TARGETS)) 5 | insmultidropbear: dropbearmulti 6 | $(INSTALL) -d $(DESTDIR)$(sbindir) 7 | -rm -f $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) 8 | - -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) 9 | + -ln -s dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) 10 | $(INSTALL) -d $(DESTDIR)$(mandir)/man8 11 | $(INSTALL) -m 644 $(srcdir)/dropbear.8 $(DESTDIR)$(mandir)/man8/dropbear.8 12 | 13 | insmulti%: dropbearmulti 14 | $(INSTALL) -d $(DESTDIR)$(bindir) 15 | -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) 16 | - -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) 17 | + -ln -s dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) 18 | $(INSTALL) -d $(DESTDIR)$(mandir)/man1 19 | if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi 20 | 21 | -------------------------------------------------------------------------------- /rules/strace/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup strace-4.10-orig/evdev.c strace-4.10/evdev.c 2 | --- strace-4.10-orig/evdev.c 2015-03-10 19:16:03.644273038 +0200 3 | +++ strace-4.10/evdev.c 2015-03-10 19:28:29.020290753 +0200 4 | @@ -29,6 +29,7 @@ 5 | #include "defs.h" 6 | 7 | #ifdef HAVE_LINUX_INPUT_H 8 | +#include 9 | #include 10 | #include "xlat/evdev_abs.h" 11 | #include "xlat/evdev_autorepeat.h" 12 | diff -rup strace-4.10-orig/mknod.c strace-4.10/mknod.c 13 | --- strace-4.10-orig/mknod.c 2015-03-10 19:16:03.608273037 +0200 14 | +++ strace-4.10/mknod.c 2015-03-10 19:30:46.972294032 +0200 15 | @@ -1,6 +1,7 @@ 16 | #include "defs.h" 17 | 18 | #include 19 | +#include 20 | 21 | #ifdef MAJOR_IN_SYSMACROS 22 | # include 23 | diff -rup strace-4.10-orig/printmode.c strace-4.10/printmode.c 24 | --- strace-4.10-orig/printmode.c 2015-03-10 19:16:03.652273038 +0200 25 | +++ strace-4.10/printmode.c 2015-03-10 19:32:11.116296032 +0200 26 | @@ -1,6 +1,7 @@ 27 | #include "defs.h" 28 | 29 | #include 30 | +#include 31 | 32 | #include "xlat/modetypes.h" 33 | 34 | -------------------------------------------------------------------------------- /rules/libffi/includedir.patch: -------------------------------------------------------------------------------- 1 | diff -rupN libffi-3.2.1-orig/include/Makefile.in libffi-3.2.1/include/Makefile.in 2 | --- libffi-3.2.1-orig/include/Makefile.in 2015-02-07 12:06:21.394202023 +0200 3 | +++ libffi-3.2.1/include/Makefile.in 2015-02-07 12:07:07.322203114 +0200 4 | @@ -314,7 +314,7 @@ top_srcdir = @top_srcdir@ 5 | AUTOMAKE_OPTIONS = foreign 6 | DISTCLEANFILES = ffitarget.h 7 | EXTRA_DIST = ffi.h.in ffi_common.h 8 | -includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include 9 | +includesdir = $(includedir)/@PACKAGE_NAME@ 10 | nodist_includes_HEADERS = ffi.h ffitarget.h 11 | all: all-am 12 | 13 | diff -rupN libffi-3.2.1-orig/libffi.pc.in libffi-3.2.1/libffi.pc.in 14 | --- libffi-3.2.1-orig/libffi.pc.in 2015-02-07 12:06:21.386202023 +0200 15 | +++ libffi-3.2.1/libffi.pc.in 2015-02-07 12:09:11.606206068 +0200 16 | @@ -1,8 +1,7 @@ 17 | prefix=@prefix@ 18 | exec_prefix=@exec_prefix@ 19 | -libdir=@libdir@ 20 | toolexeclibdir=@toolexeclibdir@ 21 | -includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include 22 | +includedir=${prefix}/include/@PACKAGE_NAME@ 23 | 24 | Name: @PACKAGE_NAME@ 25 | Description: Library supporting Foreign Function Interfaces 26 | -------------------------------------------------------------------------------- /rules/wpa_supplicant/libnl-tiny.patch: -------------------------------------------------------------------------------- 1 | diff -rup wpa_supplicant-2.4-orig/src/drivers/driver_nl80211.c wpa_supplicant-2.4/src/drivers/driver_nl80211.c 2 | --- wpa_supplicant-2.4-orig/src/drivers/driver_nl80211.c 2015-03-16 09:17:47.474988196 +0200 3 | +++ wpa_supplicant-2.4/src/drivers/driver_nl80211.c 2015-03-16 09:28:35.687003601 +0200 4 | @@ -39,6 +39,13 @@ 5 | #include "driver_nl80211.h" 6 | 7 | 8 | +#ifdef CONFIG_LIBNL_TINY 9 | +#define nl_handle nl_sock 10 | +#define nl_handle_alloc_cb nl_socket_alloc_cb 11 | +#define nl_handle_destroy nl_socket_free 12 | +#endif 13 | + 14 | + 15 | #ifndef CONFIG_LIBNL20 16 | /* 17 | * libnl 1.1 has a bug, it tries to allocate socket numbers densely 18 | diff -rup wpa_supplicant-2.4-orig/src/drivers/drivers.mak wpa_supplicant-2.4/src/drivers/drivers.mak 19 | --- wpa_supplicant-2.4-orig/src/drivers/drivers.mak 2015-03-16 09:17:47.478988196 +0200 20 | +++ wpa_supplicant-2.4/src/drivers/drivers.mak 2015-03-16 09:27:07.283001500 +0200 21 | @@ -53,6 +53,7 @@ endif 22 | else 23 | ifdef CONFIG_LIBNL_TINY 24 | DRV_LIBS += -lnl-tiny 25 | + DRV_CFLAGS += -DCONFIG_LIBNL_TINY 26 | else 27 | DRV_LIBS += -lnl 28 | endif 29 | -------------------------------------------------------------------------------- /rules/iptables/etc/init.d/iptables: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | start) 5 | echo -n "Starting firewall ..." 6 | 7 | # remove the current configuration 8 | iptables -F 9 | iptables -X 10 | 11 | # drop all incoming traffic 12 | iptables -P INPUT DROP 13 | 14 | # allow all outgoing traffic 15 | iptables -P OUTPUT ACCEPT 16 | 17 | # disable NAT 18 | iptables -P FORWARD DROP 19 | 20 | # accept all incoming traffic in the loopback interface 21 | iptables -A INPUT -i lo -j ACCEPT 22 | 23 | # allow established connections and related ICMP traffic 24 | iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT 25 | 26 | # drop invalid connections 27 | iptables -A INPUT -m conntrack --ctstate INVALID -j DROP 28 | 29 | # accept IPv6 Neighbor Discovery packets 30 | iptables -A INPUT -p 41 -j ACCEPT 31 | 32 | # ignore ICMP echo requests 33 | echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all 34 | 35 | echo " done." 36 | ;; 37 | 38 | stop) 39 | echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all 40 | iptables -F 41 | iptables -X 42 | for i in INPUT FORWARD OUTPUT 43 | do 44 | iptables -P $i ACCEPT 45 | done 46 | ;; 47 | esac 48 | -------------------------------------------------------------------------------- /rules/setfont/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup kbd-2.0.2-orig/src/libkeymap/dump.c kbd-2.0.2/src/libkeymap/dump.c 2 | --- kbd-2.0.2-orig/src/libkeymap/dump.c 2014-11-01 14:04:35.679999271 +0200 3 | +++ kbd-2.0.2/src/libkeymap/dump.c 2014-11-01 14:05:12.853998605 +0200 4 | @@ -13,6 +13,7 @@ 5 | #include 6 | #include 7 | #include 8 | +#include 9 | 10 | #include "keymap.h" 11 | 12 | diff -rup kbd-2.0.2-orig/src/libkeymap/kmap.c kbd-2.0.2/src/libkeymap/kmap.c 13 | --- kbd-2.0.2-orig/src/libkeymap/kmap.c 2014-11-01 14:04:35.680999271 +0200 14 | +++ kbd-2.0.2/src/libkeymap/kmap.c 2014-11-01 14:05:27.058998351 +0200 15 | @@ -1,5 +1,6 @@ 16 | #include 17 | #include 18 | +#include 19 | 20 | #include "nls.h" 21 | #include "kbd.h" 22 | diff -rup kbd-2.0.2-orig/src/libkeymap/summary.c kbd-2.0.2/src/libkeymap/summary.c 23 | --- kbd-2.0.2-orig/src/libkeymap/summary.c 2014-11-01 14:04:35.680999271 +0200 24 | +++ kbd-2.0.2/src/libkeymap/summary.c 2014-11-01 14:05:37.978998156 +0200 25 | @@ -9,6 +9,7 @@ 26 | #include 27 | #include 28 | #include 29 | +#include 30 | 31 | #include "keymap.h" 32 | 33 | -------------------------------------------------------------------------------- /rules/linux-libre/firmware_loading.patch: -------------------------------------------------------------------------------- 1 | diff -rup linux-3.14.32-orig/drivers/base/firmware_class.c linux-3.14.32/drivers/base/firmware_class.c 2 | --- linux-3.14.32-orig/drivers/base/firmware_class.c 2015-02-07 17:49:47.344006184 +0200 3 | +++ linux-3.14.32/drivers/base/firmware_class.c 2015-02-07 17:50:53.812007764 +0200 4 | @@ -262,12 +262,13 @@ static void fw_free_buf(struct firmware_ 5 | } 6 | 7 | /* direct firmware loading support */ 8 | -static char fw_path_para[256]; 9 | static const char * const fw_path[] = { 10 | +#if 0 11 | fw_path_para, 12 | "/lib/firmware/updates/" UTS_RELEASE, 13 | "/lib/firmware/updates", 14 | "/lib/firmware/" UTS_RELEASE, 15 | +#endif 16 | "/lib/firmware" 17 | }; 18 | 19 | @@ -276,8 +277,6 @@ static const char * const fw_path[] = { 20 | * from kernel command line because firmware_class is generally built in 21 | * kernel instead of module. 22 | */ 23 | -module_param_string(path, fw_path_para, sizeof(fw_path_para), 0644); 24 | -MODULE_PARM_DESC(path, "customized firmware image search path with a higher priority than default path"); 25 | 26 | /* Don't inline this: 'struct kstat' is biggish */ 27 | static noinline_for_stack int fw_file_size(struct file *file) 28 | -------------------------------------------------------------------------------- /rules/mdp/build.patch: -------------------------------------------------------------------------------- 1 | diff -rupN mdp-git14042015-orig/Makefile mdp-git14042015/Makefile 2 | --- mdp-git14042015-orig/Makefile 2015-04-15 11:24:30.248019197 +0000 3 | +++ mdp-git14042015/Makefile 2015-04-15 11:25:14.344020245 +0000 4 | @@ -61,8 +61,8 @@ clean: 5 | install: 6 | install -d $(DESTDIR)$(PREFIX)/bin 7 | install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) 8 | - install -d $(DESTDIR)$(PREFIX)/share/man/man1 9 | - install -m 644 mdp.1 $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1 10 | + install -d $(DESTDIR)$(PREFIX)/man/man1 11 | + install -m 644 mdp.1 $(DESTDIR)$(PREFIX)/man/man1/$(TARGET).1 12 | 13 | uninstall: 14 | $(RM) $(DESTDIR)$(PREFIX)/$(TARGET) 15 | diff -rupN mdp-git14042015-orig/src/Makefile mdp-git14042015/src/Makefile 16 | --- mdp-git14042015-orig/src/Makefile 2015-04-15 11:24:30.248019197 +0000 17 | +++ mdp-git14042015/src/Makefile 2015-04-15 11:24:52.876019735 +0000 18 | @@ -38,7 +38,7 @@ ifeq ($(OS),Windows_NT) 19 | endif 20 | endif 21 | 22 | -ifeq ($(UNAME_S),Linux) 23 | +ifeq (0,1) 24 | LSB_RELEASE := $(shell lsb_release -si 2>/dev/null || echo not) 25 | ifneq ($(filter $(LSB_RELEASE),Debian Ubuntu LinuxMint CrunchBang),) 26 | CPPFLAGS += -I/usr/include/ncursesw 27 | -------------------------------------------------------------------------------- /rules/sdl/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.2.15" 2 | PKG_SRCS="http://libsdl.org/release/SDL-$PKG_VER.tar.gz" 3 | PKG_DESC="A graphics and audio abstraction layer library" 4 | PKG_DEPS="musl alsa-lib" 5 | 6 | get_latest() { 7 | wget -q -O - "https://www.libsdl.org/download-1.2.php" | 8 | grep "SDL version" | 9 | head -n 1 | 10 | awk '{print $7}' 11 | } 12 | 13 | build() { 14 | rm -f build-scripts/config.guess build-scripts/config.sub 15 | ln -s ../config.guess build-scripts/ 16 | ln -s ../config.sub build-scripts/ 17 | 18 | ./configure --prefix="" \ 19 | --mandir="/man" \ 20 | --enable-static \ 21 | --disable-shared \ 22 | --disable-loadso \ 23 | --disable-oss \ 24 | --enable-alsa \ 25 | --disable-dummyaudio \ 26 | --disable-video-dummy \ 27 | --enable-video-fbcon \ 28 | --disable-sdl-dlopen 29 | [ 0 -ne $? ] && return 1 30 | 31 | $MAKE 32 | } 33 | 34 | package() { 35 | $MAKE DESTDIR="$1" install 36 | install -D -m 644 README "$1/doc/sdl/README" 37 | install -m 644 README-SDL.txt "$1/doc/sdl/README-SDL.txt" 38 | install -m 644 CREDITS "$1/doc/sdl/CREDITS" 39 | install -m 644 COPYING "$1/doc/sdl/COPYING" 40 | } 41 | -------------------------------------------------------------------------------- /rules/mplayer/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.2" 2 | PKG_SRCS="http://www.mplayerhq.hu/MPlayer/releases/MPlayer-$PKG_VER.tar.xz" 3 | PKG_DESC="A multimedia player" 4 | PKG_DEPS="musl ncurses libpng libjpeg-turbo alsa-lib" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.mplayerhq.hu/design7/dload.html" | 8 | grep "\.tar" | 9 | grep -v "snapshot" | 10 | head -n 1 | 11 | cut -f 4 -d / | 12 | cut -f 2 -d \- | 13 | sed s~'\.tar.*'~~ 14 | } 15 | 16 | build() { 17 | ./configure --prefix="" \ 18 | --mandir="/man" \ 19 | --disable-mencoder \ 20 | --disable-iconv \ 21 | --disable-langinfo \ 22 | --disable-vidix \ 23 | --disable-pnm \ 24 | --disable-md5sum \ 25 | --enable-runtime-cpudetection \ 26 | --cc="$CC" \ 27 | --extra-cflags="$CFLAGS" \ 28 | --extra-ldflags="$LDFLAGS" 29 | [ 0 -ne $? ] && return 1 30 | 31 | $MAKE 32 | } 33 | 34 | package() { 35 | $MAKE DESTDIR="$1" install 36 | install -D -m 644 README "$1/doc/mplayer/README" 37 | install -m 644 AUTHORS "$1/doc/mplayer/AUTHORS" 38 | install -m 644 LICENSE "$1/doc/mplayer/LICENSE" 39 | install -m 644 Copyright "$1/doc/mplayer/Copyright" 40 | } 41 | -------------------------------------------------------------------------------- /rules/libxml2/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.9.2" 2 | PKG_SRCS="ftp://ftp.xmlsoft.org/libxml2/libxml2-$PKG_VER.tar.gz" 3 | PKG_DESC="A XML parsing library" 4 | PKG_DEPS="musl" 5 | 6 | get_latest() { 7 | wget -q -O - "ftp://xmlsoft.org/libxml2/" | 8 | grep "LATEST_LIBXML2_IS" | 9 | cut -f 4 -d _ | 10 | cut -f 1 -d \" 11 | } 12 | 13 | build() { 14 | ./configure --prefix="" \ 15 | --datarootdir="/share" \ 16 | --mandir="/man" \ 17 | --docdir="/doc" \ 18 | --disable-shared \ 19 | --enable-static \ 20 | --without-debug \ 21 | --without-ftp \ 22 | --without-http \ 23 | --without-legacy \ 24 | --without-html-dir \ 25 | --without-python \ 26 | --without-threads \ 27 | --without-modules \ 28 | --without-lzma 29 | [ 0 -ne $? ] && return 1 30 | $MAKE 31 | } 32 | 33 | package() { 34 | $MAKE DESTDIR="$1" install 35 | install -m 644 README "$1/doc/libxml2/README" 36 | install -m 644 ChangeLog "$1/doc/libxml2/ChangeLog" 37 | install -m 644 NEWS "$1/doc/libxml2/NEWS" 38 | install -m 644 AUTHORS "$1/doc/libxml2/AUTHORS" 39 | install -m 644 COPYING "$1/doc/libxml2/COPYING" 40 | } 41 | -------------------------------------------------------------------------------- /rules/ffmpeg/no-examples.patch: -------------------------------------------------------------------------------- 1 | diff -rup ffmpeg-2.2.9-orig/doc/Makefile ffmpeg-2.2.9/doc/Makefile 2 | --- ffmpeg-2.2.9-orig/doc/Makefile 2014-10-16 20:24:12.374954221 +0300 3 | +++ ffmpeg-2.2.9/doc/Makefile 2014-10-16 20:27:27.206950732 +0300 4 | @@ -106,7 +106,6 @@ doc/%.3: doc/%.pod $(GENTEXI) 5 | 6 | $(DOCS) doc/doxy/html: | doc/ 7 | $(DOC_EXAMPLES:%$(EXESUF)=%.o): | doc/examples 8 | -OBJDIRS += doc/examples 9 | 10 | DOXY_INPUT = $(addprefix $(SRC_PATH)/, $(INSTHEADERS) $(DOC_EXAMPLES:%$(EXESUF)=%.c) $(LIB_EXAMPLES:%$(EXESUF)=%.c)) 11 | 12 | diff -rup ffmpeg-2.2.9-orig/Makefile ffmpeg-2.2.9/Makefile 13 | --- ffmpeg-2.2.9-orig/Makefile 2014-10-16 20:24:12.372954221 +0300 14 | +++ ffmpeg-2.2.9/Makefile 2014-10-16 20:27:11.489951013 +0300 15 | @@ -147,10 +147,9 @@ install-progs: install-progs-yes $(AVPRO 16 | $(Q)mkdir -p "$(BINDIR)" 17 | $(INSTALL) -c -m 755 $(INSTPROGS) "$(BINDIR)" 18 | 19 | -install-data: $(DATA_FILES) $(EXAMPLES_FILES) 20 | - $(Q)mkdir -p "$(DATADIR)/examples" 21 | +install-data: $(DATA_FILES) 22 | + $(Q)mkdir -p "$(DATADIR)" 23 | $(INSTALL) -m 644 $(DATA_FILES) "$(DATADIR)" 24 | - $(INSTALL) -m 644 $(EXAMPLES_FILES) "$(DATADIR)/examples" 25 | 26 | uninstall: uninstall-libs uninstall-headers uninstall-progs uninstall-data 27 | 28 | -------------------------------------------------------------------------------- /rules/ghostscript/build: -------------------------------------------------------------------------------- 1 | PKG_VER="9.18" 2 | PKG_SRCS="http://downloads.ghostscript.com/public/ghostscript-$PKG_VER.tar.gz" 3 | PKG_DESC="A PostScript and PDF interpreter" 4 | PKG_DEPS="musl zlib libpng libjpeg-turbo" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.ghostscript.com/Releases.html" | 8 | grep "latest AGPL release" | 9 | cut -f 9 -d \ | 10 | cut -f 1 -d \< 11 | } 12 | 13 | build() { 14 | rm -rf zlib jpegxr tiff 15 | 16 | autoconf 17 | [ 0 -ne $? ] && return 1 18 | 19 | ./configure --prefix="" \ 20 | --mandir="/man" \ 21 | --disable-fontconfig \ 22 | --disable-freetype \ 23 | --disable-openjpeg \ 24 | --disable-gtk \ 25 | --disable-dynamic \ 26 | --with-system-libtiff \ 27 | --without-jbig2dec \ 28 | --with-drivers="BMP,JPEG,PBM,PNG,PS" \ 29 | --with-fontpath="/share/fonts/75dpi:/share/fonts/100dpi:/share/fonts/misc:/share/fonts/truetype:/share/fonts/cyrillic" 30 | [ 0 -ne $? ] && return 1 31 | 32 | $MAKE 33 | } 34 | 35 | package() { 36 | $MAKE DESTDIR="$1" install 37 | mkdir -p "$1/doc" 38 | ln -s ../share/ghostscript/$PKG_VER/doc "$1/doc/ghostscript" 39 | install -m 644 LICENSE "$1/doc/ghostscript/LICENSE" 40 | } 41 | -------------------------------------------------------------------------------- /rules/mpg123/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.22.4" 2 | PKG_SRCS="http://downloads.sourceforge.net/project/mpg123/mpg123/$PKG_VER/mpg123-$PKG_VER.tar.bz2" 3 | PKG_DESC="A MP3 player" 4 | PKG_DEPS="musl tinyalsa" 5 | 6 | get_latest() { 7 | wget -q -O - "http://sourceforge.net/projects/mpg123/files/mpg123/" | 8 | grep "Click to enter" | 9 | head -n 1 | 10 | awk '{print $4}' | 11 | sed s/\"$// 12 | } 13 | 14 | build() { 15 | CFLAGS="-D_POSIX_SOURCE -D_GNU_SOURCE $CFLAGS" \ 16 | ./configure --prefix="" \ 17 | --mandir="/man" \ 18 | --enable-static \ 19 | --disable-shared \ 20 | --enable-debug="no" \ 21 | --enable-gapless="no" \ 22 | --enable-ipv6="yes" \ 23 | --enable-network="yes" \ 24 | --with-audio="tinyalsa" \ 25 | --with-default-audio="tinyalsa" \ 26 | --with-optimization=0 27 | [ 0 -ne $? ] && return 1 28 | 29 | $MAKE 30 | } 31 | 32 | package() { 33 | $MAKE DESTDIR="$1" install 34 | install -D -m 644 README "$1/doc/mpg123/README" 35 | install -m 644 ChangeLog "$1/doc/mpg123/ChangeLog" 36 | install -m 644 NEWS "$1/doc/mpg123/NEWS" 37 | install -m 644 NEWS.libmpg123 "$1/doc/mpg123/NEWS.libmpg123" 38 | install -m 644 AUTHORS "$1/doc/mpg123/AUTHORS" 39 | install -m 644 COPYING "$1/doc/mpg123/COPYING" 40 | } 41 | -------------------------------------------------------------------------------- /rules/fuse/no-init.patch: -------------------------------------------------------------------------------- 1 | diff -rup fuse-2.9.3-orig/util/Makefile.in fuse-2.9.3/util/Makefile.in 2 | --- fuse-2.9.3-orig/util/Makefile.in 2014-10-17 13:34:42.329830440 +0300 3 | +++ fuse-2.9.3/util/Makefile.in 2014-10-17 13:35:44.837829320 +0300 4 | @@ -124,7 +124,7 @@ am__can_run_installinfo = \ 5 | esac 6 | ETAGS = etags 7 | CTAGS = ctags 8 | -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 9 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) 10 | ACLOCAL = @ACLOCAL@ 11 | AMTAR = @AMTAR@ 12 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 13 | @@ -685,16 +685,8 @@ install-exec-hook: 14 | install-exec-local: 15 | $(MKDIR_P) $(DESTDIR)$(MOUNT_FUSE_PATH) 16 | $(INSTALL_PROGRAM) $(builddir)/mount.fuse $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse 17 | - $(MKDIR_P) $(DESTDIR)$(INIT_D_PATH) 18 | - $(INSTALL_SCRIPT) $(srcdir)/init_script $(DESTDIR)$(INIT_D_PATH)/fuse 19 | - @if test -x /usr/sbin/update-rc.d; then \ 20 | - echo "/usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true"; \ 21 | - /usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true; \ 22 | - fi 23 | 24 | install-data-local: 25 | - $(MKDIR_P) $(DESTDIR)$(UDEV_RULES_PATH) 26 | - $(INSTALL_DATA) $(srcdir)/udev.rules $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules 27 | 28 | uninstall-local: 29 | rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse 30 | -------------------------------------------------------------------------------- /rules/gpm/static.patch: -------------------------------------------------------------------------------- 1 | diff -rup gpm-1.20.7-orig/src/Makefile.in gpm-1.20.7/src/Makefile.in 2 | --- gpm-1.20.7-orig/src/Makefile.in 2012-10-26 23:21:38.000000000 +0200 3 | +++ gpm-1.20.7/src/Makefile.in 2014-11-08 13:34:45.171940828 +0200 4 | @@ -79,7 +79,7 @@ prog/%: prog/%.o 5 | # | $(SED) '\''s/\($*\)\.o\([ :]*\)/\1.o \1.lo\2/g'\'' > $(DEPDIR)/$@' 6 | 7 | # Do it all! 8 | -all: gpm lib/libgpm.so.@abi_lev@ @LIBGPM_A@ $(PROG) 9 | +all: gpm @LIBGPM_A@ $(PROG) 10 | 11 | gpm: $(GOBJ) 12 | $(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $(GOBJ) @LIBS@ $(LIBS) -lm 13 | @@ -149,14 +149,14 @@ prog/gpm-root.c: $(srcdir)/prog/gpm-root 14 | $(YACC) $(YFLAGS) $< && mv y.tab.c prog/gpm-root.c 15 | 16 | # gpm-root needs an own rule, because gpm-root.c is not in $(srcdir) 17 | -prog/gpm-root: prog/gpm-root.c lib/libgpm.so.@abi_lev@ 18 | +prog/gpm-root: prog/gpm-root.c @LIBGPM_A@ 19 | $(CC) -I. @CPPFLAGS@ $(CPPFLAGS) @CFLAGS@ $(CFLAGS) -c -o $@.o $< 20 | - $(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $@.o @LIBS@ $(LIBS) lib/libgpm.so.@abi_lev@ 21 | + $(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $@.o @LIBS@ $(LIBS) @LIBGPM_A@ 22 | 23 | prog/mouse-test: prog/mouse-test.o mice.o twiddler.o synaptics.o prog/open_console.o 24 | $(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $^ @LIBS@ $(LIBS) -lm 25 | 26 | -$(PROG): lib/libgpm.so.@abi_lev@ 27 | +$(PROG): @LIBGPM_A@ 28 | 29 | # Subdirectory lib/ 30 | lib/libgpm.a: $(LOBJ) 31 | -------------------------------------------------------------------------------- /rules/tinyalsa/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup tinyalsa-orig/Makefile tinyalsa/Makefile 2 | --- tinyalsa-orig/Makefile 2013-12-27 17:27:14.052719655 +0000 3 | +++ tinyalsa/Makefile 2013-12-27 17:39:39.048739606 +0000 4 | @@ -1,28 +1,26 @@ 5 | -CFLAGS = -c -fPIC -Wall 6 | INC = include 7 | OBJECTS = mixer.o pcm.o 8 | -LIB = libtinyalsa.so 9 | -CROSS_COMPILE = 10 | +LIB = libtinyalsa.a 11 | 12 | all: $(LIB) tinyplay tinycap tinymix tinypcminfo 13 | 14 | tinyplay: $(LIB) tinyplay.o 15 | - $(CROSS_COMPILE)gcc tinyplay.o -L. -ltinyalsa -o tinyplay 16 | + $(CC) tinyplay.o -L. -ltinyalsa $(LDFLAGS) -o tinyplay 17 | 18 | tinycap: $(LIB) tinycap.o 19 | - $(CROSS_COMPILE)gcc tinycap.o -L. -ltinyalsa -o tinycap 20 | + $(CC) tinycap.o -L. -ltinyalsa $(LDFLAGS) -o tinycap 21 | 22 | tinymix: $(LIB) tinymix.o 23 | - $(CROSS_COMPILE)gcc tinymix.o -L. -ltinyalsa -o tinymix 24 | + $(CC) tinymix.o -L. -ltinyalsa $(LDFLAGS) -o tinymix 25 | 26 | tinypcminfo: $(LIB) tinypcminfo.o 27 | - $(CROSS_COMPILE)gcc tinypcminfo.o -L. -ltinyalsa -o tinypcminfo 28 | + $(CC) tinypcminfo.o -L. -ltinyalsa $(LDFLAGS) -o tinypcminfo 29 | 30 | $(LIB): $(OBJECTS) 31 | - $(CROSS_COMPILE)gcc -shared $(OBJECTS) -o $(LIB) 32 | + ar cr $(LIB) $(OBJECTS) 33 | 34 | .c.o: 35 | - $(CROSS_COMPILE)gcc $(CFLAGS) $< -I$(INC) 36 | + $(CC) -c $(CFLAGS) $< -I$(INC) 37 | 38 | clean: 39 | -rm $(LIB) $(OBJECTS) tinyplay.o tinyplay tinycap.o tinycap \ 40 | -------------------------------------------------------------------------------- /rules/musl/build: -------------------------------------------------------------------------------- 1 | PKG_VER="1.1.12" 2 | PKG_SRCS="http://www.musl-libc.org/releases/musl-$PKG_VER.tar.gz" 3 | PKG_DESC="A C library" 4 | PKG_DEPS="iana-etc linux-libre-headers" 5 | 6 | get_latest() { 7 | wget -q -O - "http://www.musl-libc.org/download.html" | 8 | grep "Mainline - " | 9 | cut -f 3 -d \ | 10 | cut -f 1 -d \< 11 | } 12 | 13 | build() { 14 | # build separately, musl-gcc with SYSROOT as the prefix 15 | ./configure --prefix="$SYSROOT" \ 16 | --libdir="$SYSROOT/lib" \ 17 | --includedir="$SYSROOT/include" \ 18 | --enable-gcc-wrapper 19 | [ 0 -ne $? ] && return 1 20 | 21 | $MAKE tools/musl-gcc lib/musl-gcc.specs 22 | [ 0 -ne $? ] && return 1 23 | 24 | mkdir host-tools 25 | mv tools/musl-gcc host-tools/ 26 | mv lib/musl-gcc.specs host-tools/ 27 | 28 | ./configure --prefix= \ 29 | --includedir="/include" \ 30 | --enable-optimize="" \ 31 | --disable-gcc-wrapper \ 32 | --disable-shared 33 | [ 0 -ne $? ] && return 1 34 | 35 | $MAKE 36 | } 37 | 38 | package() { 39 | $MAKE DESTDIR="$1" install 40 | 41 | install -D -m 755 host-tools/musl-gcc "$SYSROOT/bin/musl-gcc" 42 | install -D -m 644 host-tools/musl-gcc.specs "$SYSROOT/lib/musl-gcc.specs" 43 | 44 | install -D -m 644 README "$1/doc/musl/README" 45 | install -m 644 WHATSNEW "$1/doc/musl/WHATSNEW" 46 | install -m 644 COPYRIGHT "$1/doc/musl/COPYRIGHT" 47 | } 48 | -------------------------------------------------------------------------------- /hooks/0unneeded: -------------------------------------------------------------------------------- 1 | HOOK_NAME="remove unneeded files" 2 | 3 | run() { 4 | for i in ./share/gtk-doc \ 5 | ./share/aclocal \ 6 | ./share/info \ 7 | ./share/libxml2 \ 8 | ./share/info \ 9 | ./share/pixmaps \ 10 | ./share/applications \ 11 | ./share/bash-completion \ 12 | ./share/gdb \ 13 | ./share/glib-2.0 \ 14 | ./bin/gobject-* \ 15 | ./man/man1/gobject-* \ 16 | ./bin/gio-* \ 17 | ./man/man1/gio-* \ 18 | ./bin/glib-* \ 19 | ./man/man1/glib-* \ 20 | ./bin/gdbus* \ 21 | ./man/man1/gdbus* \ 22 | ./bin/gtester-* \ 23 | ./man/man1/gtester-* \ 24 | ./bin/gapplication \ 25 | ./man/man1/gapplication.1 \ 26 | ./bin/gsettings \ 27 | ./man/man1/gsettings.1 \ 28 | ./bin/gresource \ 29 | ./man/man1/gresource.1 \ 30 | ./bin/gtester \ 31 | ./man/man1/gtester.1 \ 32 | ./lib/locale \ 33 | ./lib/*.* \ 34 | ./lib/alsa-lib/smixer/* \ 35 | ./include \ 36 | ./lib/pkgconfig \ 37 | ./bin/*-config \ 38 | ./man/man1/*-config.1 \ 39 | ./man/man2 \ 40 | ./man/man3 41 | do 42 | rm -rvf "$i" 2>/dev/null 43 | done 44 | 45 | rmdir ./share/* 2>/dev/null 46 | rmdir ./man/* 2>/dev/null 47 | rmdir ./* 2>/dev/null 48 | } 49 | -------------------------------------------------------------------------------- /rules/stag/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup stag-git15042015-orig/Makefile stag-git15042015/Makefile 2 | --- stag-git15042015-orig/Makefile 2015-04-23 15:28:28.604836285 +0300 3 | +++ stag-git15042015/Makefile 2015-04-23 15:28:43.368836636 +0300 4 | @@ -1,25 +1,24 @@ 5 | CC ?= gcc 6 | -CFLAGS=-Wall -Werror -Wextra -std=c99 -pedantic -Wno-unused-parameter 7 | -# D_BSD_SOURCE for strsep 8 | -LIBS=-lncurses -lm -D_DEFAULT_SOURCE 9 | -PREFIX ?= /usr/local 10 | +CFLAGS+=-Wall -Werror -Wextra -std=c99 -pedantic -Wno-unused-parameter -D_BSD_SOURCE 11 | +LIBS+=-lncurses -lm -D_DEFAULT_SOURCE 12 | +PREFIX ?= 13 | 14 | .PHONY: install uninstall clean 15 | 16 | all: stag 17 | 18 | stag: 19 | - $(CC) $(CFLAGS) stag.c view.c data.c -o stag $(LIBS) 20 | + $(CC) $(CFLAGS) stag.c view.c data.c -o stag $(LDFLAGS) $(LIBS) 21 | 22 | install: 23 | - install -d "$(DESTDIR)$(PREFIX)/bin" 24 | - install -d "$(DESTDIR)$(PREFIX)/share/man/man1" 25 | - install -m755 stag "$(DESTDIR)$(PREFIX)/bin/stag" 26 | - install -m644 doc/stag.1 "$(DESTDIR)$(PREFIX)/share/man/man1/stag.1" 27 | + install -d "$(DESTDIR)/bin" 28 | + install -d "$(DESTDIR)$(PREFIX)/man/man1" 29 | + install -m755 stag "$(DESTDIR)/bin/stag" 30 | + install -m644 doc/stag.1 "$(DESTDIR)$(PREFIX)/man/man1/stag.1" 31 | 32 | uninstall: 33 | rm "$(DESTDIR)$(PREFIX)/bin/stag" 34 | - rm "$(DESTDIR)$(PREFIX)/share/man/man1/stag.1" 35 | + rm "$(DESTDIR)$(PREFIX)/man/man1/stag.1" 36 | 37 | clean: 38 | rm -f *.o stag 39 | -------------------------------------------------------------------------------- /rules/surfraw/no-perl.patch: -------------------------------------------------------------------------------- 1 | diff -rup surfraw-2.2.9-orig/elvi/Makefile.in surfraw-2.2.9/elvi/Makefile.in 2 | --- surfraw-2.2.9-orig/elvi/Makefile.in 2015-02-10 20:59:03.338368079 +0200 3 | +++ surfraw-2.2.9/elvi/Makefile.in 2015-02-10 21:31:29.042414321 +0200 4 | @@ -153,7 +153,6 @@ dist_elvi_SCRIPTS = \ 5 | ctan \ 6 | currency \ 7 | cve \ 8 | - debbugs \ 9 | debcodesearch \ 10 | debcontents \ 11 | deblists \ 12 | @@ -193,7 +192,6 @@ dist_elvi_SCRIPTS = \ 13 | jquery \ 14 | l1sp \ 15 | lastfm \ 16 | - leodict \ 17 | lsm \ 18 | macports \ 19 | mathworld \ 20 | @@ -205,7 +203,6 @@ dist_elvi_SCRIPTS = \ 21 | ntrs \ 22 | openbsd \ 23 | openports \ 24 | - opensearch \ 25 | oraclesearch \ 26 | pasearch \ 27 | pgdoc \ 28 | diff -rup surfraw-2.2.9-orig/surfraw.IN surfraw-2.2.9/surfraw.IN 29 | --- surfraw-2.2.9-orig/surfraw.IN 2015-02-10 20:59:03.334368079 +0200 30 | +++ surfraw-2.2.9/surfraw.IN 2015-02-10 21:31:13.290413947 +0200 31 | @@ -160,7 +160,13 @@ setoptyn () { 32 | 33 | quote_ifs () { 34 | if [ -z "$1" ]; then return; fi 35 | - perl -e '$ifs=$ENV{IFS} || " "; $arg=shift;if($arg =~/[$ifs]/) { $arg="\"$arg\""; } print "$arg\n"; ' -- "$1" 36 | + for i in $@ 37 | + do 38 | + case "$i" in 39 | + *$IFS*) echo "\"$i\"";; 40 | + *) echo "$i";; 41 | + esac 42 | + done 43 | } 44 | 45 | bookmark_file_search () { 46 | -------------------------------------------------------------------------------- /rules/skeleton/etc/init.d/network: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | start) 5 | echo -n "Configuring networking ..." 6 | 7 | # set up a loopback interface 8 | ifconfig lo 127.0.0.1 up 9 | route add -net 127.0.0.0 netmask 255.0.0.0 dev lo 10 | 11 | # turn on ethernet 12 | ifconfig eth0 up > /dev/null 2>&1 13 | dhcpcd -L -t 3 eth0 > /dev/null 2>&1 14 | 15 | # turn on the wireless interface 16 | ifconfig wlan0 up > /dev/null 2>&1 17 | rfkill unblock wifi > /dev/null 2>&1 18 | 19 | if [ -f /etc/wpa_supplicant.conf ] 20 | then 21 | # run wpa_supplicant 22 | wpa_supplicant -B \ 23 | -iwlan0 \ 24 | -c/etc/wpa_supplicant.conf \ 25 | -P/run/wpa_supplicant.pid > /dev/null 2>&1 26 | 27 | # run dhcpcd 28 | dhcpcd -L -t 5 wlan0 > /dev/null 2>&1 29 | fi 30 | 31 | echo " done." 32 | ;; 33 | 34 | stop) 35 | if [ -f /run/wpa_supplicant.pid ] 36 | then 37 | # stop dhcpcd 38 | dhcpcd -k wlan0 > /dev/null 2>&1 39 | 40 | # stop wpa_supplicant 41 | kill $(cat /run/wpa_supplicant.pid) > /dev/null 2>&1 42 | rm /run/wpa_supplicant.pid 43 | fi 44 | 45 | # bring down the wireless interface 46 | rfkill block wifi > /dev/null 2>&1 47 | ifconfig wlan0 down > /dev/null 2>&1 48 | 49 | # bring down ethernet 50 | dhcpcd -k eth0 > /dev/null 2>&1 51 | ifconfig eth0 down > /dev/null 2>&1 52 | 53 | # disable the loopback interface 54 | ifconfig lo down 55 | ;; 56 | esac 57 | -------------------------------------------------------------------------------- /rules/ffmpeg/build: -------------------------------------------------------------------------------- 1 | PKG_VER="2.2.16" 2 | PKG_SRCS="http://www.ffmpeg.org/releases/ffmpeg-$PKG_VER.tar.bz2" 3 | PKG_DESC="A complete multimedia solution" 4 | PKG_DEPS="musl zlib alsa-lib sdl" 5 | 6 | get_latest() { 7 | wget -q -O - "http://git.videolan.org/?p=ffmpeg.git;a=blob_plain;f=RELEASE;hb=refs/heads/release/2.2" 8 | } 9 | 10 | build() { 11 | ./configure --prefix="/" \ 12 | --mandir="/man" \ 13 | --enable-gpl \ 14 | --enable-static \ 15 | --disable-shared \ 16 | --enable-small \ 17 | --disable-ffserver \ 18 | --enable-postproc \ 19 | --disable-network \ 20 | --cc="$CC" \ 21 | --ld="$CC" \ 22 | --cpu="$ARCH" \ 23 | --extra-cflags="-D_BSD_SOURCE $CFLAGS" \ 24 | --extra-ldflags="$LDFLAGS" \ 25 | --disable-debug 26 | [ 0 -ne $? ] && return 1 27 | 28 | $MAKE 29 | } 30 | 31 | package() { 32 | $MAKE DESTDIR="$1" install 33 | install -D -m 644 README "$1/doc/ffmpeg/README" 34 | install -m 644 LICENSE "$1/doc/ffmpeg/LICENSE" 35 | install -m 644 COPYING.GPLv2 "$1/doc/ffmpeg/COPYING.GPLv2" 36 | install -m 644 COPYING.GPLv3 "$1/doc/ffmpeg/COPYING.GPLv3" 37 | install -m 644 COPYING.LGPLv2.1 "$1/doc/ffmpeg/COPYING.LGPLv2.1" 38 | install -m 644 COPYING.LGPLv3 "$1/doc/ffmpeg/COPYING.LGPLv3" 39 | install -m 644 Changelog "$1/doc/ffmpeg/Changelog" 40 | install -m 644 CREDITS "$1/doc/ffmpeg/CREDITS" 41 | install -m 644 MAINTAINERS "$1/doc/ffmpeg/MAINTAINERS" 42 | } 43 | -------------------------------------------------------------------------------- /rules/vifm/no-scripts.patch: -------------------------------------------------------------------------------- 1 | diff -rup vifm-0.8-orig/src/Makefile.in vifm-0.8/src/Makefile.in 2 | --- vifm-0.8-orig/src/Makefile.in 2015-07-11 11:05:04.557977851 +0300 3 | +++ vifm-0.8/src/Makefile.in 2015-07-11 11:15:26.069059821 +0300 4 | @@ -53,7 +53,7 @@ PRE_UNINSTALL = : 5 | POST_UNINSTALL = : 6 | build_triplet = @build@ 7 | host_triplet = @host@ 8 | -bin_PROGRAMS = vifm$(EXEEXT) vifmrc-converter$(EXEEXT) 9 | +bin_PROGRAMS = vifm$(EXEEXT) 10 | subdir = src 11 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 12 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 13 | @@ -172,8 +172,8 @@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUD 14 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 15 | CCLD = $(CC) 16 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 17 | -SOURCES = $(vifm_SOURCES) $(vifmrc_converter_SOURCES) 18 | -DIST_SOURCES = $(vifm_SOURCES) $(vifmrc_converter_SOURCES) 19 | +SOURCES = $(vifm_SOURCES) 20 | +DIST_SOURCES = $(vifm_SOURCES) 21 | am__can_run_installinfo = \ 22 | case $$AM_UPDATE_INFO_DIR in \ 23 | n|no|NO) false;; \ 24 | @@ -335,11 +335,9 @@ pkgdata_DATA = ../data/vifmrc \ 25 | ../data/vifmrc-osx \ 26 | ../data/vifm-help.txt 27 | 28 | -bin_SCRIPTS = vifm-pause vifm-convert-dircolors 29 | +bin_SCRIPTS = vifm-pause 30 | man_MANS = ../data/vifm.1 \ 31 | - ../data/vifm-pause.1 \ 32 | - ../data/vifmrc-converter.1 \ 33 | - ../data/vifm-convert-dircolors.1 34 | + ../data/vifm-pause.1 35 | 36 | MOSTLYCLEANFILES = compile_info.c \ 37 | ../data/vifm-help.txt \ 38 | -------------------------------------------------------------------------------- /rules/linux-libre/auto-vga.patch: -------------------------------------------------------------------------------- 1 | diff -rup linux-3.14.19-orig/arch/x86/boot/video.c linux-3.14.19/arch/x86/boot/video.c 2 | --- linux-3.14.19-orig/arch/x86/boot/video.c 2014-09-21 20:11:20.662964171 +0300 3 | +++ linux-3.14.19/arch/x86/boot/video.c 2014-09-22 19:22:39.520944994 +0300 4 | @@ -312,6 +312,39 @@ static void restore_screen(void) 5 | store_cursor_position(); 6 | } 7 | 8 | +static u16 guess_mode(void) { 9 | + int i; 10 | + unsigned long max_pixels = 0UL; 11 | + u16 max_depth = 0; 12 | + u16 mode = ASK_VGA; 13 | + struct card_info *card; 14 | + struct mode_info *mi; 15 | + 16 | + for (card = video_cards; card < video_cards_end; card++) { 17 | + mi = card->modes; 18 | + for (i = 0; i < card->nmodes; i++, mi++) { 19 | + int visible = mi->x && mi->y; 20 | + u16 mode_id = mi->mode ? mi->mode : 21 | + (mi->y << 8)+mi->x; 22 | + 23 | + if (!visible) 24 | + continue; /* Hidden mode */ 25 | + 26 | + unsigned long pixels = mi->x * mi->y; 27 | + if (pixels > max_pixels) { 28 | + max_pixels = pixels; 29 | + max_depth = mi->depth; 30 | + mode = mode_id; 31 | + } else if ((pixels == max_pixels) && (mi->depth > max_depth)) { 32 | + max_depth = mi->depth; 33 | + mode = mode_id; 34 | + } 35 | + } 36 | + } 37 | + 38 | + return mode; 39 | +} 40 | + 41 | void set_video(void) 42 | { 43 | u16 mode = boot_params.hdr.vid_mode; 44 | @@ -322,6 +355,9 @@ void set_video(void) 45 | save_screen(); 46 | probe_cards(0); 47 | 48 | + if (mode == ASK_VGA) 49 | + mode = guess_mode(); 50 | + 51 | for (;;) { 52 | if (mode == ASK_VGA) 53 | mode = mode_menu(); 54 | -------------------------------------------------------------------------------- /rules/mandoc/bin/man: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # man: displays manual pages 4 | # this script replaces man (http://primates.ximian.com/~flucifredi/man/) and 5 | # man-db (http://www.nongnu.org/man-db/), which have many features and depend on 6 | # groff (http://www.gnu.org/software/groff/), with a small alternative that uses 7 | # mandoc (http://mdocml.bsd.lv/) 8 | 9 | # parse the command-line 10 | case $# in 11 | 2) 12 | if [ "-k" = "$1" ] 13 | then 14 | category="" 15 | name="$2" 16 | should_display=0 17 | else 18 | category="$1" 19 | name="$2" 20 | should_display=1 21 | fi 22 | ;; 23 | 24 | 1) 25 | category="" 26 | name="$1" 27 | should_display=1 28 | ;; 29 | 30 | *) 31 | exit 1 32 | ;; 33 | esac 34 | 35 | # if no category was specified, check all 36 | if [ -z "$category" ] 37 | then 38 | categories="1 2 3 4 5 6 7 8 9" 39 | else 40 | categories="$category" 41 | fi 42 | 43 | path="" 44 | for category in $categories 45 | do 46 | # find the man page 47 | if [ 1 -eq $should_display ] 48 | then 49 | if [ -e "/man/man$category/$name.$category" ] 50 | then 51 | viewer="$(which less)" 52 | if [ -n "$viewer" ] 53 | then 54 | clear 55 | mandoc "/man/man$category/$name.$category" | $viewer 56 | else 57 | mandoc "/man/man$category/$name.$category" 58 | fi 59 | exit 0 60 | fi 61 | else 62 | [ ! -e /man/man$category ] && continue 63 | cd /man/man$category 64 | for page in *.$category* 65 | do 66 | case "$page" in 67 | *$name*) 68 | echo "$page ($category)" 69 | ;; 70 | esac 71 | done 72 | fi 73 | done 74 | 75 | exit 1 76 | -------------------------------------------------------------------------------- /rules/atop/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup atop-2.2-3-orig/Makefile atop-2.2-3/Makefile 2 | --- atop-2.2-3-orig/Makefile 2015-06-30 18:19:18.181320319 +0300 3 | +++ atop-2.2-3/Makefile 2015-06-30 18:22:06.366154302 +0300 4 | @@ -132,10 +132,6 @@ genericinstall: atop atopacctd 5 | then mkdir -p $(DESTDIR)$(MAN5PATH); fi 6 | if [ ! -d $(DESTDIR)$(MAN8PATH) ]; \ 7 | then mkdir -p $(DESTDIR)$(MAN8PATH); fi 8 | - if [ ! -d $(DESTDIR)$(CRNPATH) ]; \ 9 | - then mkdir -p $(DESTDIR)$(CRNPATH); fi 10 | - if [ ! -d $(DESTDIR)$(ROTPATH) ]; \ 11 | - then mkdir -p $(DESTDIR)$(ROTPATH); fi 12 | # 13 | cp atop $(DESTDIR)$(BINPATH)/atop 14 | chown root $(DESTDIR)$(BINPATH)/atop 15 | @@ -144,18 +140,10 @@ genericinstall: atop atopacctd 16 | cp atopacctd $(DESTDIR)$(SBINPATH)/atopacctd 17 | chown root $(DESTDIR)$(SBINPATH)/atopacctd 18 | chmod 0700 $(DESTDIR)$(SBINPATH)/atopacctd 19 | - cp atop $(DESTDIR)$(BINPATH)/atop-$(VERS) 20 | - ln -sf atop-$(VERS) $(DESTDIR)$(BINPATH)/atopsar-$(VERS) 21 | - cp atop.daily $(DESTDIR)$(SCRPATH) 22 | - chmod 0711 $(DESTDIR)$(SCRPATH)/atop.daily 23 | cp man/atop.1 $(DESTDIR)$(MAN1PATH) 24 | cp man/atopsar.1 $(DESTDIR)$(MAN1PATH) 25 | cp man/atoprc.5 $(DESTDIR)$(MAN5PATH) 26 | cp man/atopacctd.8 $(DESTDIR)$(MAN8PATH) 27 | - cp psaccs_atop $(DESTDIR)$(ROTPATH)/psaccs_atop 28 | - cp psaccu_atop $(DESTDIR)$(ROTPATH)/psaccu_atop 29 | - touch $(DESTDIR)$(LOGPATH)/dummy_before 30 | - touch $(DESTDIR)$(LOGPATH)/dummy_after 31 | 32 | ########################################################################## 33 | 34 | -------------------------------------------------------------------------------- /rules/fbv/build.patch: -------------------------------------------------------------------------------- 1 | diff -rupN fbv-1.0b-orig/config.h fbv-1.0b/config.h 2 | --- fbv-1.0b-orig/config.h 1970-01-01 02:00:00.000000000 +0200 3 | +++ fbv-1.0b/config.h 2014-11-07 17:55:09.497994081 +0200 4 | @@ -0,0 +1,6 @@ 5 | +#define IDSTRING "fbv 1.0b, s-tech" 6 | +#define DEFAULT_FRAMEBUFFER "/dev/fb0" 7 | +#define FBV_SUPPORT_GIF 8 | +#define FBV_SUPPORT_JPEG 9 | +#define FBV_SUPPORT_PNG 10 | +#define FBV_SUPPORT_BMP 11 | diff -rupN fbv-1.0b-orig/Make.conf fbv-1.0b/Make.conf 12 | --- fbv-1.0b-orig/Make.conf 2014-11-07 13:50:09.513976567 +0200 13 | +++ fbv-1.0b/Make.conf 2014-11-07 17:56:01.424993151 +0200 14 | @@ -1,2 +1,4 @@ 15 | -error: 16 | - @echo Please run ./configure first... 17 | +bindir = /bin 18 | +mandir = /man 19 | + 20 | +LIBS += $(shell $(PKG_CONFIG) --libs libpng) -ljpeg -lgif 21 | diff -rupN fbv-1.0b-orig/Makefile fbv-1.0b/Makefile 22 | --- fbv-1.0b-orig/Makefile 2014-11-07 13:50:09.513976567 +0200 23 | +++ fbv-1.0b/Makefile 2014-11-07 17:56:37.487992505 +0200 24 | @@ -5,8 +5,9 @@ 25 | 26 | include Make.conf 27 | 28 | -CC = gcc 29 | -CFLAGS = -O2 -Wall -D_GNU_SOURCE 30 | +CC ?= gcc 31 | +CFLAGS ?= -O2 32 | +CFLAGS += -Wall -D_GNU_SOURCE 33 | 34 | SOURCES = main.c jpeg.c gif.c png.c bmp.c fb_display.c transforms.c 35 | OBJECTS = ${SOURCES:.c=.o} 36 | @@ -28,8 +29,8 @@ distclean: clean 37 | rm -f $(OUT) config.h 38 | 39 | install: $(OUT) 40 | - cp $(OUT) $(DESTDIR)$(bindir) 41 | - gzip -9c $(OUT).1 > $(DESTDIR)$(mandir)/man1/$(OUT).1.gz 42 | + install -D -m 755 $(OUT) $(DESTDIR)$(bindir)/$(OUT) 43 | + install -D -m 644 $(OUT).1 $(DESTDIR)$(mandir)/man1/$(OUT).1 44 | 45 | uninstall: $(DESTDIR)$(bindir)/$(OUT) 46 | rm -f $(DESTDIR)$(bindir)/$(OUT) 47 | -------------------------------------------------------------------------------- /rules/pigz/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup pigz-2.3.3-orig/Makefile pigz-2.3.3/Makefile 2 | --- pigz-2.3.3-orig/Makefile 2015-07-10 12:02:49.340235526 +0300 3 | +++ pigz-2.3.3/Makefile 2015-07-10 12:03:25.166316641 +0300 4 | @@ -1,11 +1,11 @@ 5 | CC=cc 6 | CFLAGS=-O3 -Wall -Wextra 7 | -LDFLAGS=-lz 8 | +LDFLAGS= 9 | ZOPFLI=zopfli/src/zopfli/ 10 | # use gcc and gmake on Solaris 11 | 12 | pigz: pigz.o yarn.o try.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o ${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o ${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o 13 | - $(CC) $(LDFLAGS) -o pigz $^ -lpthread -lm 14 | + $(CC) $(LDFLAGS) -o pigz $^ -lpthread -lm -lz 15 | ln -f pigz unpigz 16 | 17 | pigz.o: pigz.c yarn.h try.h ${ZOPFLI}deflate.h ${ZOPFLI}util.h 18 | @@ -35,7 +35,7 @@ ${ZOPFLI}katajainen.o: ${ZOPFLI}katajain 19 | dev: pigz pigzt pigzn 20 | 21 | pigzt: pigzt.o yarnt.o try.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o ${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o ${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o 22 | - $(CC) $(LDFLAGS) -o pigzt $^ -lpthread -lm 23 | + $(CC) $(LDFLAGS) -o pigzt $^ -lpthread -lm -lz 24 | 25 | pigzt.o: pigz.c yarn.h try.h 26 | $(CC) $(CFLAGS) -DDEBUG -g -c -o pigzt.o pigz.c 27 | @@ -44,7 +44,7 @@ yarnt.o: yarn.c yarn.h 28 | $(CC) $(CFLAGS) -DDEBUG -g -c -o yarnt.o yarn.c 29 | 30 | pigzn: pigzn.o tryn.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o ${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o ${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o 31 | - $(CC) $(LDFLAGS) -o pigzn $^ -lm 32 | + $(CC) $(LDFLAGS) -o pigzn $^ -lm -lz 33 | 34 | pigzn.o: pigz.c try.h 35 | $(CC) $(CFLAGS) -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c 36 | -------------------------------------------------------------------------------- /scripts/create_vm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # create an image 4 | raw_im="$(mktemp -u)" 5 | dd if=/dev/zero of="$raw_im" bs=1G count=$2 6 | 7 | # create a DOS partition table with one primary partition 8 | echo "o 9 | n 10 | 11 | 12 | 13 | 14 | w 15 | " | fdisk "$raw_im" 16 | 17 | # make the partition bootable 18 | echo "a 19 | 1 20 | w 21 | " | fdisk "$raw_im" 22 | 23 | # get the partition offset 24 | offset=$((512 * $(fdisk -l "$raw_im" | tail -n 1 | awk '{print $3}'))) 25 | 26 | # create a file system on the partition 27 | part_dev="$(losetup --show -f -o $offset "$raw_im")" 28 | mkfs.ext4 "$part_dev" 29 | 30 | # mount the ISO image 31 | iso_mnt="$(mktemp -d)" 32 | mount -t iso9660 -o loop,ro "$1" "$iso_mnt" 33 | 34 | # mount the partition 35 | part_mnt="$(mktemp -d)" 36 | mount -t ext4 "$part_dev" "$part_mnt" 37 | 38 | # mount the entire image 39 | image_dev="$(losetup --show -f "$raw_im")" 40 | 41 | # install extlinux 42 | extlinux -i "$part_mnt" 43 | cat /usr/lib/extlinux/mbr.bin > "$image_dev" 44 | 45 | # copy the ISO image contents to the partition 46 | cp -a "$iso_mnt/boot" "$part_mnt/" 47 | echo "DEFAULT rlsd 48 | PROMPT 0 49 | TIMEOUT 0 50 | 51 | LABEL rlsd 52 | KERNEL /boot/bzImage 53 | INITRD /boot/initrd.xz 54 | APPEND home=auto" > "$part_mnt/syslinux.cfg" 55 | 56 | # clean up 57 | losetup -d "$image_dev" 58 | 59 | umount "$part_mnt" 60 | rmdir "$part_mnt" 61 | losetup -d "$part_dev" 62 | 63 | umount "$iso_mnt" 64 | rmdir "$iso_mnt" 65 | 66 | # convert the raw image 67 | conv_im="$(mktemp -u)" 68 | for format in qcow2 vdi 69 | do 70 | qemu-img convert -f raw -O $format "$raw_im" "$conv_im" 71 | cat "$conv_im" | lzip -9 > "images/vm/$(basename "$1" .iso)-$2G.$format.lz" 72 | done 73 | rm -f "$conv_im" "$raw_im" 74 | -------------------------------------------------------------------------------- /rules/atop/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup atop-2.1-orig/showgeneric.c atop-2.1/showgeneric.c 2 | --- atop-2.1-orig/showgeneric.c 2015-04-09 10:37:21.079309908 +0300 3 | +++ atop-2.1/showgeneric.c 2015-04-09 10:40:58.855949295 +0300 4 | @@ -268,7 +268,6 @@ static const char rcsid[] = "$Id: showge 5 | #include 6 | #include 7 | #include 8 | -#include 9 | #include 10 | #include 11 | #include 12 | diff -rup atop-2.1-orig/showlinux.c atop-2.1/showlinux.c 13 | --- atop-2.1-orig/showlinux.c 2015-04-09 10:37:21.079309908 +0300 14 | +++ atop-2.1/showlinux.c 2015-04-09 10:41:06.415949140 +0300 15 | @@ -274,7 +274,6 @@ static const char rcsid[] = "$Id: showli 16 | #include 17 | #include 18 | #include 19 | -#include 20 | #include 21 | #include 22 | #include 23 | diff -rup atop-2.1-orig/showprocs.c atop-2.1/showprocs.c 24 | --- atop-2.1-orig/showprocs.c 2015-04-09 10:37:21.079309908 +0300 25 | +++ atop-2.1/showprocs.c 2015-04-09 10:41:10.959949047 +0300 26 | @@ -94,7 +94,6 @@ static const char rcsid[] = "$Id: showpr 27 | #include 28 | #include 29 | #include 30 | -#include 31 | #include 32 | #include 33 | #include 34 | diff -rup atop-2.1-orig/showsys.c atop-2.1/showsys.c 35 | --- atop-2.1-orig/showsys.c 2015-04-09 10:37:21.079309908 +0300 36 | +++ atop-2.1/showsys.c 2015-04-09 10:41:16.531948932 +0300 37 | @@ -80,7 +80,6 @@ static const char rcsid[] = "XXXXXX"; 38 | #include 39 | #include 40 | #include 41 | -#include 42 | #include 43 | #include 44 | #include 45 | -------------------------------------------------------------------------------- /rules/lynx/config.patch: -------------------------------------------------------------------------------- 1 | diff -rup lynx2-8-8-orig/lynx.cfg lynx2-8-8/lynx.cfg 2 | --- lynx2-8-8-orig/lynx.cfg 2015-01-30 23:19:38.913069120 +0200 3 | +++ lynx2-8-8/lynx.cfg 2015-01-30 23:19:46.533069302 +0200 4 | @@ -90,7 +90,8 @@ 5 | # 6 | # Normally we expect you will connect to a remote site, e.g., the Lynx starting 7 | # site: 8 | -STARTFILE:http://lynx.isc.org/ 9 | +.ex 10 | +#STARTFILE:http://lynx.isc.org/ 11 | # 12 | # As an alternative, you may want to use a local URL. A good choice for this is 13 | # the user's home directory: 14 | diff -rup lynx2-8-8-orig/userdefs.h lynx2-8-8/userdefs.h 15 | --- lynx2-8-8-orig/userdefs.h 2015-01-30 23:19:38.921069121 +0200 16 | +++ lynx2-8-8/userdefs.h 2015-01-30 23:20:05.297069747 +0200 17 | @@ -483,7 +483,7 @@ 18 | * Normally we expect you will connect to a remote site, e.g., the Lynx starting 19 | * site: 20 | */ 21 | -#define STARTFILE "http://lynx.isc.org/" 22 | +#define STARTFILE "file://localhost/doc/rlsd/index.html" 23 | /* 24 | * As an alternative, you may want to use a local URL. A good choice for this 25 | * is the user's home directory: 26 | @@ -921,7 +921,7 @@ 27 | * The default defined here can be changed in lynx.cfg, and .lynxrc, or 28 | * toggled via the -accept_all_cookies command line switch. 29 | */ 30 | -#define ACCEPT_ALL_COOKIES FALSE 31 | +#define ACCEPT_ALL_COOKIES TRUE 32 | 33 | /**************************************************************** 34 | * Section 2. Things that you probably want to change or review 35 | @@ -1549,8 +1549,8 @@ 36 | #else 37 | /* have to define something... */ 38 | #undef SYSTEM_MAIL 39 | -#define SYSTEM_MAIL "sendmail" 40 | -#define SYSTEM_MAIL_FLAGS "-t -oi" 41 | +#define SYSTEM_MAIL "msmtp" 42 | +#define SYSTEM_MAIL_FLAGS "-t" 43 | #endif /* _WINDOWS */ 44 | 45 | /* 46 | -------------------------------------------------------------------------------- /rules/snownews/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup snownews-1.5.12-orig/configure snownews-1.5.12/configure 2 | --- snownews-1.5.12-orig/configure 2015-01-30 15:20:41.394232819 +0200 3 | +++ snownews-1.5.12/configure 2015-01-30 15:20:47.358232961 +0200 4 | @@ -12,7 +12,7 @@ my $xmlldflags = `xml2-config --libs`; 5 | chomp($xmlldflags); 6 | 7 | my $prefix = "/usr/local"; 8 | -my $cflags = "-Wall -Wno-format-y2k -O2 -DLOCALEPATH=\"\\\"\$(LOCALEPATH)\\\"\" -DOS=\\\"$os\\\" $xmlcflags \$(EXTRA_CFLAGS) "; 9 | +my $cflags = "-Wall -Wno-format-y2k -DLOCALEPATH=\"\\\"\$(LOCALEPATH)\\\"\" -DOS=\\\"$os\\\" $xmlcflags \$(EXTRA_CFLAGS) "; 10 | my $ldflags = "-lncurses -lcrypto $xmlldflags \$(EXTRA_LDFLAGS) "; 11 | 12 | my $use_nls = 1; 13 | diff -rup snownews-1.5.12-orig/Makefile snownews-1.5.12/Makefile 14 | --- snownews-1.5.12-orig/Makefile 2015-01-30 15:20:41.398232819 +0200 15 | +++ snownews-1.5.12/Makefile 2015-01-30 15:21:07.874233449 +0200 16 | @@ -1,8 +1,8 @@ 17 | -CC= gcc 18 | +CC?= gcc 19 | MAKE= make 20 | INSTALL= install 21 | -LOCALEPATH= $(PREFIX)/share/locale 22 | -MANPATH= $(PREFIX)/share/man 23 | +LOCALEPATH= $(PREFIX)/locale 24 | +MANPATH= $(PREFIX)/man 25 | 26 | ### Compiler/linker flags ### 27 | ### Generated via configure ### 28 | @@ -20,11 +20,11 @@ DISTFILES = AUTHOR COPYING CREDITS Chang 29 | config.h version.h main.h interface.h netio.h xmlparse.h updatecheck.h os-support.h conversions.h dialog.h ui-support.h categories.h about.h cookies.h setup.h net-support.h digcalc.h filters.h io-internal.h zlib_interface.h support.h 30 | 31 | ### Translations ### 32 | -LOCALES= de es fr it nl ru sl se zh_TW zh_CN pt_BR pl ja be@latin uk_UA 33 | +LOCALES= 34 | LOC= po 35 | 36 | ### Manpages ## 37 | -LANGS= de fr it nl ru_RU.KOI8-R 38 | +LANGS= 39 | MAN= doc/man 40 | 41 | ### Compile ### 42 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | _ _ 2 | ____| |___ __| | 3 | | __| / __|/ _ | 4 | | | | \__ \ (_| | 5 | |_| |_|___/\__,_| 6 | 7 | RLSD, the Retro Linux-libre Software Distribution, is a small, "live" operating 8 | system with GNU/Linux-libre (http://linux-libre.fsfla.org/), for the x86 and 9 | x86_64 architectures. 10 | 11 | RLSD consists of free software: software that respects the user's freedom. RLSD 12 | is free to study, modify and share. To read more about free software, see 13 | http://www.gnu.org/philosophy/free-sw.html. 14 | 15 | For more information, see the project homepage (http://rlsd2.dimakrasner.com/). 16 | 17 | This is an automated build system that builds RLSD and its entire package 18 | repository from source, through Trisquel (http://www.trisquel.info/). The 19 | process of setting up a build environment is automated as well. 20 | 21 | Building 22 | ======== 23 | 24 | To build RLSD: 25 | - Install QEMU (http://www.qemu.org/) and Packer (https://www.packer.io/) 26 | - Set up the build environment in a VM: 27 | cd packer/; packer build packer-x86_64.json 28 | or: 29 | cd packer/; packer build packer-x86.json 30 | - Start the VM: 31 | qemu-system-x86_64 -m 4096 -hda x86_64/rlsd.qcow2 -enable-kvm 32 | or: 33 | qemu-system-i386 -cpu pentium2 -m 4096 -hda x86/rlsd.qcow2 -enable-kvm 34 | - Inside it: 35 | cd rlsd; ./scripts/build_all 36 | 37 | Credits and Legal Information 38 | ============================= 39 | 40 | RLSD consists of many packages; each has its own license, detailed under RLSD's 41 | /doc. 42 | 43 | The rest of RLSD (its build system, file system skeleton, etc') is free and 44 | unencumbered software released under the terms of the MIT license; see COPYING 45 | for the license text. 46 | 47 | The ASCII art logo at the top was made using FIGlet (http://www.figlet.org/). 48 | -------------------------------------------------------------------------------- /rules/iptables/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup iptables-1.4.21-orig/extensions/libxt_TCPOPTSTRIP.c iptables-1.4.21/extensions/libxt_TCPOPTSTRIP.c 2 | --- iptables-1.4.21-orig/extensions/libxt_TCPOPTSTRIP.c 2013-11-22 13:18:13.000000000 +0200 3 | +++ iptables-1.4.21/extensions/libxt_TCPOPTSTRIP.c 2015-04-16 22:33:26.637412015 +0300 4 | @@ -9,6 +9,21 @@ 5 | #include 6 | #include 7 | #include 8 | +#ifndef TCPOPT_MAXSEG 9 | +# define TCPOPT_MAXSEG 2 10 | +#endif 11 | +#ifndef TCPOPT_WINDOW 12 | +# define TCPOPT_WINDOW 3 13 | +#endif 14 | +#ifndef TCPOPT_SACK_PERMITTED 15 | +# define TCPOPT_SACK_PERMITTED 4 16 | +#endif 17 | +#ifndef TCPOPT_SACK 18 | +# define TCPOPT_SACK 5 19 | +#endif 20 | +#ifndef TCPOPT_TIMESTAMP 21 | +# define TCPOPT_TIMESTAMP 8 22 | +#endif 23 | #ifndef TCPOPT_MD5SIG 24 | # define TCPOPT_MD5SIG 19 25 | #endif 26 | diff -rup iptables-1.4.21-orig/include/libiptc/ipt_kernel_headers.h iptables-1.4.21/include/libiptc/ipt_kernel_headers.h 27 | --- iptables-1.4.21-orig/include/libiptc/ipt_kernel_headers.h 2013-11-22 13:18:13.000000000 +0200 28 | +++ iptables-1.4.21/include/libiptc/ipt_kernel_headers.h 2015-04-16 22:34:09.569413035 +0300 29 | @@ -5,7 +5,7 @@ 30 | 31 | #include 32 | 33 | -#if defined(__GLIBC__) && __GLIBC__ == 2 34 | +#if 1 35 | #include 36 | #include 37 | #include 38 | diff -rup iptables-1.4.21-orig/include/linux/netfilter_ipv4/ip_tables.h iptables-1.4.21/include/linux/netfilter_ipv4/ip_tables.h 39 | --- iptables-1.4.21-orig/include/linux/netfilter_ipv4/ip_tables.h 2013-11-22 13:18:13.000000000 +0200 40 | +++ iptables-1.4.21/include/linux/netfilter_ipv4/ip_tables.h 2015-04-16 22:27:32.305403594 +0300 41 | @@ -15,7 +15,7 @@ 42 | #ifndef _IPTABLES_H 43 | #define _IPTABLES_H 44 | 45 | -#include 46 | +#include 47 | 48 | #include 49 | 50 | -------------------------------------------------------------------------------- /rules/toybox/blkid-partitions.patch: -------------------------------------------------------------------------------- 1 | diff -rup toybox-0.6.0-orig/toys/other/blkid.c toybox-0.6.0/toys/other/blkid.c 2 | --- toybox-0.6.0-orig/toys/other/blkid.c 2015-08-06 21:59:40.158784640 +0300 3 | +++ toybox-0.6.0/toys/other/blkid.c 2015-08-06 21:59:52.478845722 +0300 4 | @@ -4,7 +4,7 @@ 5 | * 6 | * See ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.24/libblkid-docs/api-index-full.html 7 | 8 | -USE_BLKID(NEWTOY(blkid, "<1", TOYFLAG_BIN)) 9 | +USE_BLKID(NEWTOY(blkid, NULL, TOYFLAG_BIN)) 10 | USE_FSTYPE(NEWTOY(fstype, "<1", TOYFLAG_BIN)) 11 | 12 | config BLKID 13 | @@ -27,6 +27,8 @@ config FSTYPE 14 | #define FOR_blkid 15 | #include "toys.h" 16 | 17 | +#define ONE_K 1024 18 | + 19 | struct fstype { 20 | char *name; 21 | uint64_t magic; 22 | @@ -56,8 +58,7 @@ static const struct fstype fstypes[] = { 23 | {"vfat", 0x31544146, 4, 54, 39+(4<<24), 11, 43} // fat1 24 | }; 25 | 26 | -/* TODO if no args use proc/partitions */ 27 | -void do_blkid(int fd, char *name) 28 | +static void do_blkid(int fd, char *name) 29 | { 30 | int off, i, j; 31 | char *type; 32 | @@ -134,12 +135,36 @@ void do_blkid(int fd, char *name) 33 | printf(" TYPE=\"%s\"\n", type); 34 | } 35 | 36 | +static void loop_partitions() 37 | +{ 38 | + unsigned int ma, mi, sz, fd; 39 | + char device[14]; 40 | + char *name = toybuf, *buffer = toybuf + ONE_K; 41 | + FILE* fp = xfopen("/proc/partitions", "r"); 42 | + 43 | + while (fgets(buffer, ONE_K, fp)) { 44 | + name[0] = '\0'; 45 | + if (sscanf(buffer, " %u %u %u %[^\n ]", &ma, &mi, &sz, name) != 4) 46 | + continue; 47 | + 48 | + sprintf(device,"/dev/%s",name); 49 | + fd = open(device, O_RDONLY); 50 | + if (-1 == fd) perror_exit("Could not open %s", device); 51 | + do_blkid(fd, device); 52 | + close(fd); 53 | + } 54 | + fclose(fp); 55 | +} 56 | + 57 | void blkid_main(void) 58 | { 59 | - loopfiles(toys.optargs, do_blkid); 60 | + if (*toys.optargs) 61 | + loopfiles(toys.optargs, do_blkid); 62 | + else 63 | + loop_partitions(); 64 | } 65 | 66 | void fstype_main(void) 67 | { 68 | - blkid_main(); 69 | + loopfiles(toys.optargs, do_blkid); 70 | } 71 | -------------------------------------------------------------------------------- /scripts/create_iso: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TODAY="$(date +%d%m%Y)" 4 | 5 | # build the root file system 6 | root_fs="$(mktemp -d)" 7 | ./scripts/build_rootfs "$root_fs" "$1" 8 | if [ ! -f "$root_fs/boot/bzImage" ] || 9 | [ ! -f "$root_fs/boot/initrd.xz" ] || 10 | [ ! -f "$root_fs/boot/isolinux.bin" ] 11 | then 12 | echo "Error: the root file system must contain: 13 | 1) A kernel (/boot/bzImage) 14 | 2) An initramfs archive (/boot/initrd.xz) 15 | 3) A boot loader (/boot/isolinux.bin)" 16 | rm -rf "$root_fs" 17 | exit 1 18 | fi 19 | 20 | # create a temporary directory for the extracted ISO image contents 21 | iso_root="$(mktemp -d)" 22 | mkdir "$iso_root/boot" "$iso_root/isolinux" 23 | 24 | # put the kernel, the boot loader and its configuration file in the image root, 25 | # for BIOS boot 26 | mv "$root_fs/boot/bzImage" "$iso_root/boot/" 27 | mv "$root_fs/boot/initrd.xz" "$iso_root/boot/" 28 | mv "$root_fs/boot/isolinux.bin" "$iso_root/isolinux/" 29 | mv "$root_fs/boot/isohdpfx.bin" "$iso_root/isolinux/" 30 | mv "$root_fs/boot/menu.c32" "$iso_root/isolinux/" 31 | mv "$root_fs/boot/isolinux.cfg" "$iso_root/isolinux/" 32 | rm -rf "$root_fs/boot" 33 | 34 | # generate the root file system image 35 | mksquashfs "$root_fs" \ 36 | "$iso_root/boot/rootfs.sfs" \ 37 | -comp xz \ 38 | -Xbcj x86 \ 39 | -b 512K \ 40 | -no-exports 41 | rm -rf "$root_fs" 42 | 43 | # sign the root file system image 44 | ed25519 -s \ 45 | "$iso_root/boot/rootfs.sfs" \ 46 | /etc/packlim/priv_key \ 47 | /etc/packlim/pub_key > "$iso_root/boot/rootfs.sig" 48 | 49 | # generate an ISO image 50 | xorriso -as mkisofs \ 51 | -iso-level 3 \ 52 | -full-iso9660-filenames \ 53 | -volid "RLSD_$TODAY" \ 54 | -appid "RLSD $TODAY" \ 55 | -eltorito-boot isolinux/isolinux.bin \ 56 | -eltorito-catalog isolinux/boot.cat \ 57 | -no-emul-boot -boot-load-size 4 -boot-info-table \ 58 | -isohybrid-mbr "$iso_root/isolinux/isohdpfx.bin" \ 59 | $uefi_flags \ 60 | -output "images/iso/rlsd-$TODAY-$(basename "$1").iso" \ 61 | "$iso_root" 62 | 63 | # clean up 64 | rm -rf "$iso_root" 65 | -------------------------------------------------------------------------------- /rules/fbv/giflib.patch: -------------------------------------------------------------------------------- 1 | diff -rup fbv-1.0b-orig/gif.c fbv-1.0b/gif.c 2 | --- fbv-1.0b-orig/gif.c 2014-11-07 13:50:03.809976669 +0200 3 | +++ fbv-1.0b/gif.c 2014-11-07 13:50:22.307976338 +0200 4 | @@ -31,10 +31,10 @@ 5 | #include 6 | #define min(a,b) ((a) < (b) ? (a) : (b)) 7 | #define gflush return(FH_ERROR_FILE); 8 | -#define grflush { DGifCloseFile(gft); return(FH_ERROR_FORMAT); } 9 | -#define mgrflush { free(lb); free(slb); DGifCloseFile(gft); return(FH_ERROR_FORMAT); } 10 | +#define grflush { DGifCloseFile(gft,NULL); return(FH_ERROR_FORMAT); } 11 | +#define mgrflush { free(lb); free(slb); DGifCloseFile(gft,NULL); return(FH_ERROR_FORMAT); } 12 | #define agflush return(FH_ERROR_FORMAT); 13 | -#define agrflush { DGifCloseFile(gft); return(FH_ERROR_FORMAT); } 14 | +#define agrflush { DGifCloseFile(gft,NULL); return(FH_ERROR_FORMAT); } 15 | 16 | 17 | int fh_gif_id(char *name) 18 | @@ -81,7 +81,7 @@ int fh_gif_load(char *name,unsigned char 19 | ColorMapObject *cmap; 20 | int cmaps; 21 | 22 | - gft=DGifOpenFileName(name); 23 | + gft=DGifOpenFileName(name,NULL); 24 | if(gft==NULL){printf("err5\n"); gflush;} ////////// 25 | do 26 | { 27 | @@ -170,7 +170,7 @@ int fh_gif_load(char *name,unsigned char 28 | } 29 | } 30 | while( rt!= TERMINATE_RECORD_TYPE ); 31 | - DGifCloseFile(gft); 32 | + DGifCloseFile(gft,NULL); 33 | return(FH_ERROR_OK); 34 | } 35 | 36 | @@ -184,7 +184,7 @@ int fh_gif_getsize(char *name,int *x,int 37 | int extcode; 38 | GifRecordType rt; 39 | 40 | - gft=DGifOpenFileName(name); 41 | + gft=DGifOpenFileName(name,NULL); 42 | if(gft==NULL) gflush; 43 | do 44 | { 45 | @@ -197,7 +197,7 @@ int fh_gif_getsize(char *name,int *x,int 46 | px=gft->Image.Width; 47 | py=gft->Image.Height; 48 | *x=px; *y=py; 49 | - DGifCloseFile(gft); 50 | + DGifCloseFile(gft,NULL); 51 | return(FH_ERROR_OK); 52 | break; 53 | case EXTENSION_RECORD_TYPE: 54 | @@ -210,7 +210,7 @@ int fh_gif_getsize(char *name,int *x,int 55 | } 56 | } 57 | while( rt!= TERMINATE_RECORD_TYPE ); 58 | - DGifCloseFile(gft); 59 | + DGifCloseFile(gft,NULL); 60 | return(FH_ERROR_FORMAT); 61 | } 62 | #endif 63 | -------------------------------------------------------------------------------- /rules/alsa-utils/sounds.patch: -------------------------------------------------------------------------------- 1 | diff -rup alsa-utils-1.0.28-orig/configure.ac alsa-utils-1.0.28/configure.ac 2 | --- alsa-utils-1.0.28-orig/configure.ac 2014-08-01 22:14:26.028770937 +0300 3 | +++ alsa-utils-1.0.28/configure.ac 2014-08-01 22:16:02.280769213 +0300 4 | @@ -287,7 +287,7 @@ case "$dir" in 5 | *) dir="$prefix/share" 6 | esac 7 | 8 | -soundsdir="$dir/sounds/alsa" 9 | +soundsdir="$dir/alsa/sounds" 10 | AC_DEFINE_UNQUOTED(SOUNDSDIR, "$soundsdir", [directory containing sample data]) 11 | 12 | mydatadir="$dir/alsa" 13 | diff -rup alsa-utils-1.0.28-orig/speaker-test/samples/Makefile.am alsa-utils-1.0.28/speaker-test/samples/Makefile.am 14 | --- alsa-utils-1.0.28-orig/speaker-test/samples/Makefile.am 2014-08-01 22:14:26.022770937 +0300 15 | +++ alsa-utils-1.0.28/speaker-test/samples/Makefile.am 2014-08-01 22:15:40.184769609 +0300 16 | @@ -1,4 +1,4 @@ 17 | -sounddir = $(datadir)/sounds/alsa 18 | +sounddir = $(datadir)/alsa/sounds 19 | wav_files = Front_Left.wav \ 20 | Rear_Center.wav \ 21 | Rear_Right.wav \ 22 | diff -rup alsa-utils-1.0.28-orig/speaker-test/samples/Makefile.in alsa-utils-1.0.28/speaker-test/samples/Makefile.in 23 | --- alsa-utils-1.0.28-orig/speaker-test/samples/Makefile.in 2014-08-01 22:14:26.022770937 +0300 24 | +++ alsa-utils-1.0.28/speaker-test/samples/Makefile.in 2014-08-01 22:15:30.666769779 +0300 25 | @@ -244,7 +244,7 @@ top_builddir = @top_builddir@ 26 | top_srcdir = @top_srcdir@ 27 | udevrulesdir = @udevrulesdir@ 28 | xmlto = @xmlto@ 29 | -sounddir = $(datadir)/sounds/alsa 30 | +sounddir = $(datadir)/alsa/sounds 31 | wav_files = Front_Left.wav \ 32 | Rear_Center.wav \ 33 | Rear_Right.wav \ 34 | diff -rup alsa-utils-1.0.28-orig/speaker-test/speaker-test.1 alsa-utils-1.0.28/speaker-test/speaker-test.1 35 | --- alsa-utils-1.0.28-orig/speaker-test/speaker-test.1 2014-08-01 22:14:26.016770937 +0300 36 | +++ alsa-utils-1.0.28/speaker-test/speaker-test.1 2014-08-01 22:15:14.684770066 +0300 37 | @@ -129,7 +129,7 @@ Use the given WAV file for the playback 38 | .TP 39 | \fB\-W\fP | \fB\-\-wavdir\fP \fIDIRECTORY\fP 40 | Specify the directory containing WAV files for playback. 41 | -The default path is \fI/usr/share/sounds/alsa\fP. 42 | +The default path is \fI/usr/share/alsa/sounds\fP. 43 | 44 | .TP 45 | \fB\-m\fP | \fB\-\-chmap\fP \fIMAP\fP 46 | -------------------------------------------------------------------------------- /rules/iw/libnl-tiny.patch: -------------------------------------------------------------------------------- 1 | diff -rup iw-3.14-orig/iw.c iw-3.14/iw.c 2 | --- iw-3.14-orig/iw.c 2014-02-12 23:26:17.116467878 +0200 3 | +++ iw-3.14/iw.c 2014-02-12 23:45:30.024498752 +0200 4 | @@ -23,8 +23,14 @@ 5 | #include "nl80211.h" 6 | #include "iw.h" 7 | 8 | +#ifdef CONFIG_LIBNL_TINY 9 | +#define nl_handle nl_sock 10 | +#define nl_handle_alloc_cb nl_socket_alloc_cb 11 | +#define nl_handle_destroy nl_socket_free 12 | +#endif 13 | + 14 | /* libnl 1.x compatibility code */ 15 | -#if !defined(CONFIG_LIBNL20) && !defined(CONFIG_LIBNL30) 16 | +#if !defined(CONFIG_LIBNL20) && !defined(CONFIG_LIBNL30) && !defined(CONFIG_LIBNL_TINY) 17 | static inline struct nl_handle *nl_socket_alloc(void) 18 | { 19 | return nl_handle_alloc(); 20 | @@ -40,7 +46,7 @@ static inline int nl_socket_set_buffer_s 21 | { 22 | return nl_set_buffer_size(sk, rxbuf, txbuf); 23 | } 24 | -#endif /* CONFIG_LIBNL20 && CONFIG_LIBNL30 */ 25 | +#endif /* CONFIG_LIBNL20 && CONFIG_LIBNL30 && CONFIG_LIBNL_TINY */ 26 | 27 | int iw_debug = 0; 28 | 29 | diff -rup iw-3.14-orig/iw.h iw-3.14/iw.h 30 | --- iw-3.14-orig/iw.h 2014-02-12 23:26:17.116467878 +0200 31 | +++ iw-3.14/iw.h 2014-02-12 23:50:35.016506920 +0200 32 | @@ -14,7 +14,7 @@ 33 | #define ETH_ALEN 6 34 | 35 | /* libnl 1.x compatibility code */ 36 | -#if !defined(CONFIG_LIBNL20) && !defined(CONFIG_LIBNL30) 37 | +#if !defined(CONFIG_LIBNL20) && !defined(CONFIG_LIBNL30) && !defined(CONFIG_LIBNL_TINY) 38 | # define nl_sock nl_handle 39 | #endif 40 | 41 | diff -rup iw-3.14-orig/Makefile iw-3.14/Makefile 42 | --- iw-3.14-orig/Makefile 2014-02-12 23:26:17.116467878 +0200 43 | +++ iw-3.14/Makefile 2014-02-12 23:48:46.432504013 +0200 44 | @@ -26,6 +26,8 @@ OBJS += $(OBJS-y) $(OBJS-Y) 45 | ALL = iw 46 | 47 | ifeq ($(NO_PKG_CONFIG),) 48 | +NLTINYFOUND := $(shell $(PKG_CONFIG) --atleast-version=1 libnl-tiny && echo Y) 49 | +ifneq ($(NLTINYFOUND),Y) 50 | NL3xFOUND := $(shell $(PKG_CONFIG) --atleast-version=3.2 libnl-3.0 && echo Y) 51 | ifneq ($(NL3xFOUND),Y) 52 | NL31FOUND := $(shell $(PKG_CONFIG) --exact-version=3.1 libnl-3.1 && echo Y) 53 | @@ -39,6 +41,12 @@ endif 54 | endif 55 | endif 56 | endif 57 | +endif 58 | + 59 | +ifeq ($(NLTINYFOUND),Y) 60 | +CFLAGS += -DCONFIG_LIBNL_TINY 61 | +NLLIBNAME = libnl-tiny 62 | +endif 63 | 64 | ifeq ($(NL1FOUND),Y) 65 | NLLIBNAME = libnl-1 66 | -------------------------------------------------------------------------------- /rules/ytree/build.patch: -------------------------------------------------------------------------------- 1 | diff -rup ytree-1.97-orig/Makefile ytree-1.97/Makefile 2 | --- ytree-1.97-orig/Makefile 2014-10-16 20:31:34.985946294 +0300 3 | +++ ytree-1.97/Makefile 2014-10-16 20:35:04.516942542 +0300 4 | @@ -13,13 +13,13 @@ CC ?= cc 5 | # ADD_CFLAGS: Add -DVI_KEYS if you want vi-cursor-keys 6 | # 7 | 8 | -DESTDIR = /usr 9 | +DESTDIR = / 10 | 11 | -ADD_CFLAGS = -O # -DVI_KEYS 12 | +ADD_CFLAGS = # -DVI_KEYS 13 | 14 | BINDIR = $(DESTDIR)/bin 15 | -MANDIR = $(DESTDIR)/share/man/man1 16 | -MANESDIR = $(DESTDIR)/share/man/es/man1 17 | +MANDIR = $(DESTDIR)/man/man1 18 | +MANESDIR = $(DESTDIR)/man/es/man1 19 | 20 | 21 | # Uncomment the lines for your system (default is linux) 22 | @@ -31,9 +31,9 @@ MANESDIR = $(DESTDIR)/share/man/es/ma 23 | ########################### 24 | COLOR = -DCOLOR_SUPPORT 25 | #CLOCK = -DCLOCK_SUPPORT # Experimental! 26 | -READLINE = -DREADLINE_SUPPORT 27 | +READLINE = 28 | CFLAGS += -D_GNU_SOURCE $(COLOR) $(CLOCK) $(READLINE) $(ADD_CFLAGS) 29 | -LDFLAGS += -lncurses -lreadline 30 | +LDFLAGS += -lncurses 31 | 32 | ########################### 33 | # LINUX with Wide character support (testet with ncurses 5.4) 34 | @@ -41,7 +41,7 @@ LDFLAGS += -lncurses -lreadline 35 | ########################### 36 | #COLOR = -DCOLOR_SUPPORT 37 | ##CLOCK = -DCLOCK_SUPPORT # Experimental! 38 | -#READLINE = -DREADLINE_SUPPORT 39 | +#READLINE = 40 | #CFLAGS = -D_GNU_SOURCE -DWITH_UTF8 $(ADD_CFLAGS) $(COLOR) $(CLOCK) $(READLINE) 41 | #LDFLAGS = -lncursesw -lreadline 42 | 43 | @@ -77,7 +77,7 @@ LDFLAGS += -lncurses -lreadline 44 | ########################### 45 | #COLOR = -DCOLOR_SUPPORT 46 | ##CLOCK = -DCLOCK_SUPPORT # Experimental! 47 | -#READLINE = -DREADLINE_SUPPORT 48 | +#READLINE = 49 | #CFLAGS = $(ADD_CFLAGS) $(COLOR) $(CLOCK) 50 | #LDFLAGS = -lcurses -lcompat -ledit 51 | #MANDIR = /usr/share/man/man1 52 | @@ -225,11 +225,8 @@ $(MAIN): $(OBJS) 53 | $(CC) $(LFLAGS) -o $@ $(OBJS) $(LDFLAGS) 54 | 55 | install: $(MAIN) 56 | - install $(MAIN) $(BINDIR) 57 | - gzip -9c ytree.1 > ytree.1.gz 58 | - if [ -d $(MANDIR) ]; then install -m 0644 ytree.1.gz $(MANDIR)/; fi 59 | - gzip -9c ytree.1.es > ytree.1.es.gz 60 | - if [ -d $(MANESDIR) ]; then install -m 0644 ytree.1.es.gz $(MANESDIR)/; fi 61 | + install -D $(MAIN) $(BINDIR)/$(MAIN) 62 | + install -D -m 0644 ytree.1 $(MANDIR)/ytree.1 63 | 64 | clean: 65 | rm -f core *.o *~ *.orig *.bak 66 | -------------------------------------------------------------------------------- /packer/www/preseed.cfg: -------------------------------------------------------------------------------- 1 | d-i debian-installer/locale string en_US 2 | d-i console-setup/ask_detect boolean false 3 | d-i keyboard-configuration/layoutcode string us 4 | 5 | d-i netcfg/enable boolean true 6 | d-i netcfg/choose_interface select auto 7 | d-i netcfg/get_hostname string rlsd 8 | d-i netcfg/get_domain string localdomain 9 | d-i netcfg/wireless_wep string 10 | 11 | d-i apt-setup/use_mirror boolean true 12 | d-i mirror/protocol http 13 | d-i mirror/country string manual 14 | d-i mirror/http/hostname string mirror.fsf.org 15 | d-i mirror/http/directory string /trisquel 16 | d-i mirror/http/proxy string 17 | 18 | d-i clock-setup/utc boolean true 19 | d-i time/zone string US/Eastern 20 | 21 | d-i clock-setup/ntp boolean true 22 | 23 | d-i partman-auto/method string regular 24 | d-i partman-lvm/device_remove_lvm boolean true 25 | d-i partman-auto/choose_recipe select atomic 26 | d-i partman/default_filesystem string ext4 27 | d-i partman-partitioning/confirm_write_new_label boolean true 28 | d-i partman/choose_partition select finish 29 | d-i partman/confirm boolean true 30 | d-i partman/confirm_nooverwrite boolean true 31 | 32 | d-i partman-md/confirm boolean true 33 | d-i partman-partitioning/confirm_write_new_label boolean true 34 | d-i partman/choose_partition select finish 35 | d-i partman/confirm boolean true 36 | d-i partman/confirm_nooverwrite boolean true 37 | 38 | d-i base-installer/install-recommends boolean false 39 | d-i base-installer/kernel/image string linux-generic 40 | 41 | d-i user-setup/allow-password-weak boolean true 42 | d-i passwd/root-login boolean true 43 | d-i passwd/make-user boolean false 44 | d-i passwd/root-password password root 45 | d-i passwd/root-password-again password root 46 | 47 | d-i user-setup/encrypt-home boolean false 48 | 49 | tasksel tasksel/first multiselect trisquel-minimal 50 | d-i pkgsel/include string openssh-server build-essential autoconf automake autotools-dev autoconf-archive unzip flex bison git nasm squashfs-tools pkg-config file subversion bc dosfstools yasm libarchive-dev libcurl4-gnutls-dev xorriso wget liblwp-useragent-determined-perl advancecomp optipng curl gawk lzip libtool mercurial cmake gettext extlinux qemu-utils 51 | d-i pkgsel/upgrade select full-upgrade 52 | d-i pkgsel/update-policy select unattended-upgrades 53 | 54 | popularity-contest popularity-contest/participate boolean false 55 | d-i grub-installer/only_debian boolean true 56 | d-i grub-installer/with_other_os boolean true 57 | 58 | d-i preseed/late_command string in-target sed s~'PermitRootLogin .*'~'PermitRootLogin yes'~ -i /etc/ssh/sshd_config 59 | 60 | d-i finish-install/reboot_in_progress note 61 | -------------------------------------------------------------------------------- /rules/gpm/musl.patch: -------------------------------------------------------------------------------- 1 | diff -rup gpm-1.20.7-orig/src/daemon/open_console.c gpm-1.20.7/src/daemon/open_console.c 2 | --- gpm-1.20.7-orig/src/daemon/open_console.c 2012-10-26 23:21:38.000000000 +0200 3 | +++ gpm-1.20.7/src/daemon/open_console.c 2014-11-08 13:25:40.509950582 +0200 4 | @@ -21,6 +21,7 @@ 5 | 6 | #include /* open and co. */ 7 | #include /* stat() */ 8 | +#include /* major() */ 9 | #include /* ioctl */ 10 | 11 | /* Linux specific (to be outsourced in gpm2 */ 12 | Only in gpm-1.20.7/src/headers: config.h.in 13 | Only in gpm-1.20.7/src/headers: config.h.in~ 14 | diff -rup gpm-1.20.7-orig/src/prog/display-buttons.c gpm-1.20.7/src/prog/display-buttons.c 15 | --- gpm-1.20.7-orig/src/prog/display-buttons.c 2012-10-26 23:21:38.000000000 +0200 16 | +++ gpm-1.20.7/src/prog/display-buttons.c 2014-11-08 13:23:08.632953302 +0200 17 | @@ -36,6 +36,7 @@ 18 | #include /* printf() */ 19 | #include /* time() */ 20 | #include /* errno */ 21 | +#include /* fd_set and FD_* */ 22 | #include /* gpm information */ 23 | 24 | /* display resulting data */ 25 | diff -rup gpm-1.20.7-orig/src/prog/display-coords.c gpm-1.20.7/src/prog/display-coords.c 26 | --- gpm-1.20.7-orig/src/prog/display-coords.c 2012-10-26 23:21:38.000000000 +0200 27 | +++ gpm-1.20.7/src/prog/display-coords.c 2014-11-08 13:23:02.429953413 +0200 28 | @@ -37,6 +37,7 @@ 29 | #include /* printf() */ 30 | #include /* time() */ 31 | #include /* errno */ 32 | +#include /* fd_set and FD_* */ 33 | #include /* gpm information */ 34 | 35 | /* display resulting data */ 36 | diff -rup gpm-1.20.7-orig/src/prog/gpm-root.y gpm-1.20.7/src/prog/gpm-root.y 37 | --- gpm-1.20.7-orig/src/prog/gpm-root.y 2012-10-26 23:21:38.000000000 +0200 38 | +++ gpm-1.20.7/src/prog/gpm-root.y 2014-11-08 13:31:39.126944160 +0200 39 | @@ -1199,9 +1199,9 @@ int main(int argc, char **argv) 40 | #if defined(__GLIBC__) 41 | __sigemptyset(&childaction.sa_mask); 42 | #else /* __GLIBC__ */ 43 | - childaction.sa_mask=0; 44 | + sigemptyset(&childaction.sa_mask); 45 | #endif /* __GLIBC__ */ 46 | - childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */ 47 | + childaction.sa_flags=0; 48 | sigaction(SIGCHLD,&childaction,NULL); 49 | 50 | /*....................................... Connect and get your buffer */ 51 | -------------------------------------------------------------------------------- /rules/dropbear/options.patch: -------------------------------------------------------------------------------- 1 | diff -rup dropbear-2015.68-orig/dropbear.8 dropbear-2015.68/dropbear.8 2 | --- dropbear-2015.68-orig/dropbear.8 2015-08-09 22:54:18.668272862 +0300 3 | +++ dropbear-2015.68/dropbear.8 2015-08-09 22:54:26.552311992 +0300 4 | @@ -72,7 +72,7 @@ In program mode the \-F option is implie 5 | .TP 6 | .B \-P \fIpidfile 7 | Specify a pidfile to create when running as a daemon. If not specified, the 8 | -default is /var/run/dropbear.pid 9 | +default is /run/dropbear.pid 10 | .TP 11 | .B \-a 12 | Allow remote hosts to connect to forwarded ports. 13 | diff -rup dropbear-2015.68-orig/options.h dropbear-2015.68/options.h 14 | --- dropbear-2015.68-orig/options.h 2015-08-09 22:54:18.628272655 +0300 15 | +++ dropbear-2015.68/options.h 2015-08-09 22:54:37.120364351 +0300 16 | @@ -276,13 +276,13 @@ Homedir is prepended unless path begins 17 | /* The default file to store the daemon's process ID, for shutdown 18 | scripts etc. This can be overridden with the -P flag */ 19 | #ifndef DROPBEAR_PIDFILE 20 | -#define DROPBEAR_PIDFILE "/var/run/dropbear.pid" 21 | +#define DROPBEAR_PIDFILE "/run/dropbear.pid" 22 | #endif 23 | 24 | /* The command to invoke for xauth when using X11 forwarding. 25 | * "-q" for quiet */ 26 | #ifndef XAUTH_COMMAND 27 | -#define XAUTH_COMMAND "/usr/bin/xauth -q" 28 | +#define XAUTH_COMMAND "/bin/xauth -q" 29 | #endif 30 | 31 | /* if you want to enable running an sftp server (such as the one included with 32 | @@ -294,7 +294,7 @@ Homedir is prepended unless path begins 33 | 34 | /* This is used by the scp binary when used as a client binary. If you're 35 | * not using the Dropbear client, you'll need to change it */ 36 | -#define DROPBEAR_PATH_SSH_PROGRAM "/usr/bin/dbclient" 37 | +#define DROPBEAR_PATH_SSH_PROGRAM "/bin/dbclient" 38 | 39 | /* Whether to log commands executed by a client. This only logs the 40 | * (single) command sent to the server, not what a user did in a 41 | @@ -336,7 +336,7 @@ be overridden at runtime with -I. 0 disa 42 | #define DEFAULT_IDLE_TIMEOUT 0 43 | 44 | /* The default path. This will often get replaced by the shell */ 45 | -#define DEFAULT_PATH "/usr/bin:/bin" 46 | +#define DEFAULT_PATH "/bin" 47 | 48 | /* Some other defines (that mostly should be left alone) are defined 49 | * in sysoptions.h */ 50 | diff -rup dropbear-2015.68-orig/sysoptions.h dropbear-2015.68/sysoptions.h 51 | --- dropbear-2015.68-orig/sysoptions.h 2015-08-09 22:54:18.664272838 +0300 52 | +++ dropbear-2015.68/sysoptions.h 2015-08-09 22:54:26.552311992 +0300 53 | @@ -7,7 +7,7 @@ 54 | #define DROPBEAR_VERSION "2015.68" 55 | #endif 56 | 57 | -#define LOCAL_IDENT "SSH-2.0-dropbear_" DROPBEAR_VERSION 58 | +#define LOCAL_IDENT "SSH-2.0-None" 59 | #define PROGNAME "dropbear" 60 | 61 | /* Spec recommends after one hour or 1 gigabyte of data. One hour 62 | -------------------------------------------------------------------------------- /rules/fbcat/ffmpeg.patch: -------------------------------------------------------------------------------- 1 | diff -rup fbcat-0.4.1-orig/fbgrab fbcat-0.4.1/fbgrab 2 | --- fbcat-0.4.1-orig/fbgrab 2015-05-22 12:41:21.257532121 +0300 3 | +++ fbcat-0.4.1/fbgrab 2015-05-02 12:11:16.000000000 +0300 4 | @@ -1,108 +1,39 @@ 5 | #!/bin/sh 6 | 7 | -# Copyright © 2009, 2011, 2014 Jakub Wilk 8 | -# 9 | -# This package is free software; you can redistribute it and/or modify 10 | -# it under the terms of the GNU General Public License as published by 11 | -# the Free Software Foundation; version 2 dated June, 1991. 12 | - 13 | -set -e 14 | - 15 | -usage() 16 | -{ 17 | - cat < 19 | - 20 | -Options: 21 | --c grab from /dev/ttyN 22 | --C grab from /dev/ttyN, for slower devices 23 | --d use framebuffer device 24 | --i turn on PNG interlacing 25 | --s sleep seconds before making screenshot 26 | --? display this help and exit 27 | -EOF 28 | - exit 1 29 | -} 30 | - 31 | -not_supported_option() 32 | -{ 33 | - printf -- 'fbgrab: the %s option is not supported.\n' "$1" >&2 34 | - exit 3 35 | -} 36 | - 37 | -no_ppm2png() 38 | -{ 39 | - printf -- 'fbgrab: no PPM -> PNG conversion tool found.\nPlease install Netpbm or GraphicsMagick, or ImageMagick.\n' >&2 40 | - exit 4 41 | -} 42 | - 43 | -internal_error() 44 | -{ 45 | - printf -- 'Internal error!\n' >&2 46 | - exit 42 47 | -} 48 | - 49 | -current_vt='' 50 | -grab_vt='' 51 | -wait_after_switch=0 52 | -wait_before_switch=0 53 | -device=${FRAMEBUFFER:-/dev/fb0} 54 | -opts=$(getopt -n fbgrab -o 'b:c:C:d:f:h:is:w:?' -- "$@") 55 | -interlace='' 56 | -eval set -- "$opts" 57 | -while true 58 | -do 59 | - case "$1" in 60 | - -b) not_supported_option "$1"; shift 2;; 61 | - -c) grab_vt="$2"; wait_after_switch=0; shift 2;; 62 | - -C) grab_vt="$2"; wait_after_switch=3; shift 2;; 63 | - -d) device="$2"; shift 2;; 64 | - -f) not_supported_option "$1"; shift 2;; 65 | - -h) not_supported_option "$1"; shift 2;; 66 | - -i) interlace=1; shift;; 67 | - -s) wait_before_switch="$(($2))"; shift 2;; 68 | - -w) not_supported_option "$1"; shift 2;; 69 | - -[?]) usage;; 70 | - --) shift; break;; 71 | - *) internal_error; 72 | - esac 73 | -done 74 | +case $# in 75 | + 2) 76 | + device="$1" 77 | + output="$2" 78 | + ;; 79 | + 80 | + 1) 81 | + device="" 82 | + output="$1" 83 | + ;; 84 | + 85 | + *) 86 | + echo "Usage: $0 [DEVICE] OUTPUT" 1>&2 87 | + exit 88 | + ;; 89 | +esac 90 | 91 | -[ $# -ne 1 ] && usage 92 | - 93 | -if command -v pnmtopng >/dev/null 2>/dev/null 94 | -then 95 | - ppm2png() 96 | - { 97 | - pnmtopng ${interlace:+-interlace} - > "$1" 98 | - } 99 | -elif gm -version 2>/dev/null | grep -q -w GraphicsMagick 100 | +tmp="$(mktemp).pnm" 101 | +if [ -z "$device" ] 102 | then 103 | - ppm2png() 104 | - { 105 | - gm convert ${interlace:+-interlace Line} PPM:- "PNG:$1" 106 | - } 107 | -elif convert -version 2>/dev/null | grep -q -w ImageMagick 108 | -then 109 | - ppm2png() 110 | - { 111 | - convert ${interlace:+-interlace Line} PPM:- "PNG:$1" 112 | - } 113 | + fbcat > "$tmp" 114 | else 115 | - no_ppm2png 116 | + fbcat "$device" > "$tmp" 117 | fi 118 | - 119 | -sleep "$wait_before_switch" 120 | -if [ -n "$grab_vt" ] 121 | +ret=$? 122 | +if [ 0 -ne $ret ] 123 | then 124 | - current_vt=$(fgconsole) 125 | - chvt "$grab_vt" 126 | -fi 127 | -sleep "$wait_after_switch" 128 | -fbcat "$device" | ppm2png "$1" 129 | -if [ -n "$current_vt" ] 130 | -then 131 | - chvt "$current_vt" 132 | + rm -f "$tmp" 133 | + exit $ret 134 | fi 135 | 136 | -# vim:ts=2 sw=2 et 137 | +ffmpeg -loglevel quiet -i "$tmp" "$output" 138 | +ret=$? 139 | +rm -f "$tmp" 140 | +[ 0 -ne $ret ] && exit $ret 141 | + 142 | +exit 0 143 | --------------------------------------------------------------------------------