diff options
Diffstat (limited to 'unmaintained')
135 files changed, 3772 insertions, 2709 deletions
diff --git a/unmaintained/afl/APKBUILD b/unmaintained/afl/APKBUILD new file mode 100644 index 0000000000..8bfae57ae1 --- /dev/null +++ b/unmaintained/afl/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Marian <marian.buschsieweke@ovgu.de> +# Maintainer: Marian <marian.buschsieweke@ovgu.de> +pkgname=afl +pkgver=2.57b +pkgrel=2 +pkgdesc="Fuzzer relying on genetic algorithms instead of brute force" +url="https://lcamtuf.coredump.cx/afl/" +# arch="all !x86" fails to build +license="Apache-2.0" +options="!check" # no tests provided +depends="clang llvm" +makedepends="clang-dev llvm-dev" +subpackages="$pkgname-doc $pkgname-clang:_clang $pkgname-gcc:_gcc" +source="$pkgname-$pkgver.tar.gz::https://github.com/google/AFL/archive/v$pkgver.tar.gz" +builddir="$srcdir/AFL-$pkgver" + +build() { + export CC=clang + make AFL_NO_X86=1 PREFIX=/usr + make -C llvm_mode AFL_NO_X86=1 PREFIX=/usr +} + +package() { + make AFL_NO_X86=1 PREFIX=/usr DESTDIR="$pkgdir" install + install -Dm644 llvm_mode/README.llvm \ + "$pkgdir"/usr/share/doc/$pkgname/README.llvm_mode + + # small_exec.elf is an Intel binary which causes an error during + # the strip() process on non Intel plattforms. + case "$CARCH" in + x86*) ;; + *) rm -f "$pkgdir"/usr/share/afl/testcases/others/elf/small_exec.elf ;; + esac +} + +_clang() { + description="$pkgdesc - CLang instrumention support" + depends="clang" + + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/afl-clang \ + "$pkgdir"/usr/bin/afl-clang++ \ + "$subpkgdir"/usr/bin +} + +_gcc() { + description="$pkgdesc - GCC instrumention support" + depends="gcc" + + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/afl-gcc \ + "$pkgdir"/usr/bin/afl-g++ \ + "$subpkgdir"/usr/bin +} + +sha512sums="5d12b96229e966aeb11deb47cd8eb36cde2fa32656eb187db02c7240909d6acda36be59b2baf7e42cddd228d25ec94c8bffc3fa27f7f4b5e1e462b62929ce75d afl-2.57b.tar.gz" diff --git a/unmaintained/anbox/APKBUILD b/unmaintained/anbox/APKBUILD new file mode 100644 index 0000000000..5003823375 --- /dev/null +++ b/unmaintained/anbox/APKBUILD @@ -0,0 +1,123 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Contributor: Grant Miller <GrantM11235@gmail.com> +# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch> +# Maintainer: Antoine Fontaine <antoine.fontaine@epfl.ch> +pkgname=anbox +pkgver=0_git20210902 +pkgrel=2 +_commit="31d584e13d24b1889566ae77e7cabc88e6414ebf" +_cpu_features_version="0.6.0" +pkgdesc="Android in a box" +url="https://github.com/anbox/anbox" +arch="x86_64 armv7 aarch64" +license="GPL-3.0-or-later" +subpackages="$pkgname-openrc" +install="$pkgname.post-install" +depends=" + fuse3 + iptables + lxc + mesa-egl + mesa-gles + " +makedepends=" + boost-dev + cmake + cmake-extras + dbus-dev + elfutils-dev + elogind-dev + glm-dev + gtest-dev + libcap-dev + libdwarf-dev + libexecinfo-dev + lxc-dev + mesa-dev + properties-cpp-dev + protobuf-dev + python3 + sdbus-cpp-dev + sdl2-dev + sdl2_image-dev + " +source="$pkgname-$_commit.tar.gz::https://github.com/anbox/anbox/archive/$_commit.tar.gz + cpu_features-v$_cpu_features_version.tar.gz::https://github.com/google/cpu_features/archive/v$_cpu_features_version.tar.gz + anbox-container-manager.initd + anbox.confd + no-bundled-sdbus.patch + musl-fixes.patch + give-more-time-to-start.patch + https://github.com/ubports/anbox/commit/e34b59513422eb905b53d7dc6c0862cea535eb96.patch + anbox-launch.sh + anbox.desktop + lxc4.patch + apparmor.patch + " +builddir="$srcdir/$pkgname-$_commit" + +prepare() { + # the bundled cpu_features is outdated and breaks build on arm. + rm -r external/cpu_features + cp -r $srcdir/cpu_features-*/ external/cpu_features + + default_prepare +} + +build() { + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DANBOX_VERSION=alpine-$pkgver-r$pkgrel \ + -DWerror=OFF + cmake --build build +} + +check() { + cd "$builddir"/build + make test +} + +package() { + DESTDIR="$pkgdir" cmake --install build + + # Remove unnecessary files + rm -r "$pkgdir"/usr/lib/backward/ + rm -r "$pkgdir"/usr/include + + install -m755 -D "$srcdir"/anbox-container-manager.initd \ + "$pkgdir"/etc/init.d/anbox-container-manager + install -m644 -D "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/$pkgname + install -m755 -D "$srcdir"/$pkgname-launch.sh \ + "$pkgdir"/usr/bin/$pkgname-launch + + install -m644 -D "$srcdir"/$pkgname.desktop \ + "$pkgdir"/usr/share/applications/$pkgname.desktop + install -m644 -D "$builddir"/snap/gui/icon.png \ + "$pkgdir"/usr/share/icons/hicolor/512x512/anbox.png + + # this is a dependency of the init script + install -m755 -D "$builddir"/scripts/anbox-bridge.sh \ + "$pkgdir"/usr/share/anbox/anbox-bridge.sh + # this is for convenience, to allow someone to get root access + install -m755 -D "$builddir"/scripts/anbox-shell.sh \ + "$pkgdir"/usr/share/anbox/anbox-shell.sh +} + +sha512sums=" +89afe367a67380b59163bf7025dcd1299db9494a6b82fe06a82b6150becb90915fa47c5f13d0e4f02379d95d1d5b434b6f2380d08fe932ea1e4b4470ae3bb287 anbox-31d584e13d24b1889566ae77e7cabc88e6414ebf.tar.gz +006a2e05253712cf605ecabccdda63dd9325445f8d145d5e2432c4342332e652f318810997321849be131082db435d88143020fdc85268fba204586cf37eef0d cpu_features-v0.6.0.tar.gz +959058eb1c1e3eb0d1593695ee57fbc0cc567f260235e81d7b56da62b0b80fca9112d5f16a1e1c5c0e6223c8a1899f97f906c7cc763dc015e094aacded818a2f anbox-container-manager.initd +6a3bc88142c5287ec54d481a4788eceb7772d9974af950b5286ce63a49d05d9d49fce5ba1d02b4b1c9893896fd4ba218fd4d39b8e640bdd61ad196b5d5c9a021 anbox.confd +c2b4ca0ff20df005abfbaa457d40ae65d3979353b1868fbfebff1c0527d1df71c5684a6b7dc9d71f114fa805c412501b1afc69b2e9e49d63b00671a8ebcb3d3c no-bundled-sdbus.patch +401669509e05eb586ad40fc9e8f4284b52183f06c60e87bf4e923be165a72f10263daf226db7fd610ef6ff25d09abd140ca2d59187e2d1b85a0bd6ae887dd944 musl-fixes.patch +0f6324231028d32467dc95d43ed4865c29fde3396524479f514533e079179b0b068f1b38cbdf227af13d64ab117a27f3b962d8a99f5ecacf3fff4302d3ffe702 give-more-time-to-start.patch +049ef6e5d02bc1bb39c24d623b00c048443cfaba72637a22d27e202a42731d8e9e71cccd59c8f7dafc1816f1fd4508d337ec75f59891ebbdadc275b2daba466f e34b59513422eb905b53d7dc6c0862cea535eb96.patch +921d69e28a2f63a6eaccdfbd6f53173d2e0c59dd650dd83c0d8f816b5f23f1ba61abb393b0cf5e48d80ce363df4f3e609de34a4e5a73c2b520dba96b76eda0c9 anbox-launch.sh +3e458e6215ecf0ac94d749f4d78e464850dcf2cc2b616b2f7ddf26e9617d63a90bd0c8be59e4540141a813af4bad84d0f84874105f7ef9de8149666fc3828da7 anbox.desktop +f10858bab173d6254efcdfe8ebea2e5717ec4a6bd7723d65c18e36fadbd06a8576786ad3c07fa6319cc23a6f18254d70ca34099cbcc633ea4341fc892c321610 lxc4.patch +51ef961527436aed33f817e37da8466e0b57da344233e9e5decec62bff7da45631f0b300dfc129bf2bd179143dfc900fa9bf9a64ac86c155712d8957d449fca4 apparmor.patch +" diff --git a/unmaintained/anbox/anbox-container-manager.initd b/unmaintained/anbox/anbox-container-manager.initd new file mode 100644 index 0000000000..d692e05238 --- /dev/null +++ b/unmaintained/anbox/anbox-container-manager.initd @@ -0,0 +1,38 @@ +#!/sbin/openrc-run + +supervisor=supervise-daemon + +name="Anbox container manager" +command=/usr/bin/anbox +command_args="container-manager --daemon --privileged --data-path=/var/lib/anbox --android-image=/usr/share/anbox/android.img" + +depend() { + need localmount sysfs cgroups fuse + use net + after firewall +} + +start_pre() { + # that's all you need to avoid the lxc dependency + checkpath --directory /usr/lib/lxc + checkpath --directory /usr/lib/lxc/rootfs + + modprobe loop + modprobe tun + + if ip link show anbox0 >/dev/null 2>&1; then + ewarn "anbox0 network interface already exists" + else + ebegin "Creating anbox0 network interface" + /usr/share/anbox/anbox-bridge.sh start + eend $? + fi +} + +stop_post() { + if ip link show anbox0 >/dev/null 2>&1; then + ebegin "Removing anbox0 network interface" + /usr/share/anbox/anbox-bridge.sh stop + eend $? + fi +} diff --git a/unmaintained/anbox/anbox-launch.sh b/unmaintained/anbox/anbox-launch.sh new file mode 100644 index 0000000000..ce5286a8df --- /dev/null +++ b/unmaintained/anbox/anbox-launch.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# https://gitlab.com/postmarketOS/pmaports/-/issues/479 +# EGL_PLATFORM=wayland is broken on desktop as +# Anbox require PBuffer support but Wayland EGL +# doesn't provide it. Unsetting this value +# unbreaks Anbox on e.g. Plasma Mobile. +if [ "$EGL_PLATFORM" = wayland ]; then + export EGL_PLATFORM + unset EGL_PLATFORM +fi + +# This breaks Anbox display if EGL_PLATFORM is not +# set to wayland. Since EGL_PLATFORM is never set +# to wayland, let's unset SDL_VIDEODRIVER if it is. +if [ "$SDL_VIDEODRIVER" = wayland ]; then + export SDL_VIDEODRIVER + unset SDL_VIDEODRIVER +fi + +# We let Anbox autostart the session manager as this +# provides a splash-screen +anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity diff --git a/unmaintained/anbox/anbox.confd b/unmaintained/anbox/anbox.confd new file mode 100644 index 0000000000..a519399936 --- /dev/null +++ b/unmaintained/anbox/anbox.confd @@ -0,0 +1,8 @@ +# Sample conf.d file for alpine linux + +# +# Specify daemon options here. +# + +sample_opts="" +sample_user="" diff --git a/unmaintained/anbox/anbox.desktop b/unmaintained/anbox/anbox.desktop new file mode 100644 index 0000000000..2a677b12f8 --- /dev/null +++ b/unmaintained/anbox/anbox.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Anbox +GenericName=Android in a box +Version=1.0 +Type=Application +Icon=/usr/share/icons/hicolor/512x512/anbox.png +TryExec=anbox +Exec=anbox-launch +Terminal=false diff --git a/unmaintained/anbox/anbox.post-install b/unmaintained/anbox/anbox.post-install new file mode 100644 index 0000000000..79cf891163 --- /dev/null +++ b/unmaintained/anbox/anbox.post-install @@ -0,0 +1,11 @@ +#!/bin/sh + +cat <<EOT + +Anbox needs an adapted android image installed to /usr/share/anbox/android.img. +You can build one using the instructions here: +https://github.com/anbox/anbox/blob/master/docs/build-android.md. +Alternatively, you can use a prebuilt one by upstream: +https://build.anbox.io/android-images/ + +EOT diff --git a/unmaintained/anbox/apparmor.patch b/unmaintained/anbox/apparmor.patch new file mode 100644 index 0000000000..3a8acef6b3 --- /dev/null +++ b/unmaintained/anbox/apparmor.patch @@ -0,0 +1,12 @@ +https://github.com/anbox/anbox/pull/1856 +--- a/src/anbox/container/lxc_container.cpp ++++ b/src/anbox/container/lxc_container.cpp +@@ -390,8 +390,6 @@ void LxcContainer::start(const Configuration &configuration) { + // anbox-support interface. The container manager itself runs within a + // child profile snap.anbox.container-manager//lxc too. + set_config_item("lxc.apparmor.profile", "snap.anbox.container-manager//container"); +-#else +- set_config_item(lxc_config_apparmor_profile_key, "unconfined"); + #endif + + if (!privileged_) diff --git a/unmaintained/anbox/give-more-time-to-start.patch b/unmaintained/anbox/give-more-time-to-start.patch new file mode 100644 index 0000000000..49bc059210 --- /dev/null +++ b/unmaintained/anbox/give-more-time-to-start.patch @@ -0,0 +1,13 @@ +Anbox tend not to leave enough time for Android to start. +This patch gives more breathing room. +--- a/src/anbox/cmds/launch.cpp ++++ b/src/anbox/cmds/launch.cpp +@@ -34,7 +34,7 @@ + namespace fs = boost::filesystem; + + namespace { +-constexpr unsigned int max_session_mgr_wait_attempts{10}; ++constexpr unsigned int max_session_mgr_wait_attempts{100}; + const std::chrono::seconds session_mgr_wait_interval{5}; + constexpr unsigned int max_dbus_service_wait_attempts{10}; + const std::chrono::seconds dbus_service_wait_interval{5}; diff --git a/unmaintained/anbox/lxc4.patch b/unmaintained/anbox/lxc4.patch new file mode 100644 index 0000000000..7f229b4aae --- /dev/null +++ b/unmaintained/anbox/lxc4.patch @@ -0,0 +1,16 @@ +https://github.com/anbox/anbox/pull/1827 +--- a/src/anbox/container/lxc_container.cpp ++++ b/src/anbox/container/lxc_container.cpp +@@ -343,8 +343,10 @@ void LxcContainer::start(const Configura + set_config_item(lxc_config_tty_max_key, "0"); + set_config_item(lxc_config_uts_name_key, "anbox"); + +- set_config_item("lxc.group.devices.deny", ""); +- set_config_item("lxc.group.devices.allow", ""); ++ set_config_item("lxc.cgroup.devices.deny", ""); ++ set_config_item("lxc.cgroup.devices.allow", ""); ++ set_config_item("lxc.cgroup2.devices.deny", ""); ++ set_config_item("lxc.cgroup2.devices.allow", ""); + + // We can't move bind-mounts, so don't use /dev/lxc/ + set_config_item(lxc_config_tty_dir_key, ""); diff --git a/unmaintained/anbox/musl-fixes.patch b/unmaintained/anbox/musl-fixes.patch new file mode 100644 index 0000000000..cd14a08d61 --- /dev/null +++ b/unmaintained/anbox/musl-fixes.patch @@ -0,0 +1,26 @@ +diff --git a/external/process-cpp-minimal/include/core/posix/standard_stream.h b/external/process-cpp-minimal/include/core/posix/standard_stream.h +index f50a9b7..4a67a80 100644 +--- a/external/process-cpp-minimal/include/core/posix/standard_stream.h ++++ b/external/process-cpp-minimal/include/core/posix/standard_stream.h +@@ -23,6 +23,10 @@ + + #include <cstdint> + ++#undef stdin ++#undef stdout ++#undef stderr ++ + namespace core + { + namespace posix +diff --git a/external/process-cpp-minimal/src/CMakeLists.txt b/external/process-cpp-minimal/src/CMakeLists.txt +index dec4659..20c9053 100644 +--- a/external/process-cpp-minimal/src/CMakeLists.txt ++++ b/external/process-cpp-minimal/src/CMakeLists.txt +@@ -46,4 +46,5 @@ target_link_libraries( + + ${Boost_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} ++ execinfo + ) + diff --git a/unmaintained/anbox/no-bundled-sdbus.patch b/unmaintained/anbox/no-bundled-sdbus.patch new file mode 100644 index 0000000000..043be3c48d --- /dev/null +++ b/unmaintained/anbox/no-bundled-sdbus.patch @@ -0,0 +1,46 @@ +Upstream: no. I've tried to write a proper (upstreamable) fix, but it's not ready yet. + +--- a/external/CMakeLists.txt ++++ b/external/CMakeLists.txt +@@ -6,12 +6,3 @@ add_subdirectory(backward-cpp) + set(BUILD_TESTING OFF) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error") + add_subdirectory(cpu_features EXCLUDE_FROM_ALL) +-include(ExternalProject) +-ExternalProject_Add(sdbus-cpp +- PREFIX sdbus-cpp +- SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/sdbus-cpp" +- INSTALL_COMMAND "" +- CMAKE_CACHE_ARGS +- -DBUILD_CODE_GEN:BOOL=ON +- -DBUILD_SHARED_LIBS:BOOL=OFF +-) +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -26,7 +26,6 @@ include_directories( + ${CMAKE_SOURCE_DIR}/external/android-emugl/host/libs/renderControl_dec + ${CMAKE_BINARY_DIR}/external/android-emugl/host/libs/renderControl_dec + ${CMAKE_SOURCE_DIR}/external/cpu_features/include +- ${CMAKE_SOURCE_DIR}/external/sdbus-cpp/include + ) + + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBINDERFS_PATH=\"\\\"${BINDERFS_PATH}\\\"\"") +@@ -59,7 +59,7 @@ add_library(anbox-protobuf + target_link_libraries(anbox-protobuf + ${PROTOBUF_LITE_LIBRARIES}) + +-set(XML2CPP ${CMAKE_BINARY_DIR}/external/sdbus-cpp/src/sdbus-cpp-build/tools/sdbus-c++-xml2cpp) ++set(XML2CPP sdbus-c++-xml2cpp) + + macro(DBusServer BaseName) + add_custom_command( +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -59,6 +59,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) + find_package(Boost COMPONENTS filesystem log serialization system thread program_options) + find_package(PkgConfig) + find_package(Threads) ++find_package(SDBus-C++ REQUIRED) + find_package(EGL REQUIRED) + find_package(GLESv2 REQUIRED) + find_package(Protobuf REQUIRED) diff --git a/unmaintained/cargo-patch/APKBUILD b/unmaintained/cargo-patch/APKBUILD new file mode 100644 index 0000000000..0a30d1255a --- /dev/null +++ b/unmaintained/cargo-patch/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: +pkgname=cargo-patch +pkgver=0.1.10 +pkgrel=2 +pkgdesc="Cargo subcommand for patching dependencies using patch files" +url="https://github.com/mettke/cargo-patch" +arch="aarch64 armhf armv7 ppc64le x86 x86_64" # blocked by rust/cargo +license="MIT" +depends="cargo" +makedepends=" + curl-dev + libgit2-dev + libssh2-dev + openssl-dev + " +options="!check" # TODO: Test failure with libgit2 1.4.2 +source="https://github.com/mettke/cargo-patch/archive/v$pkgver/cargo-patch-$pkgver.tar.gz" + +export LIBSSH2_SYS_USE_PKG_CONFIG=1 # use system libssh2 + +prepare() { + default_prepare + + # Optimize binary for size. + cat >> Cargo.toml <<-EOF + + [profile.release] + codegen-units = 1 + lto = true + opt-level = "z" + panic = "abort" + EOF + cargo fetch --locked +} + +build() { + cargo build --frozen --release +} + +check() { + cargo test --frozen +} + +package() { + install -D -m755 target/release/cargo-patch -t "$pkgdir"/usr/bin/ +} + +sha512sums=" +d95468941954e765a5fa65afce31acfef8fea228c73002e3fe78aa14cfd360ab2d2ee9150032f327d0e5e5631f000859216282a200695256a0a600c9c7f72659 cargo-patch-0.1.10.tar.gz +" diff --git a/unmaintained/closure-compiler/APKBUILD b/unmaintained/closure-compiler/APKBUILD new file mode 100644 index 0000000000..ac93f8cfc8 --- /dev/null +++ b/unmaintained/closure-compiler/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +# TODO: Build it from source instead of downloading prebuilt JAR (although +# it does not contain any native binaries), so we can patch it when needed. +pkgname=closure-compiler +pkgver=20171203 +pkgrel=1 +pkgdesc="A JavaScript checker and optimizer" +url="https://developers.google.com/closure/compiler/" +arch="noarch !s390x !riscv64" # java +license="Apache-2.0" +depends="java-jre-headless" +source="$pkgname-$pkgver-jar.tar.gz::https://dl.google.com/$pkgname/compiler-$pkgver.tar.gz + $pkgname" +builddir="$srcdir/$pkgname-$pkgver" + +check() { + java -jar "$srcdir"/$pkgname-v$pkgver.jar --version +} + +package() { + cd "$srcdir" + + install -D -m 644 $pkgname-v$pkgver.jar \ + "$pkgdir"/usr/share/java/$pkgname-$pkgver.jar + ln -s $pkgname-$pkgver.jar "$pkgdir"/usr/share/java/$pkgname.jar + + install -D -m 755 $pkgname "$pkgdir"/usr/bin/$pkgname +} + +sha512sums="478e8f1b665e4ac74f5307aa9fdc8042d743e8e455144894a1dde8596f29befff08e34343718a663fa0ae82007d72908b015af388bfac19cdfaa95985737614b closure-compiler-20171203-jar.tar.gz +18127beb77da790d1fa13fddc4056c485ca2b4a263becd7d37542dc705d08c342f842aa22322dd9aaa8e0ad651f45fc4c0ff632201cc5f20d391843d2c1b2661 closure-compiler" diff --git a/unmaintained/closure-compiler/closure-compiler b/unmaintained/closure-compiler/closure-compiler new file mode 100644 index 0000000000..65e6560ddd --- /dev/null +++ b/unmaintained/closure-compiler/closure-compiler @@ -0,0 +1,4 @@ +#!/bin/sh + +JAVA_HOME=${JAVA_HOME:="/usr/lib/jvm/default-jvm"} +"$JAVA_HOME"/bin/java -jar /usr/share/java/closure-compiler.jar "$@" diff --git a/unmaintained/creduce/204.patch b/unmaintained/creduce/204.patch new file mode 100644 index 0000000000..1c02a36553 --- /dev/null +++ b/unmaintained/creduce/204.patch @@ -0,0 +1,79 @@ +See: https://github.com/csmith-project/creduce/pull/204 +From 37a8db44d97029e95f3ab9a728d23053eb82c1cd Mon Sep 17 00:00:00 2001 +From: Bernhard Rosenkraenzer <bero@lindev.ch> +Date: Thu, 6 Feb 2020 15:02:35 +0100 +Subject: [PATCH] Port to LLVM 10.0 + +--- + clang_delta/TransformationManager.cpp | 27 +++++++++++++++++++++++++-- + 1 file changed, 25 insertions(+), 2 deletions(-) + +diff --git a/clang_delta/TransformationManager.cpp b/clang_delta/TransformationManager.cpp +index ca2f2b48..acf82837 100644 +--- a/clang_delta/TransformationManager.cpp ++++ b/clang_delta/TransformationManager.cpp +@@ -16,6 +16,7 @@ + + #include <sstream> + ++#include "clang/Basic/Builtins.h" + #include "clang/Basic/Diagnostic.h" + #include "clang/Basic/TargetInfo.h" + #include "clang/Lex/Preprocessor.h" +@@ -101,6 +102,7 @@ bool TransformationManager::initializeCompilerInstance(std::string &ErrorMsg) + CompilerInvocation &Invocation = ClangInstance->getInvocation(); + InputKind IK = FrontendOptions::getInputKindForExtension( + StringRef(SrcFileName).rsplit('.').second); ++#if LLVM_VERSION_MAJOR < 10 + if (IK.getLanguage() == InputKind::C) { + Invocation.setLangDefaults(ClangInstance->getLangOpts(), InputKind::C, T, PPOpts); + } +@@ -111,6 +113,18 @@ bool TransformationManager::initializeCompilerInstance(std::string &ErrorMsg) + Invocation.setLangDefaults(ClangInstance->getLangOpts(), InputKind::CXX, T, PPOpts); + } + else if(IK.getLanguage() == InputKind::OpenCL) { ++#else ++ if (IK.getLanguage() == Language::C) { ++ Invocation.setLangDefaults(ClangInstance->getLangOpts(), InputKind(Language::C), T, PPOpts); ++ } ++ else if (IK.getLanguage() == Language::CXX) { ++ // ISSUE: it might cause some problems when building AST ++ // for a function which has a non-declared callee, e.g., ++ // It results an empty AST for the caller. ++ Invocation.setLangDefaults(ClangInstance->getLangOpts(), InputKind(Language::CXX), T, PPOpts); ++ } ++ else if(IK.getLanguage() == Language::OpenCL) { ++#endif + //Commandline parameters + std::vector<const char*> Args; + Args.push_back("-x"); +@@ -122,7 +136,7 @@ bool TransformationManager::initializeCompilerInstance(std::string &ErrorMsg) + ClangInstance->createFileManager(); + + if(CLCPath != NULL && ClangInstance->hasFileManager() && +- ClangInstance->getFileManager().getDirectory(CLCPath, false) != NULL) { ++ ClangInstance->getFileManager().getDirectory(CLCPath, false)) { + Args.push_back("-I"); + Args.push_back(CLCPath); + } +@@ -132,10 +146,19 @@ bool TransformationManager::initializeCompilerInstance(std::string &ErrorMsg) + Args.push_back("-fno-builtin"); + + CompilerInvocation::CreateFromArgs(Invocation, ++#if LLVM_VERSION_MAJOR >= 10 ++ Args, ++#else + &Args[0], &Args[0] + Args.size(), ++#endif + ClangInstance->getDiagnostics()); + Invocation.setLangDefaults(ClangInstance->getLangOpts(), +- InputKind::OpenCL, T, PPOpts); ++#if LLVM_VERSION_MAJOR >= 10 ++ InputKind(Language::OpenCL), ++#else ++ InputKind::OpenCL, ++#endif ++ T, PPOpts); + } + else { + ErrorMsg = "Unsupported file type!"; diff --git a/unmaintained/creduce/APKBUILD b/unmaintained/creduce/APKBUILD new file mode 100644 index 0000000000..c7461e6107 --- /dev/null +++ b/unmaintained/creduce/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=creduce +pkgver=2.10.0 +pkgrel=6 +pkgdesc="A C/C++ program reducer" +url="https://embed.cs.utah.edu/creduce/" +#arch="all" +license="custom" +# util-linux provides lscpu +depends="clang indent perl perl-exporter-lite perl-file-which + perl-getopt-tabular perl-regexp-common perl-term-readkey + util-linux" +makedepends="clang-dev clang-static flex llvm-dev zlib-dev" +source="https://embed.cs.utah.edu/creduce/creduce-$pkgver.tar.gz + 204.patch" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --libexecdir=/usr/lib/$pkgname + + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="f2f2cc498cbf78331ea62e533579c84042ddc1ad8eb146adeae6b3a833e0ea4bb26a4ab5f1f61a30500a5a0c9c89cc1d4e4c8547aa9e4a14d3b5d744aeb4f6a7 creduce-2.10.0.tar.gz +c8c91ee37f6d633c34e6828a6235c409ec1e3f35292dc0722aa1c054ec8040cbd2bdb5f0792785a5c61cf3922c08f95ed819f9b1c2d82e793591c61dcbbb7249 204.patch" diff --git a/unmaintained/cryfs/0001-fix-for-python3.patch b/unmaintained/cryfs/0001-fix-for-python3.patch new file mode 100644 index 0000000000..2629a4691a --- /dev/null +++ b/unmaintained/cryfs/0001-fix-for-python3.patch @@ -0,0 +1,22 @@ +Upstream: No +Reason: Fix default python version for this script + +--- a/src/gitversion/getversion.py 2020-06-05 00:07:29.206108295 +0300 ++++ b/src/gitversion/getversion.py 2020-06-05 00:07:48.846126599 +0300 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + import versioneer + +--- a/src/gitversion/gitversion.cmake 2020-06-05 00:39:47.862225137 +0300 ++++ b/src/gitversion/gitversion.cmake 2020-06-05 00:40:18.162282012 +0300 +@@ -1,7 +1,7 @@ + set(DIR_OF_GITVERSION_TOOL "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "DIR_OF_GITVERSION_TOOL") + + function (get_git_version OUTPUT_VARIABLE) +- EXECUTE_PROCESS(COMMAND python ${DIR_OF_GITVERSION_TOOL}/getversion.py ++ EXECUTE_PROCESS(COMMAND python3 ${DIR_OF_GITVERSION_TOOL}/getversion.py + WORKING_DIRECTORY ${DIR_OF_GITVERSION_TOOL} + OUTPUT_VARIABLE VERSION + ERROR_VARIABLE error diff --git a/unmaintained/cryfs/APKBUILD b/unmaintained/cryfs/APKBUILD new file mode 100644 index 0000000000..d753f14ffa --- /dev/null +++ b/unmaintained/cryfs/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Pavel Pletenev <cpp.create@gmail.com> +# Maintainer: Pavel Pletenev <cpp.create@gmail.com> +pkgname=cryfs +pkgver=0.10.3 +pkgrel=1 +pkgdesc="Cryptographic filesystem for the cloud" +url="https://github.com/cryfs/cryfs" +# Fails on other arches +arch="x86_64 aarch64" +license="LGPL-3.0-only" +makedepends="cmake attr-dev curl-dev fuse-dev linux-headers + boost-dev python3" +source="$pkgname-$pkgver.tar.gz::https://github.com/cryfs/cryfs/archive/$pkgver.tar.gz + 0001-fix-for-python3.patch" + +prepare() { + default_prepare + echo "$pkgver" > VERSION +} + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + export GIT_CEILING_DIRECTORIES="$srcdir" + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=ON \ + -DBoost_USE_STATIC_LIBS=OFF \ + $CMAKE_CROSSOPTS . + make -C build -j1 +} + +check() { + ./build/test/gitversion/gitversion-test + ./build/test/cpp-utils/cpp-utils-test + ./build/test/parallelaccessstore/parallelaccessstore-test + ./build/test/blockstore/blockstore-test + ./build/test/blobstore/blobstore-test + ./build/test/cryfs/cryfs-test +} + +package() { + make -C build PREFIX=/usr DESTDIR="$pkgdir" install +} + +sha512sums="81380b8f455cc058427e638b55dcb4fcc64fc09930d897e750fb69509e8f100b048d050ec71e0acefe8a93973cf26ca4dc8dec806b905ce6d82ce78066ff01db cryfs-0.10.3.tar.gz +d299466c8cfaa0f1f75565756d95a12cd7fa94615f0292f31ad0494dc8a0aae35c22fbab023d7e183b95e877c58553a0c8f8ab1f7444df1f9d1b292c063edfb0 0001-fix-for-python3.patch" diff --git a/unmaintained/diffstat/APKBUILD b/unmaintained/diffstat/APKBUILD new file mode 100644 index 0000000000..97c7a0a604 --- /dev/null +++ b/unmaintained/diffstat/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Leszek Cimała <ernierasta@zori.cz> +# Maintainer: +pkgname=diffstat +pkgver=1.64 +pkgrel=0 +pkgdesc="read the output of diff and displays a histogram of the insertions, deletions, and modifications per-file" +url="https://invisible-island.net/diffstat" +arch="" # No tagged release archive +license="MIT" +subpackages="$pkgname-doc" +source="https://invisible-island.net/datafiles/release/diffstat.tar.gz" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="d647477beb49b0999c5de41d084da827528571c4848f40c69c2d64d060fc89848d15d03d59b1a31d79f02180f81d92cdf6e19d0172482bc569cf2a87476f12cf diffstat.tar.gz" diff --git a/unmaintained/emscripten-fastcomp/APKBUILD b/unmaintained/emscripten-fastcomp/APKBUILD new file mode 100644 index 0000000000..b95eef2a87 --- /dev/null +++ b/unmaintained/emscripten-fastcomp/APKBUILD @@ -0,0 +1,81 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> + +# NOTE: This is a fork of LLVM project needed for emscripten. It provides +# JSBackend and WebAssembly, these will be hopefully someday merged into +# upstream LLVM. +# TODO: Remove unneeded binaries. +pkgname=emscripten-fastcomp +# Keep in sync with package emscripten! +pkgver=1.40.1 +pkgrel=1 +pkgdesc="The Clang + LLVM backend for Emscripten" +url="https://emscripten.org/" +# riscv64 is not supported upstream +arch="all !riscv64" +license="NCSA" +depends="python3" +makedepends="cmake zlib-dev" +source="emscripten-fastcomp-$pkgver.tar.gz::https://github.com/emscripten-core/emscripten-fastcomp/archive/$pkgver.tar.gz + emscripten-fastcomp-clang-$pkgver.tar.gz::https://github.com/emscripten-core/emscripten-fastcomp-clang/archive/$pkgver.tar.gz + llvm-fix-build-with-musl-libc.patch + none-build-type.patch + " +options="!check" # some tests are broken, don't bother with it for now + +_prefix="usr/lib/$pkgname" +ldpath="/$_prefix/lib" +# Avoid conflicts in provided so:* names with llvm package. +sonameprefix="$pkgname:" + +prepare() { + ln -sf ../../$pkgname-clang-$pkgver "$builddir"/tools/clang + + default_prepare + + update_config_guess +} + +build() { + case "$CARCH" in + ppc64le) export CXXFLAGS="$CXXFLAGS -U__ALTIVEC__";; + esac + + # XXX: Is it a good idea to omit X86 in LLVM_TARGETS_TO_BUILD? + # https://github.com/kripken/emscripten-fastcomp/issues/174 + cmake -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX="/$_prefix" \ + -DCMAKE_VERBOSE_MAKEFILE=NO \ + -DPYTHON_EXECUTABLE=/usr/bin/python3 \ + -DCLANG_BUILD_EXAMPLES=OFF \ + -DCLANG_INCLUDE_TESTS=OFF \ + -DLLVM_BUILD_DOCS=OFF \ + -DLLVM_BUILD_LLVM_DYLIB=ON \ + -DLLVM_BUILD_RUNTIME=OFF \ + -DLLVM_ENABLE_ZLIB=ON \ + -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly \ + -DLLVM_HOST_TRIPLE="$CHOST" \ + -DLLVM_INCLUDE_EXAMPLES=OFF \ + -DLLVM_INCLUDE_TESTS=OFF \ + -DLLVM_LINK_LLVM_DYLIB=ON \ + -DLLVM_TARGETS_TO_BUILD=JSBackend + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build + cd "$pkgdir"/$_prefix + + # emcc -v expects this file to exist. + cp "$builddir"/emscripten-version.txt . + + # Remove unneeded files and clutter. + rm -r include libexec share lib/clang lib/cmake + rm lib/*.a bin/*-test +} + +sha512sums="569ed4b253db8b8305e93a0e3e3db18e64f7ad55da228b29a632290479c516aa8df6e20b8f695bbdcfdde14ba7be0c4fa27e54c5b1ded3a6cef0d59b3f1cb0d0 emscripten-fastcomp-1.40.1.tar.gz +f9abae060ebb391d1dd4f3b478cd2214318e333c820a5aca89fcf3bc30bd9903bd56d861c4c60d806ec6539fd340372f686e56d0750ddb06c54802a41b5b4ed7 emscripten-fastcomp-clang-1.40.1.tar.gz +49e9a3ddf9b1c881c70af4b5c6c99d087733453610f7b2733f91733e92b6097a2f427e496a1374f0f051b8429465de5f1f47d2e08239dca721b59333fc842925 llvm-fix-build-with-musl-libc.patch +b0d692ae595ea72cf6950b7d152c83a301c2f24178ec800a5e9c365961c78067512d0cdedb129fa0e528217a63d861daf6b9e2105d0309f65d3936a779a79144 none-build-type.patch" diff --git a/unmaintained/emscripten-fastcomp/llvm-fix-build-with-musl-libc.patch b/unmaintained/emscripten-fastcomp/llvm-fix-build-with-musl-libc.patch new file mode 100644 index 0000000000..475f04e713 --- /dev/null +++ b/unmaintained/emscripten-fastcomp/llvm-fix-build-with-musl-libc.patch @@ -0,0 +1,43 @@ +From 5c571082fdaf61f6df19d9b7137dc26d71334058 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 18 Feb 2016 10:33:04 +0100 +Subject: [PATCH 2/3] Fix build with musl libc + +On musl libc the fopen64 and fopen are the same thing, but for +compatibility they have a `#define fopen64 fopen`. Same applies for +fseek64, fstat64, fstatvfs64, ftello64, lstat64, stat64 and tmpfile64. +--- + include/llvm/Analysis/TargetLibraryInfo.h | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/include/llvm/Analysis/TargetLibraryInfo.h b/include/llvm/Analysis/TargetLibraryInfo.h +index 7becdf0..7f14427 100644 +--- a/include/llvm/Analysis/TargetLibraryInfo.h ++++ b/include/llvm/Analysis/TargetLibraryInfo.h +@@ -19,6 +19,26 @@ + #include "llvm/IR/PassManager.h" + #include "llvm/Pass.h" + ++#undef fopen64 ++#undef fseeko64 ++#undef fstat64 ++#undef fstatvfs64 ++#undef ftello64 ++#undef lstat64 ++#undef stat64 ++#undef tmpfile64 ++#undef F_GETLK64 ++#undef F_SETLK64 ++#undef F_SETLKW64 ++#undef flock64 ++#undef open64 ++#undef openat64 ++#undef creat64 ++#undef lockf64 ++#undef posix_fadvise64 ++#undef posix_fallocate64 ++#undef off64_t ++ + namespace llvm { + template <typename T> class ArrayRef; + diff --git a/unmaintained/emscripten-fastcomp/none-build-type.patch b/unmaintained/emscripten-fastcomp/none-build-type.patch new file mode 100644 index 0000000000..14f10b223f --- /dev/null +++ b/unmaintained/emscripten-fastcomp/none-build-type.patch @@ -0,0 +1,15 @@ +The build system includes its one check for available CMake build types. +This check is incorrect as it doesn't include the None build type. + +diff -upr emscripten-fastcomp-1.39.0.orig/CMakeLists.txt emscripten-fastcomp-1.39.0/CMakeLists.txt +--- emscripten-fastcomp-1.39.0.orig/CMakeLists.txt 2020-02-22 00:06:01.828125245 +0100 ++++ emscripten-fastcomp-1.39.0/CMakeLists.txt 2020-02-22 00:06:29.265827242 +0100 +@@ -267,7 +267,7 @@ endif() + string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) + + if (CMAKE_BUILD_TYPE AND +- NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL)$") ++ NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(NONE|DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL)$") + message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}") + endif() + diff --git a/unmaintained/emscripten/APKBUILD b/unmaintained/emscripten/APKBUILD new file mode 100644 index 0000000000..2d8555f6a1 --- /dev/null +++ b/unmaintained/emscripten/APKBUILD @@ -0,0 +1,189 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> + +# Note: This software is total mess and it seems to be nearly impossible to +# create a clean distribution package. +pkgname=emscripten +# Keep with sync with pkg emscrypten-fastcomp! +pkgver=1.39.0 +pkgrel=2 +pkgdesc="An LLVM-to-JavaScript Compiler" +url="https://emscripten.org/" +arch="" # Test failures +license="MIT UOI-NCSA" +depends="$pkgname-optimizer>=$pkgver emscripten-fastcomp>=$pkgver + nodejs python3 node-closurecompiler-externs" +makedepends="binaryen clang cmake" +checkdepends="closure-compiler" +subpackages="$pkgname-optimizer + $pkgname-libs-asmjs:libs_asmjs:noarch + $pkgname-libs-wasm:libs_wasm:noarch" +source="emscripten-$pkgver.tar.gz::https://github.com/emscripten-core/emscripten/archive/$pkgver.tar.gz + fix-python-shebang.patch + settings_template-paths.patch + add-system-level-config.patch + move-emcc-txt.patch + binaryen-wasm-js-path.patch + closurecompiler-externs-path.patch + closurecompiler-language_in-es6.patch + embuilder-fix-task-all-for-wasm.patch + embuilder-omit-provided.patch + add-global-cache.patch + emscripten.cfg" + +_ports="Bullet-version_1:bullet + FreeType-version_1:freetype + libpng-version_1:libpng + Ogg-version_1:ogg + SDL2-version_13:sdl2 + SDL2_image-version_3:sdl2-image + SDL2_net-version_2:sdl2-net + SDL2_ttf-version_1:sdl2-ttf + Vorbis-version_1:vorbis + zlib-version_1:zlib + " +for _port in $_ports; do + _port=${_port%:*} + source="$source $pkgname-port-$_port-zip::https://github.com/emscripten-ports/${_port%-*}/archive/${_port##*-}.zip" +done + +export EM_CACHE="$srcdir/cache" +export EM_CONFIG="$srcdir/.emscripten" +export EM_PORTS="$srcdir/ports" + +prepare() { + default_prepare + + # This file is read from emcc.py for --help. + cp site/build/text/docs/tools_reference/emcc.txt . + + sed -e "s|/usr/share/emscripten|$builddir|" \ + -e "s|/usr/bin/emoptimizer|$builddir/tools/optimizer/optimizer|" \ + "$srcdir"/emscripten.cfg > "$EM_CONFIG" + + # Symlink fetched ports to the directory where emscripten can find them. + mkdir -p "$EM_PORTS" + local port; for port in $_ports; do + ln -s "$srcdir"/$pkgname-port-${port%:*}-zip "$EM_PORTS"/${port#*:}.zip + done + + # Backup and patch system_libs.py to block fetching ports from internet. + cp tools/system_libs.py tools/system_libs.py.orig + sed -Ei 's/^(\s+).*\.urlopen\(.*/\1logging.error("fetching disabled in abuild"); exit(1)/' \ + tools/system_libs.py +} + +build() { + cd "$builddir"/tools/optimizer + + msg "Building optimizer..." + cmake \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_VERBOSE_MAKEFILE=ON + make + + cd "$builddir" + + msg "Building libraries and ports for asm.js..." + ./embuilder.py build ALL + + msg "Building libraries and ports for WebAssembly..." + EMCC_WASM_BACKEND=1 ./embuilder.py build ALL +} + +check() { + cd "$builddir"/tests + + rm -f hello_world.js* + ../emcc -Os --closure 1 -o hello_world.js hello_world.c + node hello_world.js +} + +package() { + local destdir="$pkgdir/usr/share/$pkgname" + local name + + mkdir -p "$destdir" + cp -r "$builddir"/* "$destdir"/ + + cd "$destdir" + + # Revert original file without connection blocking. + mv tools/system_libs.py.orig tools/system_libs.py + + find . -name "*.bat" -delete + find . -name "*.pyc" -delete # these contain wrong absolute path + rm -r docs # there are only few PDFs and TeX sources + rm -r media # media for website + rm -r site # a website (?) + rm -r tests # looks more like a dump of random sources than decent tests + rm -r third_party # bundled stuff + rm -r tools/optimizer # we've already built it + rm AUTHORS LICENSE ./*.md ./*.markdown package.json + rm system/lib/build_cxx_natively.sh tools/update_libc_symbols.sh # garbage + + mkdir -p "$pkgdir"/usr/bin + for name in em++ em-config emar embuilder.py emcc emcmake \ + emconfigure emlink.py emmake emrun emscons + do + ln -s ../share/$pkgname/$name "$pkgdir"/usr/bin/$name + done + + install -D -m 644 "$srcdir"/emscripten.cfg "$pkgdir"/etc/emscripten.cfg + + mkdir cache # this directory should not exist yet! + install -m 644 "$EM_CACHE"/is_vanilla.txt cache/ +} + +optimizer() { + pkgdesc="Emscripten's optimizer for asm.js code" + depends="" + + install -D -m 755 "$builddir"/tools/optimizer/optimizer \ + "$subpkgdir"/usr/bin/emoptimizer +} + +libs_asmjs() { + pkgdesc="Prebuilt libraries and ports for Emscripten - asm.js" + depends="$pkgname=$pkgver-r$pkgrel" + local destdir="$subpkgdir/usr/share/$pkgname/cache/asmjs" + + mkdir -p "$destdir" + cp -r "$EM_CACHE"/asmjs/*.bc "$destdir"/ +} + +libs_wasm() { + pkgdesc="Prebuilt libraries and ports for Emscripten - WebAssembly" + depends="$pkgname=$pkgver-r$pkgrel" + local destdir="$subpkgdir/usr/share/$pkgname/cache/wasm" + + mkdir -p "$destdir" + cp -r "$EM_CACHE"/wasm/*.bc "$destdir"/ +} + +sha512sums="29cafab7b880e7919c650e41e1fc04b75cc8325c6d10e425ecd1249326c46ce1d4ab0feaa8990e7f9fcdf78573d656b5cebecd6f8c4c8a38a949023930470c8d emscripten-1.39.0.tar.gz +a61e172ced6b72adb53a840255a9753905a0c7a1c9f8965345781b9cdcc8a596c4dc88f036e91bd5c05d8b3eb2908bbb7d991c4e1abcf35a46be67b9765e546a fix-python-shebang.patch +f190ea32dcd4af2661f455ffd8773cb0f7b30ba4a96d22609e11af7186ed1a5c230f3c379d717f23213e87143bb5601acc4d75799631854d0312ff308cbcc14b settings_template-paths.patch +10a7a545f468a5f71fdf1cca0e0be983db5d21387202b851bd11f811c2a0a74f4e4c8733ae9ff933df4ea49c3f5e8e4e16fc3651bc98bb8c37a0828bb29eca7e add-system-level-config.patch +6613ef4cf41bcf0ecc13a0415cdc847f4ec112f07dd19573000ea6a9a6f2360aee6b2db01f822d117d5022dc58b2421be89fe3421c46fd6857737d07ce489c1e move-emcc-txt.patch +a2a2c9b56e8d655b06fdbac2e297e07a0bbcdc3e3df7c913b5caac8ddf20f66b91ed77ac46275adcf8e92baedb5a50cb554c8f3fa59823e17006e17d8d11e820 binaryen-wasm-js-path.patch +1d699aa0ab4b257d58c30ebefd6fbce9a74df964c37f360dcbcaaa6e6c6f4bc8e3f706f32e5855fb6e307d099c7eaca47d07d12a52c83caab43b268fccb606ef closurecompiler-externs-path.patch +5b63f42e4934c7c6d5eedb9e46636a488bc0723618dd0b5d5b720d58cf9d1f6a6e6a768fe1ce1188f86bbb931b6881dfdfc36f8c0584775cb66a9d9e8a2cbb9a closurecompiler-language_in-es6.patch +53bb9b64222dd445e8aefbb5a4b87bc6d562ea578a6f7a04c2605703f0235633583144fe478031e650a7346ba89f6e0aaf6c435aedb8398131fa02940356bc17 embuilder-fix-task-all-for-wasm.patch +3d2fb817ea3e1dd661900df1e27bd135f39076723494b7ffbbe9e1561ae0a0e62a4ed0058301cf3e6b9a13f75adafe58dc902d4a32ade2cb16754a7fd5e542af embuilder-omit-provided.patch +8d02f598df12ecbebab151a9d9e6972164bddf4da586e5a3070f2a5b35248b622a663a513295c1bf79fcf13523940ea5e47f8ab1def86e28b260dba8bfef7bac add-global-cache.patch +42142064f828c39fbeb04e65c13c0eae8d843ee8541e67db361086b2d44ad896604d561220363f71aa8aa9f07ae6c285a39f49d9078f5a56e022879ed987c020 emscripten.cfg +3922486816cf7d99ee02c3c1ef63d94290e8ed304016dd9927137d04206e7674d9df8773a4abb7bb57783d0a5107ad0f893aa87acfb34f7b316eec22ca55a536 emscripten-port-Bullet-version_1-zip +0d0b1280ba0501ad0a23cf1daa1f86821c722218b59432734d3087a89acd22aabd5c3e5e1269700dcd41e87073046e906060f167c032eb91a3ac8c5808a02783 emscripten-port-FreeType-version_1-zip +a19ede8a4339f2745a490c22f3893899e1a5eae9d2b270e49d88d3a85239fbbaa26c9a352d0e6fb8bb69b4f45bd00c1ae9eff29b60cf03e79c5df45a4409992f emscripten-port-libpng-version_1-zip +929e8d6003c06ae09593021b83323c8f1f54532b67b8ba189f4aedce52c25dc182bac474de5392c46ad5b0dea5a24928e4ede1492d52f4dd5cd58eea9be4dba7 emscripten-port-Ogg-version_1-zip +e7cbcafc1398c337814caa4b91692989d65ed5ffdd8ff1bebb9673a566bba6c16f1e3b72abefaff4b3e390b6571eba678e9ea197cdfd14641648b5282688ef50 emscripten-port-SDL2-version_13-zip +785d6f636b5124dbfc65841fcd5c75df42c8186cb85e5c977e6e321317f0381a7690125a78e6687da1081b1ce6c876040d04083e770e2c8b28e7c2e776287555 emscripten-port-SDL2_image-version_3-zip +317b22ad9b6b2f7b40fac7b7c426da2fa2da1803bbe58d480631f1e5b190d730763f2768c77c72affa806c69a1e703f401b15a1be3ec611cd259950d5ebc3711 emscripten-port-SDL2_net-version_2-zip +6ce426de0411ba51dd307027c4ef00ff3de4ee396018e524265970039132ab20adb29c2d2e61576c393056374f03fd148dd96f0c4abf8dcee51853dd32f0778f emscripten-port-SDL2_ttf-version_1-zip +99bee75beb662f8520bbb18ad6dbf8590d30eb3a7360899f0ac4764ca72fe8013da37c9df21e525f9d2dc5632827d4b4cea558cbc938e7fbed0c41a29a7a2dc5 emscripten-port-Vorbis-version_1-zip +77f7d8f18fe11bb66a57e358325b7422d721f7b506bd63293cfde74079f958864db66ead5a36c311a76dd8c2b089b7659641a5522de650de0f9e6865782a60dd emscripten-port-zlib-version_1-zip" diff --git a/unmaintained/emscripten/add-global-cache.patch b/unmaintained/emscripten/add-global-cache.patch new file mode 100644 index 0000000000..710d842e47 --- /dev/null +++ b/unmaintained/emscripten/add-global-cache.patch @@ -0,0 +1,33 @@ +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Mon, 3 Apr 2017 20:49:00 +0200 +Subject: [PATCH] Add support for global r/o cache of prebuilt libraries + +--- a/tools/cache.py ++++ b/tools/cache.py +@@ -29,9 +29,12 @@ + + if use_subdir: + if os.environ.get('EMCC_WASM_BACKEND') and os.environ.get('EMCC_WASM_BACKEND') != '0': +- dirname = os.path.join(dirname, 'wasm') ++ self.subdir = 'wasm' + else: +- dirname = os.path.join(dirname, 'asmjs') ++ self.subdir = 'asmjs' ++ dirname = os.path.join(dirname, self.subdir) ++ else: ++ self.subdir = '' + self.dirname = dirname + self.debug = debug + +@@ -90,6 +93,11 @@ + if what is None: + if shortname.endswith(('.bc', '.so', '.a')): what = 'system library' + else: what = 'system asset' ++ if shared.GLOBAL_CACHE_DIR and os.getenv('EM_USE_GLOBAL_CACHE') == '1' and not force: ++ path = os.path.join(shared.GLOBAL_CACHE_DIR, self.subdir, shortname) ++ if os.path.exists(path): ++ logging.info('using %s: %s from global cache: %s' % (what, shortname, path)) ++ return path + message = 'generating ' + what + ': ' + shortname + '... (this will be cached in "' + cachename + '" for subsequent builds)' + logging.info(message) + self.ensure() diff --git a/unmaintained/emscripten/add-system-level-config.patch b/unmaintained/emscripten/add-system-level-config.patch new file mode 100644 index 0000000000..b57860941c --- /dev/null +++ b/unmaintained/emscripten/add-system-level-config.patch @@ -0,0 +1,85 @@ +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Wed, 29 Mar 2017 22:02:00 +0200 +Subject: [PATCH] Add system-level config /etc/emscripten.cfg + +If ~/.emscripten does not exist and /etc/emscripten.cfg do exist, then +/etc/emscripten.cfg will be used. + +--- a/emscripten.py ++++ b/emscripten.py +@@ -1791,7 +1791,7 @@ + help='Where to write the output; defaults to stdout.') + parser.add_option('-c', '--compiler', + default=None, +- help='Which JS engine to use to run the compiler; defaults to the one in ~/.emscripten.') ++ help='Which JS engine to use to run the compiler; defaults to the one in ~/.emscripten or /etc/emscripten.cfg.') + parser.add_option('-s', '--setting', + dest='settings', + default=[], + +--- a/tools/file_packager.py ++++ b/tools/file_packager.py +@@ -24,8 +24,8 @@ + it knows that closure is not run. + + --crunch=X Will compress dxt files to crn with quality level X. The crunch commandline tool must be present +- and CRUNCH should be defined in ~/.emscripten that points to it. JS crunch decompressing code will +- be added to convert the crn to dds in the browser. ++ and CRUNCH should be defined in ~/.emscripten or /etc/emscripten.cfg that points to it. JS crunch ++ decompressing code will be added to convert the crn to dds in the browser. + crunch-worker.js will be generated in the current directory. You should include that file when + packaging your site. + DDS files will not be crunched if the .crn is more recent than the .dds. This prevents a lot of +--- a/tools/scons/site_scons/site_tools/emscripten/emscripten.py ++++ b/tools/scons/site_scons/site_tools/emscripten/emscripten.py +@@ -10,6 +10,8 @@ + EM_CONFIG = os.environ.get('EM_CONFIG') + if not EM_CONFIG: + EM_CONFIG = os.path.expanduser('~/.emscripten') ++ if not os.path.exists(EM_CONFIG) and os.path.exists('/etc/emscripten.cfg'): ++ EM_CONFIG = '/etc/emscripten.cfg' + + if emscripten_path is None: + +--- a/tools/shared.py ++++ b/tools/shared.py +@@ -209,7 +209,10 @@ + EM_CONFIG = EM_CONFIG.replace(';', '\n') + '\n' + + if not EM_CONFIG: +- EM_CONFIG = '~/.emscripten' ++ if not os.path.exists(os.path.expanduser('~/.emscripten')) and os.path.exists('/etc/emscripten.cfg'): ++ EM_CONFIG = '/etc/emscripten.cfg' ++ else: ++ EM_CONFIG = '~/.emscripten' + if '\n' in EM_CONFIG: + CONFIG_FILE = None + logging.debug('EM_CONFIG is specified inline without a file') +@@ -271,7 +274,7 @@ + # without a file, this hints to "default" location at ~/.emscripten) + def hint_config_file_location(): + if CONFIG_FILE: return CONFIG_FILE +- else: return '~/.emscripten' ++ else: return '~/.emscripten' if os.path.exists(os.path.expanduser('~/.emscripten')) else '/etc/emscripten.cfg' + + def listify(x): + if type(x) is not list: return [x] +@@ -515,6 +515,8 @@ + sanity_file = CONFIG_FILE + '_sanity' + if get_llvm_target() == WASM_TARGET: + sanity_file += '_wasm' ++ if not os.access(os.path.dirname(sanity_file), os.W_OK): ++ sanity_file = os.path.join('/var/tmp', os.path.basename(sanity_file)) + if os.path.exists(sanity_file): + try: + sanity_mtime = os.stat(sanity_file).st_mtime +@@ -580,7 +580,8 @@ + + if not force: + # Only create/update this file if the sanity check succeeded, i.e., we got here +- f = open(sanity_file, 'w') ++ f = open(sanity_file, 'w+') + f.write(generate_sanity()) ++ os.chmod(sanity_file, 0o666) + f.close() + diff --git a/unmaintained/emscripten/binaryen-wasm-js-path.patch b/unmaintained/emscripten/binaryen-wasm-js-path.patch new file mode 100644 index 0000000000..d2c7ab994a --- /dev/null +++ b/unmaintained/emscripten/binaryen-wasm-js-path.patch @@ -0,0 +1,40 @@ +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Sun, 02 Mar 2017 22:42:00 +0200 +Subject: [PATCH] Allow to specify path to wasm.js + +Add configuration variable BINARYEN_WASM_JS that allows to specify location of +the Binaryen's wasm.js file. + +--- a/emcc.py ++++ b/emcc.py +@@ -1282,6 +1282,11 @@ + shared.Settings.BINARYEN_ROOT = shared.BINARYEN_ROOT + except: + pass ++ if not shared.Settings.BINARYEN_WASM_JS: ++ try: ++ shared.Settings.BINARYEN_WASM_JS = shared.BINARYEN_WASM_JS ++ except: ++ shared.Settings.BINARYEN_WASM_JS = os.path.join(BINARYEN_ROOT, 'bin', 'wasm.js') + # default precise-f32 to on, since it works well in wasm + # also always use f32s when asm.js is not in the picture + if ('PRECISE_F32=0' not in settings_changes and 'PRECISE_F32=2' not in settings_changes) or 'asmjs' not in shared.Settings.BINARYEN_METHOD: +@@ -2110,7 +2115,7 @@ + # BINARYEN_METHOD with something that doesn't use the polyfill, then we don't need it. + if not shared.Settings.BINARYEN_METHOD or 'interpret' in shared.Settings.BINARYEN_METHOD: + logging.debug('integrating wasm.js polyfill interpreter') +- wasm_js = open(os.path.join(binaryen_bin, 'wasm.js')).read() ++ wasm_js = open(shared.Settings.BINARYEN_WASM_JS).read() + wasm_js = wasm_js.replace('EMSCRIPTEN_', 'emscripten_') # do not confuse the markers + js = open(js_target).read() + combined = open(js_target, 'w') +--- a/src/settings.js ++++ b/src/settings.js +@@ -709,6 +709,7 @@ + // required for all but the smallest modules to run in V8 + var BINARYEN_ROOT = ""; // Directory where we can find Binaryen. Will be automatically set for you, + // but you can set it to override if you are a Binaryen developer. ++var BINARYEN_WASM_JS = ""; // Path to the file wasm.js, the Binaryen components compiled to JavaScript. + + var WASM = 0; // Alias for BINARYEN, the two are identical. Both make us compile code to WebAssembly. + diff --git a/unmaintained/emscripten/closurecompiler-externs-path.patch b/unmaintained/emscripten/closurecompiler-externs-path.patch new file mode 100644 index 0000000000..d760156c8d --- /dev/null +++ b/unmaintained/emscripten/closurecompiler-externs-path.patch @@ -0,0 +1,17 @@ +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Mon, 4 Apr 2017 19:30:00 +0200 +Subject: [PATCH] Fix path to closurecompiler-externs + +We ship closurecompiler-externs in package node-closurecompiler-externs. + +--- a/tools/shared.py ++++ b/tools/shared.py +@@ -2130,7 +2130,7 @@ + raise Exception('closure compiler check failed') + + CLOSURE_EXTERNS = path_from_root('src', 'closure-externs.js') +- NODE_EXTERNS_BASE = path_from_root('third_party', 'closure-compiler', 'node-externs') ++ NODE_EXTERNS_BASE = '/usr/lib/node_modules/closurecompiler-externs' + NODE_EXTERNS = os.listdir(NODE_EXTERNS_BASE) + NODE_EXTERNS = [os.path.join(NODE_EXTERNS_BASE, name) for name in NODE_EXTERNS + if name.endswith('.js')] diff --git a/unmaintained/emscripten/closurecompiler-language_in-es6.patch b/unmaintained/emscripten/closurecompiler-language_in-es6.patch new file mode 100644 index 0000000000..a1820fd388 --- /dev/null +++ b/unmaintained/emscripten/closurecompiler-language_in-es6.patch @@ -0,0 +1,21 @@ +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Mon, 3 Apr 2017 19:39:00 +0200 +Subject: [PATCH] Fix on newer Closure Compiler, change language_in to ES6 + +And also fix name of the compilation_level. + +Upstream-Issue: https://github.com/kripken/emscripten/issues/5109 + +--- a/tools/shared.py ++++ b/tools/shared.py +@@ -2140,8 +2140,8 @@ + args = [JAVA, + '-Xmx' + (os.environ.get('JAVA_HEAP_SIZE') or '1024m'), # if you need a larger Java heap, use this environment variable + '-jar', CLOSURE_COMPILER, +- '--compilation_level', 'ADVANCED_OPTIMIZATIONS', +- '--language_in', 'ECMASCRIPT5', ++ '--compilation_level', 'ADVANCED', ++ '--language_in', 'ECMASCRIPT6', + '--externs', CLOSURE_EXTERNS, + #'--variable_map_output_file', filename + '.vars', + '--js', filename, '--js_output_file', filename + '.cc.js'] diff --git a/unmaintained/emscripten/embuilder-fix-task-all-for-wasm.patch b/unmaintained/emscripten/embuilder-fix-task-all-for-wasm.patch new file mode 100644 index 0000000000..375891e6eb --- /dev/null +++ b/unmaintained/emscripten/embuilder-fix-task-all-for-wasm.patch @@ -0,0 +1,35 @@ +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Sun, 2 Apr 2017 23:11:41 +0200 +Subject: [PATCH] embuilder: if EMCC_WASM_BACKEND, omit tasks using pthreads + from ALL + +Fixes the following error: + + $ EMCC_WASM_BACKEND=1 ./embuild build ALL + Traceback (most recent call last): + File "emscripten/src/emscripten-1.37.9/emcc", line 13, in <module> + emcc.run() + File "emscripten/src/emscripten-1.37.9/emcc.py", line 1278, in run + assert not shared.Settings.USE_PTHREADS, 'WebAssembly does not support pthreads' + AssertionError: WebAssembly does not support pthreads + +Upstream-Issue: https://github.com/kripken/emscripten/pull/5107 +--- + embuilder.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/embuilder.py b/embuilder.py +index 6674ccd..eaa762a 100755 +--- a/embuilder.py ++++ b/embuilder.py +@@ -84,6 +84,10 @@ def build_port(port_name, lib_name, params): + tasks = sys.argv[2:] + if 'ALL' in tasks: + tasks = ['libc', 'libc-mt', 'dlmalloc', 'dlmalloc_threadsafe', 'pthreads', 'libcxx', 'libcxx_noexcept', 'libcxxabi', 'gl', 'binaryen', 'bullet', 'freetype', 'libpng', 'ogg', 'sdl2', 'sdl2-image', 'sdl2-ttf', 'sdl2-net', 'vorbis', 'zlib'] ++ if os.environ.get('EMCC_WASM_BACKEND') == '1': ++ skip_tasks = {'libc-mt', 'dlmalloc_threadsafe', 'pthreads'} ++ print('Skipping building of %s, because WebAssembly does not support pthreads.' % ', '.join(skip_tasks)) ++ tasks = [x for x in tasks if x not in skip_tasks] + if os.environ.get('EMSCRIPTEN_NATIVE_OPTIMIZER'): + print 'Skipping building of native-optimizer since environment variable EMSCRIPTEN_NATIVE_OPTIMIZER is present and set to point to a prebuilt native optimizer path.' + elif hasattr(shared, 'EMSCRIPTEN_NATIVE_OPTIMIZER'): diff --git a/unmaintained/emscripten/embuilder-omit-provided.patch b/unmaintained/emscripten/embuilder-omit-provided.patch new file mode 100644 index 0000000000..5bdcc26f82 --- /dev/null +++ b/unmaintained/emscripten/embuilder-omit-provided.patch @@ -0,0 +1,67 @@ +Remove task for building native_optimizer and binaryen. It's not needed, +because we ship this binary as a package. Also we don't build +emscripten-fastcomp with X86 target, so it can't be used to build this native +binary. + +--- a/embuilder.py ++++ b/embuilder.py +@@ -33,8 +33,6 @@ + libcxx_noexcept + libcxxabi + gl +- native_optimizer +- binaryen + bullet + freetype + libpng +@@ -48,14 +46,10 @@ + + Issuing 'embuilder.py build ALL' causes each task to be built. + +-It is also possible to build native_optimizer manually by using CMake. To +-do that, run ++Do not use this tool to build native_optimizer manually - it's already ++installed and configured on Alpine Linux. + +- 1. cd $EMSCRIPTEN/tools/optimizer +- 2. cmake . -DCMAKE_BUILD_TYPE=Release +- 3. make (or mingw32-make/vcbuild/msbuild on Windows) +- +-and set up the location to the native optimizer in ~/.emscripten ++If you need binaryen, install it with apk: apk add binaryen. + + ''' + sys.exit(0) +@@ -88,12 +82,6 @@ + skip_tasks = {'libc-mt', 'dlmalloc_threadsafe', 'pthreads'} + print('Skipping building of %s, because WebAssembly does not support pthreads.' % ', '.join(skip_tasks)) + tasks = [x for x in tasks if x not in skip_tasks] +- if os.environ.get('EMSCRIPTEN_NATIVE_OPTIMIZER'): +- print 'Skipping building of native-optimizer since environment variable EMSCRIPTEN_NATIVE_OPTIMIZER is present and set to point to a prebuilt native optimizer path.' +- elif hasattr(shared, 'EMSCRIPTEN_NATIVE_OPTIMIZER'): +- print 'Skipping building of native-optimizer since .emscripten config file has set EMSCRIPTEN_NATIVE_OPTIMIZER to point to a prebuilt native optimizer path.' +- else: +- tasks += ['native_optimizer'] + for what in tasks: + shared.logging.info('building and verifying ' + what) + if what in ('libc', 'dlmalloc'): +@@ -146,9 +134,7 @@ + } + ''', ['gl.bc']) + elif what == 'native_optimizer': +- build(''' +- int main() {} +- ''', ['optimizer.2.exe'], ['-O2']) ++ shared.logging.warning('native_optimizer is already installed: /usr/bin/emoptimizer. Skipping build.') + elif what == 'wasm_compiler_rt': + if shared.get_llvm_target() == shared.WASM_TARGET: + build(''' +@@ -177,7 +163,7 @@ + elif what == 'sdl2-ttf': + build_port('sdl2-ttf', 'libsdl2_ttf.bc', ['-s', 'USE_SDL=2', '-s', 'USE_SDL_TTF=2', '-s', 'USE_FREETYPE=1']) + elif what == 'binaryen': +- build_port('binaryen', None, ['-s', 'BINARYEN=1']) ++ shared.logging.warning('Run "apk add binaryen" to install binaryen. Skipping build.') + else: + shared.logging.error('unfamiliar build target: ' + what) + sys.exit(1) diff --git a/unmaintained/emscripten/emscripten.cfg b/unmaintained/emscripten/emscripten.cfg new file mode 100644 index 0000000000..9888ce606c --- /dev/null +++ b/unmaintained/emscripten/emscripten.cfg @@ -0,0 +1,21 @@ +import os + +EMSCRIPTEN_ROOT = '/usr/share/emscripten' +LLVM_ROOT = '/usr/lib/emscripten-fastcomp/bin' +BINARYEN_ROOT = '/usr' +BINARYEN_WASM_JS = '/usr/share/binaryen/wasm.js' + +CLOSURE_COMPILER = os.getenv('CLOSURE', '/usr/share/java/closure-compiler.jar') +CRUNCH = os.getenv('CRUNCH', 'crunch') +EMSCRIPTEN_NATIVE_OPTIMIZER = '/usr/bin/emoptimizer' +JAVA = os.path.join(os.getenv('JAVA_HOME', '/usr/lib/jvm/default-jvm'), 'bin/java') +NODE_JS = os.getenv('NODE', 'node') +PYTHON = '/usr/bin/python2' + +TEMP_DIR = '/tmp' + +COMPILER_ENGINE = NODE_JS +JS_ENGINES = [NODE_JS] + +# Define environment variable EM_USE_GLOBAL_CACHE=1 to look into this cache. +GLOBAL_CACHE_DIR = '/usr/share/emscripten/cache' diff --git a/unmaintained/emscripten/fix-python-shebang.patch b/unmaintained/emscripten/fix-python-shebang.patch new file mode 100644 index 0000000000..4cb0c3d6a8 --- /dev/null +++ b/unmaintained/emscripten/fix-python-shebang.patch @@ -0,0 +1,104 @@ +--- a/em++ ++++ b/em++ +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + # This script should work in python 2 *or* 3. It loads emcc.py, which needs python 2. + # It also tells emcc.py that we want C++ and not C by default +--- a/em++.py ++++ b/em++.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + # This script should work in python 2 *or* 3. It loads emcc.py, which needs python 2. + # It also tells emcc.py that we want C++ and not C by default +--- a/emar ++++ b/emar +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + # This script should work in python 2 *or* 3. It loads emar.py, which needs python 2. + +--- a/emcc ++++ b/emcc +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + # This script should work in python 2 *or* 3. It loads emcc.py, which needs python 2. + +--- a/emcmake ++++ b/emcmake +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + # This script should work in python 2 *or* 3. It loads emcmake.py, which needs python 2. + +--- a/emconfigure ++++ b/emconfigure +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + # This script should work in python 2 *or* 3. It loads emconfigure.py, which needs python 2. + +--- a/emmake ++++ b/emmake +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + # This script should work in python 2 *or* 3. It loads emmake.py, which needs python 2. + +--- a/emranlib ++++ b/emranlib +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + ''' + emcc - ranlib helper script +--- a/emrun ++++ b/emrun +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + # emrun: Implements machinery that allows running a .html page as if it was a standard executable file. + # Usage: emrun <options> filename.html <args to program> +--- a/system/bin/sdl-config ++++ b/system/bin/sdl-config +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + from __future__ import print_function + import sys +--- a/system/bin/sdl2-config ++++ b/system/bin/sdl2-config +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + from __future__ import print_function + import sys +--- a/tools/emprofile.py ++++ b/tools/emprofile.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + import sys, shutil, os, json, tempfile, time + +--- a/tools/ffdb.py ++++ b/tools/ffdb.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + import socket, json, sys, uuid, datetime, time, logging, cgi, zipfile, os, tempfile, atexit, subprocess, re, base64, struct, imghdr + diff --git a/unmaintained/emscripten/move-emcc-txt.patch b/unmaintained/emscripten/move-emcc-txt.patch new file mode 100644 index 0000000000..8875288310 --- /dev/null +++ b/unmaintained/emscripten/move-emcc-txt.patch @@ -0,0 +1,12 @@ +emcc.txt is read from emcc.py for --help. Move it to more reasonable location. +--- a/emcc.py ++++ b/emcc.py +@@ -153,7 +153,7 @@ + + emcc: supported targets: llvm bitcode, javascript, NOT elf + (autoconf likes to see elf above to enable shared object support) +-''' % (open(shared.path_from_root('site', 'build', 'text', 'docs', 'tools_reference', 'emcc.txt')).read()) ++''' % (open(shared.path_from_root('emcc.txt')).read()) + exit(0) + + elif sys.argv[1] == '--version': diff --git a/unmaintained/emscripten/settings_template-paths.patch b/unmaintained/emscripten/settings_template-paths.patch new file mode 100644 index 0000000000..092535f1ef --- /dev/null +++ b/unmaintained/emscripten/settings_template-paths.patch @@ -0,0 +1,51 @@ +--- a/tools/settings_template_readonly.py ++++ b/tools/settings_template_readonly.py +@@ -1,35 +1,35 @@ +-# This file will be edited (the {{{ }}} things), and then ~/.emscripten created with the result, if ~/.emscripten doesn't exist. +- + # Note: If you put paths relative to the home directory, do not forget os.path.expanduser + +-# Note: On Windows, remember to escape backslashes! I.e. EMSCRIPTEN_ROOT='c:\emscripten\' is not valid, but EMSCRIPTEN_ROOT='c:\\emscripten\\' and EMSCRIPTEN_ROOT='c:/emscripten/' are. +- + import os + + # this helps projects using emscripten find it +-EMSCRIPTEN_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN') or '{{{ EMSCRIPTEN_ROOT }}}') # directory +-LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '{{{ LLVM_ROOT }}}') # directory +-BINARYEN_ROOT = os.path.expanduser(os.getenv('BINARYEN') or '{{{ BINARYEN_ROOT }}}') # directory ++EMSCRIPTEN_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN') or '/usr/share/emscripten') # directory ++LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '/usr/lib/emscripten-fastcomp/bin') # directory ++ ++if os.getenv('BINARYEN'): ++ BINARYEN_ROOT = os.path.expanduser(os.getenv('BINARYEN')) # directory ++else: ++ BINARYEN_ROOT = '/usr' ++ BINARYEN_WASM_JS = '/usr/share/binaryen/wasm.js' + + # If not specified, defaults to sys.executable. +-#PYTHON = 'python' ++PYTHON = 'python2' + +-# Add this if you have manually built the JS optimizer executable (in Emscripten/tools/optimizer) and want to run it from a custom location. + # Alternatively, you can set this as the environment variable EMSCRIPTEN_NATIVE_OPTIMIZER. +-# EMSCRIPTEN_NATIVE_OPTIMIZER='/path/to/custom/optimizer(.exe)' ++EMSCRIPTEN_NATIVE_OPTIMIZER='/usr/bin/emoptimizer' + + # See below for notes on which JS engine(s) you need +-NODE_JS = os.path.expanduser(os.getenv('NODE') or '{{{ NODE }}}') # executable ++NODE_JS = os.path.expanduser(os.getenv('NODE') or '/usr/bin/node') # executable + SPIDERMONKEY_ENGINE = [os.path.expanduser(os.getenv('SPIDERMONKEY') or 'js')] # executable + V8_ENGINE = os.path.expanduser(os.getenv('V8') or 'd8') # executable + + JAVA = 'java' # executable + +-TEMP_DIR = '{{{ TEMP }}}' ++TEMP_DIR = '/tmp' + + CRUNCH = os.path.expanduser(os.getenv('CRUNCH') or 'crunch') # executable + +-#CLOSURE_COMPILER = '..' # define this to not use the bundled version ++CLOSURE_COMPILER = '/usr/share/java/closure-compiler.jar' + + ######################################################################################################## + diff --git a/unmaintained/fa/APKBUILD b/unmaintained/fa/APKBUILD deleted file mode 100755 index bfa3b4295e..0000000000 --- a/unmaintained/fa/APKBUILD +++ /dev/null @@ -1,26 +0,0 @@ -# Contributor: Jesse Laprade <jesselaprade@gmail.com> -# Contributor: Will Sinatra <wpsinatra@gmail.com> -# Maintainer: Will Sinatra <wpsinatra@gmail.com> -pkgname=fa -pkgver=0.5.10 -pkgrel=0 -pkgdesc="A Commandline Agenda written in Fennel" -url="https://git.m455.casa/m455/fa" -# s390x and riscv64 blocked by lua -> fennel -arch="all !s390x !riscv64" -arch="" # Repository has been nuked -license="AGPL-3.0-only" -makedepends="fennel lua5.3-dev" -depends="lua5.3" -source="fa-v$pkgver.tar.gz::https://git.m455.casa/m455/fa/archive/$pkgver.tar.gz" -builddir="$srcdir/fa" -options="!check" #No checks - -build() { - make compile-bin STATIC_LUA_LIB="/usr/lib/liblua-5.3.so.0.0.0" -} - -package() { - install -Dm755 "$builddir/dists/fa-bin" "$pkgdir"/usr/bin/fa -} - diff --git a/unmaintained/flit/APKBUILD b/unmaintained/flit/APKBUILD deleted file mode 100644 index 667a4cf395..0000000000 --- a/unmaintained/flit/APKBUILD +++ /dev/null @@ -1,38 +0,0 @@ -# Contributor: Leo <thinkabit.ukim@gmail.com> -# Maintainer: -pkgname=flit -pkgver=3.2.0 -pkgrel=1 -pkgdesc="Simple packaging tool for simple Python packages" -options="!check" -url="https://flit.readthedocs.io" -arch="noarch" -license="BSD-3-Clause" -depends=" - python3 - py3-docutils - py3-pytoml - py3-requests - " -makedepends="unzip" -_wheel_cli="flit-$pkgver-py3-none-any.whl" -_wheel_core="flit_core-$pkgver-py3-none-any.whl" -source="https://files.pythonhosted.org/packages/py3/f/flit/$_wheel_cli - https://files.pythonhosted.org/packages/py3/f/flit_core/$_wheel_core - install-wheel-scripts.py - " -builddir="$srcdir" - -package() { - local site="$pkgdir"/usr/lib/"$(readlink /usr/bin/python3)"/site-packages - mkdir -p "$site" - unzip "$_wheel_core" -d "$site" - unzip "$_wheel_cli" -d "$site" - "$srcdir"/install-wheel-scripts.py --prefix="$pkgdir"/usr "$_wheel_cli" - chmod 644 "$site"/*.dist-info/* - rm -rf "$site"/**/tests -} - -sha512sums="d16047f72e1e860f2596c8934f82fdad180980a88e3d482baa648d924f6304240cc264c94ae543938f9af234542fa5ac86e86321165dbd2a852721ab190bfe3f flit-3.2.0-py3-none-any.whl -d452a8dc27f86ffe595c3bda96a8e7063ced120c6afcc60b2cb1bc40b6cc0179df873b22ba59dd7c1c7fb68e6aef7facf5b18b225a9915c9e257389347cc110d flit_core-3.2.0-py3-none-any.whl -96a9eeebec7b362dec9e19309386a28df3243b5b8d84643de8d043a12ae174ca7b111b67a0a335ed0fa1069690b990ef66de5670326e225251ad3bbfef9e3b1e install-wheel-scripts.py" diff --git a/unmaintained/flit/install-wheel-scripts.py b/unmaintained/flit/install-wheel-scripts.py deleted file mode 100755 index c60ffb8dfa..0000000000 --- a/unmaintained/flit/install-wheel-scripts.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env python3 - -import argparse -from pathlib import Path -from configparser import ConfigParser -from zipfile import ZipFile - - -parser = argparse.ArgumentParser(description="Install wheel scripts.") -parser.add_argument("wheel", type=Path, help="Wheel file") -parser.add_argument( - "--prefix", - type=Path, - default=Path("/usr/local/"), - help="Installation prefix (/usr/, ~/.local, …)", -) - - -def get_console_scripts(whl): - with ZipFile(whl) as archive: - n = next( - iter( - n - for n in archive.namelist() - if n.endswith(".dist-info/entry_points.txt") - ), - None, - ) - if n is None: - return {} - ini = archive.read(n).decode("utf-8") - parser = ConfigParser() - parser.optionxform = str # case sensitive - parser.read_string(ini) - return dict(parser["console_scripts"]) if "console_scripts" in parser else {} - - -def main(): - args = parser.parse_args() - - scripts = get_console_scripts(args.wheel) - for name, defn in scripts.items(): - defn, *_ = defn.split(";") # extra condition - mod, fun = defn.split(":") - if mod.endswith(".__main__"): - mod = mod[: -len(".__main__")] - code = f"""\ -#!/bin/sh -exec /usr/bin/python3 -m {mod} "$@" -""" - else: - code = f"""\ -#!/usr/bin/python3 -from {mod} import {fun} -{fun}() -""" - bin_path = args.prefix / "bin" / name - bin_path.parent.mkdir(parents=True, exist_ok=True) - bin_path.write_text(code) - bin_path.chmod(0o755) - - -if __name__ == "__main__": - main() diff --git a/unmaintained/gajim/APKBUILD b/unmaintained/gajim/APKBUILD deleted file mode 100644 index 4d29e40e23..0000000000 --- a/unmaintained/gajim/APKBUILD +++ /dev/null @@ -1,42 +0,0 @@ -# Maintainer: -pkgname=gajim -pkgver=1.1.3 -pkgrel=2 -pkgdesc="A full featured and easy to use XMPP client" -url="https://gajim.org/" -arch="noarch" -license="GPL-3.0-only" -depends=" - py3-cairo py3-gobject3 py3-asn1 py3-nbxmpp py3-openssl - py3-precis-i18n py3-keyring py3-cssutils gtk+3.0 - " -makedepends="py3-setuptools python3-dev gettext-dev" -checkdepends="xvfb dbus" -source=" - https://$pkgname.org/downloads/${pkgver:0:3}/$pkgname-$pkgver.tar.bz2 - " -subpackages="$pkgname-doc $pkgname-lang" - -build() { - python3 setup.py build -} - -check() { - local xvfb_pid - Xvfb :4242 & - xvfb_pid=$! - if env DISPLAY=:4242 python3 setup.py test; then - kill $xvfb_pid - return 0 - else - kill $xvfb_pid - return 1 - fi -} - -package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" -} - - -sha512sums="18062832f9b9295c7a844c347d5ece4a6db43126d5b58bbf362fdf2f8e082e2241c46dae6d1cbe66ebf2ef19f65618102c3c21fa0079a96fc21511e6e93420ac gajim-1.1.3.tar.bz2" diff --git a/unmaintained/glow/APKBUILD b/unmaintained/glow/APKBUILD deleted file mode 100644 index 35e09258aa..0000000000 --- a/unmaintained/glow/APKBUILD +++ /dev/null @@ -1,26 +0,0 @@ -# Contributor: Leo <thinkabit.ukim@gmail.com> -# Maintainer: -pkgname=glow -pkgver=1.4.0 -pkgrel=1 -pkgdesc="CLI Markdown render" -url="https://github.com/charmbracelet/glow" -options="chmod-clean" -arch="all" -license="MIT" -makedepends="go" -source="$pkgname-$pkgver.tar.gz::https://github.com/charmbracelet/glow/archive/v$pkgver.tar.gz" - -build() { - go build -v -o glow -ldflags "-X main.Version=$pkgver -s -w" -} - -check() { - go test -v ./... -} - -package() { - install -Dm755 glow "$pkgdir"/usr/bin/glow -} - -sha512sums="39cd181a38af298167bc7392e35ae2f183286211f462000c1f7bd9fe4e7db404f70c6e87b8fabb8e3e7cfb04595f2d421565bdfd9b2c0f862d637b9599581edc glow-1.4.0.tar.gz" diff --git a/unmaintained/gnupg1/APKBUILD b/unmaintained/gnupg1/APKBUILD new file mode 100644 index 0000000000..1b1305671f --- /dev/null +++ b/unmaintained/gnupg1/APKBUILD @@ -0,0 +1,53 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=gnupg1 +pkgver=1.4.23 +pkgrel=2 +pkgdesc="GNU Privacy Guard 1 - a PGP replacement tool" +url="https://www.gnupg.org/" +arch="all" +license="GPL-3.0-or-later" +depends="pinentry" +makedepends="curl-dev libassuan libksba-dev libgcrypt-dev libgpg-error-dev + zlib-dev libassuan-dev" +subpackages="$pkgname-doc" +source="https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-$pkgver.tar.bz2" + +# secfixes: +# 1.4.23-r0: +# - CVE-2017-7526 +# 1.4.22-r1: +# - CVE-2018-12020 + +builddir="$srcdir/gnupg-$pkgver" +prepare() { + default_prepare + + # Fix PIC definitions + sed -i -e 's:PIC:__PIC__:' \ + mpi/i386/mpih-add1.S \ + mpi/i386/mpih-sub1.S \ + intl/relocatable.c +} + +build() { + CFLAGS="$CFLAGS -g -fcommon" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-nls \ + --enable-noexecstack + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="78dc52a2010202a4afc8814b29fda657a6c9fe230d5e7db11ae040edd2b0ca819e1baa4dbd6c0d04d36cd353df484e83f52d17759d2891c2cf7025c0b5d36612 gnupg-1.4.23.tar.bz2" diff --git a/unmaintained/googler/APKBUILD b/unmaintained/googler/APKBUILD new file mode 100644 index 0000000000..de91b5cfa8 --- /dev/null +++ b/unmaintained/googler/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Ivan Tham <pickfire@riseup.net> +# Maintainer: +pkgname=googler +pkgver=4.3.2 +pkgrel=2 +pkgdesc="Google Search, Google Site Search, Google News from the terminal" +url="https://github.com/jarun/googler" +arch="noarch" +license="GPL-3.0-or-later" +depends="python3" +subpackages="$pkgname-doc + $pkgname-bash-completion + $pkgname-fish-completion + $pkgname-zsh-completion + " +source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/googler/archive/v$pkgver.tar.gz" + +build() { + make disable-self-upgrade +} + +package() { + make install DESTDIR="$pkgdir" PREFIX=/usr + + install -Dm644 "$builddir"/auto-completion/bash/* \ + -t "$pkgdir"/usr/share/bash-completion/completions + install -Dm644 "$builddir"/auto-completion/fish/* \ + -t "$pkgdir"/usr/share/fish/completions + install -Dm644 "$builddir"/auto-completion/zsh/* \ + -t "$pkgdir"/usr/share/zsh/site-functions +} + +sha512sums="899cc45eea9102b9547c1a7697237bb9cc77093c670e09c74b1331c0f267fa3bb66f2fc58cf576f9ce30047757f0038cf447a0a510c5b2ff33ad68491c008dd9 googler-4.3.2.tar.gz" diff --git a/unmaintained/kdevelop-python/APKBUILD b/unmaintained/kdevelop-python/APKBUILD new file mode 100644 index 0000000000..e4b6b18578 --- /dev/null +++ b/unmaintained/kdevelop-python/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=kdevelop-python +pkgver=5.6.2 +pkgrel=2 +pkgdesc="Python language and documentation plugin for KDevelop" +url="https://www.kdevelop.org/" +# armhf blocked by extra-cmake-modules +# ppc64le, s390x, mips64 and riscv64 blocked by kdevelop +arch="all !armhf !ppc64le !s390x !mips64 !riscv64" +license="LGPL-2.0-or-later" +depends="python3" +makedepends=" + extra-cmake-modules + kdevelop-dev + ki18n-dev + ktexteditor-dev + python3-dev + qt5-qtbase-dev + threadweaver-dev + " +checkdepends="xvfb-run" +source="https://download.kde.org/stable/kdevelop/$pkgver/src/kdev-python-$pkgver.tar.xz" +options="!check" # Tests hang +builddir="$srcdir/kdev-python-$pkgver" + +build() { + cmake -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build +} + +check() { + cd build + CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums="c0ecf9c075fe8c18e31152b774e76596367bb5eca8bb5ec976e9ce90ce78512d9e42bc95daea0f1de18474ef4deee430674e186263736df0de67d7d26c81f6a0 kdev-python-5.6.2.tar.xz" diff --git a/unmaintained/lizardfs/677.patch b/unmaintained/lizardfs/677.patch deleted file mode 100644 index d9386433f6..0000000000 --- a/unmaintained/lizardfs/677.patch +++ /dev/null @@ -1,22 +0,0 @@ -From a5e1cedf22509b88e402aabb96642c2216c6a3ce Mon Sep 17 00:00:00 2001 -From: Jonathan Dieter <jdieter@gmail.com> -Date: Thu, 15 Mar 2018 14:26:03 +0200 -Subject: [PATCH] Add missing header - -Signed-off-by: Jonathan Dieter <jdieter@gmail.com> ---- - src/chunkserver/iostat.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/chunkserver/iostat.h b/src/chunkserver/iostat.h -index e1a50e97..09a04c67 100644 ---- a/src/chunkserver/iostat.h -+++ b/src/chunkserver/iostat.h -@@ -28,6 +28,7 @@ - #include <algorithm> - #include <unordered_map> - #include <vector> -+#include <sys/sysmacros.h> - - #include <sys/stat.h> - #include <sys/types.h> diff --git a/unmaintained/lizardfs/APKBUILD b/unmaintained/lizardfs/APKBUILD deleted file mode 100644 index 4edb713113..0000000000 --- a/unmaintained/lizardfs/APKBUILD +++ /dev/null @@ -1,184 +0,0 @@ -# Contributor: -# Maintainer: -pkgname=lizardfs -pkgver=3.12.0 -pkgrel=1 -pkgdesc="a highly reliable, scalable and efficient distributed file system" -url="https://github.com/lizardfs/lizardfs/" -arch="all" -license="GPL-3.0-only" -makedepends="boost-dev cmake fuse-dev zlib-dev asciidoc python2" -pkgusers="mfs" -pkggroups="mfs" -install="$pkgname.pre-install" -subpackages=" - $pkgname-doc - $pkgname-master - $pkgname-metalogger - $pkgname-chunkserver - $pkgname-tools - $pkgname-cgi - $pkgname-cgiserv - $pkgname-adm - $pkgname-bash-completion:bashcomp:noarch - " -source="lizardfs-$pkgver.tar.gz::https://github.com/lizardfs/lizardfs/archive/v$pkgver.tar.gz - lizardfs-cgiserv.initd - lizardfs-chunkserver.initd - lizardfs-master.initd - lizardfs-metalogger.initd - 677.patch - " - -build() { - if [ "$CBUILD" != "$CHOST" ]; then - CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" - fi - cmake -B build \ - -DCMAKE_BUILD_TYPE=None \ - -DCMAKE_INSTALL_PREFIX=/ \ - -DENABLE_TESTS=NO \ - -DENABLE_DEBIAN_PATHS=YES \ - $CMAKE_CROSSOPTS . - make -C build -} - -package() { - make -C build DESTDIR="$pkgdir" install - chown -R mfs:mfs "$pkgdir"/var/lib/mfs - for i in $source; do - case $i in - *.initd) - install -Dm755 "$srcdir"/$i \ - "$pkgdir"/etc/init.d/${i%.*} - ;; - esac - done - - mkdir -p "$pkgdir"/usr/share/bash-completion - mv "$pkgdir"/etc/bash_completion.d "$pkgdir"/usr/share/bash-completion/completions -} - -_mv_files() { - local i - for i in "$@"; do - case $i in - */*) mkdir -p "$subpkgdir"/${i%/*};; - *) mkdir -p "$subpkgdir";; - esac - mv "$pkgdir"/$i "$subpkgdir"/$i - done -} - -master() { - pkgdesc="LizardFS master server" - depends="lizardfs=$pkgver-r$pkgrel" - cd "$pkgdir" - _mv_files \ - usr/sbin/mfsmaster \ - usr/sbin/mfsrestoremaster \ - usr/sbin/mfsmetadump \ - usr/sbin/mfsmetarestore \ - etc/mfs/mfsexports.cfg.dist \ - etc/mfs/mfstopology.cfg.dist \ - etc/mfs/mfsgoals.cfg.dist \ - etc/mfs/mfsmaster.cfg.dist \ - etc/mfs/globaliolimits.cfg.dist \ - var/lib/mfs/metadata.mfs.empty \ - etc/init.d/lizardfs-master - chown -R mfs:mfs "$subpkgdir"/var/lib/mfs -} - -metalogger() { - pkgdesc="LizardFS metadata replication server" - depends="lizardfs=$pkgver-r$pkgrel" - cd "$pkgdir" - _mv_files \ - usr/sbin/mfsmetalogger \ - etc/mfs/mfsmetalogger.cfg.dist \ - etc/init.d/lizardfs-metalogger -} - -chunkserver() { - pkgdesc="LizardFS data server" - depends="lizardfs=$pkgver-r$pkgrel" - cd "$pkgdir" - _mv_files \ - usr/sbin/mfschunkserver \ - etc/mfs/mfschunkserver.cfg.dist \ - etc/mfs/mfshdd.cfg.dist \ - etc/init.d/lizardfs-chunkserver -} - -tools() { - pkgdesc="LizardFS tools" - depends="fuse" - cd "$pkgdir" - _mv_files \ - usr/bin/mfstools.sh \ - usr/bin/mfsmount \ - usr/bin/mfsappendchunks \ - usr/bin/mfscheckfile \ - usr/bin/mfsdeleattr \ - usr/bin/mfsdirinfo \ - usr/bin/mfsfileinfo \ - usr/bin/mfsfilerepair \ - usr/bin/mfsgeteattr \ - usr/bin/mfsgetgoal \ - usr/bin/mfsgettrashtime \ - usr/bin/mfsmakesnapshot \ - usr/bin/mfsrepquota \ - usr/bin/mfsrgetgoal \ - usr/bin/mfsrgettrashtime \ - usr/bin/mfsrsetgoal \ - usr/bin/mfsrsettrashtime \ - usr/bin/mfsseteattr \ - usr/bin/mfssetgoal \ - usr/bin/mfssetquota \ - usr/bin/mfssettrashtime \ - etc/mfs/mfsmount.cfg.dist \ - etc/mfs/iolimits.cfg.dist - -} - -cgi() { - pkgdesc="LizardFS CGI Monitor" - depends="python2" - cd "$pkgdir" - _mv_files \ - usr/share/mfscgi -} - -cgiserv() { - pkgdesc="Simple CGI-capable HTTP server to run LizardFS CGI Monitor" - depends="$pkgname-cgi=$pkgver-r$pkgrel" - cd "$pkgdir" - _mv_files \ - usr/sbin/lizardfs-cgiserver \ - usr/sbin/mfscgiserv \ - etc/init.d/lizardfs-cgiserv -} - -adm() { - pkgdesc="LizardFS administration utility" - depends="" - cd "$pkgdir" - _mv_files \ - usr/bin/lizardfs-admin \ - usr/bin/lizardfs-probe -} - -bashcomp() { - depends="" - pkgdesc="Bash completions for $pkgname" - install_if="$pkgname=$pkgver-r$pkgrel bash-completion" - - amove usr/share/bash-completion/completions -} - -sha512sums="0136114266dfadcf8e2205bfd19f50ee201566958fba1dc97d4a238ed63ca91dc2cd6352f25d911f4410b0fbd59846f54206da773789d5b959c8c02bde5adf20 lizardfs-3.12.0.tar.gz -2c78af05c2eeba866c25c58d996c64d16a590248660a362e29a52065af93c126c6eb3232c8cdbb797e60cca406608b77f29ce62717446b7c3d1a8d35e0a722d8 lizardfs-cgiserv.initd -f5de527f2c6f729d49c365cbac64d938d8f90de2c78ac2f4fdbb445532fbc6438ed7380b7963f70cfbf99d48282d7da6a8dbb3df9ae84ac7d2fcebda2ce308c8 lizardfs-chunkserver.initd -6234131965bf52ef0bb859a50010b649b10b81786ff302f6ff65429d03026b32d0e1ad2daeab99dea4bd8cc94ac5aed75707d640adf33b4fb79e22185e77ac01 lizardfs-master.initd -76951ecdbaa69cef0fc383bbc3d36b1eb00aced3c98750676ab159a44a9e50d29ebe188080a08a2a09df6c62f6899bb093cf94e9e3e1688826f5ff8dfdc0fa68 lizardfs-metalogger.initd -a565d1eb682934d47bcae7e0b3ce37a08fa0e28b732e965083a878f5e9e1e846b329643c8ab02bc0f74eac54881d5287c739df6df528b78ccfc388b76af5b8c8 677.patch" diff --git a/unmaintained/lizardfs/lizardfs-cgiserv.initd b/unmaintained/lizardfs/lizardfs-cgiserv.initd deleted file mode 100644 index 8ee89ab728..0000000000 --- a/unmaintained/lizardfs/lizardfs-cgiserv.initd +++ /dev/null @@ -1,10 +0,0 @@ -#!/sbin/openrc-run - -pidfile=/var/run/lizardfs-cgiserv.pid -command=/usr/sbin/lizardfs-cgiserver - - -depend() { - after net -} - diff --git a/unmaintained/lizardfs/lizardfs-chunkserver.initd b/unmaintained/lizardfs/lizardfs-chunkserver.initd deleted file mode 100644 index abf97b77fe..0000000000 --- a/unmaintained/lizardfs/lizardfs-chunkserver.initd +++ /dev/null @@ -1,10 +0,0 @@ -#!/sbin/openrc-run - -command=/usr/sbin/mfschunkserver - -depend() { - need syslog - after net -} - - need syslog diff --git a/unmaintained/lizardfs/lizardfs-master.initd b/unmaintained/lizardfs/lizardfs-master.initd deleted file mode 100644 index 9e2e29f4a0..0000000000 --- a/unmaintained/lizardfs/lizardfs-master.initd +++ /dev/null @@ -1,9 +0,0 @@ -#!/sbin/openrc-run - -command=/usr/sbin/mfsmaster - -depend() { - need syslog - after net -} - diff --git a/unmaintained/lizardfs/lizardfs-metalogger.initd b/unmaintained/lizardfs/lizardfs-metalogger.initd deleted file mode 100644 index 012d8836c9..0000000000 --- a/unmaintained/lizardfs/lizardfs-metalogger.initd +++ /dev/null @@ -1,9 +0,0 @@ -#!/sbin/openrc-run - -command=/usr/sbin/mfsmetalogger - -depend() { - need syslog - after net -} - diff --git a/unmaintained/lizardfs/lizardfs.pre-install b/unmaintained/lizardfs/lizardfs.pre-install deleted file mode 100644 index 83ce544575..0000000000 --- a/unmaintained/lizardfs/lizardfs.pre-install +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -addgroup -S mfs 2>/dev/null -adduser -S -D -H -h /var/lib/mfs -s /sbin/nologin -G mfs -g mfs mfs \ - 2>/dev/null - -exit 0 diff --git a/unmaintained/llvm10/0001-Disable-dynamic-lib-tests-for-musl-s-dlclose-is-noop.patch b/unmaintained/llvm10/0001-Disable-dynamic-lib-tests-for-musl-s-dlclose-is-noop.patch new file mode 100644 index 0000000000..1bf2fbb607 --- /dev/null +++ b/unmaintained/llvm10/0001-Disable-dynamic-lib-tests-for-musl-s-dlclose-is-noop.patch @@ -0,0 +1,22 @@ +From f8e83c4c7866ae830abe9bec15cfe805dd825b6e Mon Sep 17 00:00:00 2001 +From: xentec <xentec@aix0.eu> +Date: Tue, 12 Sep 2017 07:18:38 +0200 +Subject: [PATCH] Disable dynamic lib tests for musl's dlclose() is noop + +--- + unittests/Support/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/unittests/Support/CMakeLists.txt b/unittests/Support/CMakeLists.txt +index 641163e..4f508d9 100644 +--- a/unittests/Support/CMakeLists.txt ++++ b/unittests/Support/CMakeLists.txt +@@ -75,4 +75,4 @@ set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w) + # ManagedStatic.cpp uses <pthread>. + target_link_libraries(SupportTests LLVMTestingSupport ${LLVM_PTHREAD_LIB}) + +-add_subdirectory(DynamicLibrary) ++# add_subdirectory(DynamicLibrary) +-- +2.14.1 + diff --git a/unmaintained/llvm10/APKBUILD b/unmaintained/llvm10/APKBUILD new file mode 100644 index 0000000000..517ea6b32a --- /dev/null +++ b/unmaintained/llvm10/APKBUILD @@ -0,0 +1,271 @@ +# Contributor: Rasmus Thomsen <oss@cogitri.dev> +# Contributor: Martell Malone <martell@marinelayer.io> +# Contributor: Travis Tilley <ttilley@gmail.com> +# Contributor: Mitch Tishmack <mitch.tishmack@gmail.com> +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Contributor: Ariadne Conill <ariadne@dereferenced.org> +# Maintainer: Rasmus Thomsen <oss@cogitri.dev> +_pkgname=llvm +pkgver=10.0.1 +_majorver=${pkgver%%.*} +pkgname=$_pkgname$_majorver +pkgrel=4 +pkgdesc="Low Level Virtual Machine compiler system, version $_majorver" +arch="all !riscv64" +url="https://llvm.org/" +license="Apache-2.0" +depends_dev="$pkgname=$pkgver-r$pkgrel" +makedepends_host="binutils-dev libffi-dev zlib-dev libxml2-dev" +makedepends_build="cmake chrpath python3 py3-setuptools" +# diffutils for diff: unrecognized option: strip-trailing-cr +# coreutils for 'od' binary +checkdepends="bash coreutils diffutils" +subpackages="$pkgname-static $pkgname-libs $pkgname-dev $pkgname-test-utils:_test_utils" +source="https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/llvm-$pkgver.src.tar.xz + 0001-Disable-dynamic-lib-tests-for-musl-s-dlclose-is-noop.patch + fix-memory-mf_exec-on-aarch64.patch + fix-LLVMConfig-cmake-install-prefix.patch + python3-test.patch + " +builddir="$srcdir/$_pkgname-$pkgver.src" + +# If crosscompiling, we need llvm-tblgen on the build machine. +if [ -n "$BOOTSTRAP" ]; then + makedepends_build="$makedepends_build cmd:llvm-tblgen" + cmake_cross_options=" + -DCMAKE_CROSSCOMPILING=ON + -DLLVM_TABLEGEN=/usr/bin/llvm-tblgen + " +fi + +# ARM has few failures in test suite that we don't care about currently and +# also it takes forever to run them on the builder. +# MIPS as well... +case "$CARCH" in + arm*) options="$options !check";; + mips*) options="$options !check";; +esac + +# Whether is this package the default (latest) LLVM version. +_default_llvm="no" + +if [ "$_default_llvm" = yes ]; then + provides="llvm=$pkgver-r$pkgrel" + replaces="llvm" +fi + +# NOTE: It seems that there's no (sane) way how to change includedir, sharedir +# etc. separately, just the CMAKE_INSTALL_PREFIX. Standard CMake variables and +# even LLVM-specific variables, that are related to these paths, actually +# don't work (in llvm 3.7). +# +# When building a software that depends on LLVM, utility llvm-config should be +# used to discover where is LLVM installed. It provides options to print +# path of bindir, includedir, and libdir separately, but in its source, all +# these paths are actually hard-coded against INSTALL_PREFIX. We can patch it +# and move paths manually, but I'm really not sure what it may break... +# +# Also note that we should *not* add version suffix to files in llvm bindir! +# It breaks build system of some software that depends on LLVM, because they +# don't expect these files to have a sufix. +# +# So, we install all the LLVM files into /usr/lib/llvm$_majorver. +# BTW, Fedora and Debian do the same thing. +# +_prefix="usr/lib/llvm$_majorver" + +prepare() { + default_prepare + mkdir -p "$builddir"/build + + # Known broken test on musl + rm -v test/CodeGen/AArch64/wineh4.mir + case "$CARCH" in + x86) rm -v test/Object/macho-invalid.test;; + esac +} + +build() { + cd "$builddir"/build + + # Auto-detect it by guessing either. + local ffi_include_dir="$(pkg-config --cflags-only-I libffi | sed 's|^-I||g')" + case "$CARCH" in + x86) LDFLAGS="$LDFLAGS -Wl,--no-keep-memory";; # avoid exhausting memory limit + esac + + cmake -Wno-dev \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \ + -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/$_prefix \ + -DFFI_INCLUDE_DIR="$ffi_include_dir" \ + -DLLVM_BINUTILS_INCDIR=/usr/include \ + -DLLVM_BUILD_DOCS=OFF \ + -DLLVM_BUILD_EXAMPLES=OFF \ + -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \ + -DLLVM_BUILD_LLVM_DYLIB=ON \ + -DLLVM_BUILD_TESTS=ON \ + -DLLVM_DEFAULT_TARGET_TRIPLE="$CBUILD" \ + -DLLVM_ENABLE_ASSERTIONS=OFF \ + -DLLVM_ENABLE_CXX1Y=ON \ + -DLLVM_ENABLE_FFI=ON \ + -DLLVM_ENABLE_LIBCXX=OFF \ + -DLLVM_ENABLE_PIC=ON \ + -DLLVM_ENABLE_RTTI=ON \ + -DLLVM_ENABLE_SPHINX=OFF \ + -DLLVM_ENABLE_TERMINFO=ON \ + -DLLVM_ENABLE_ZLIB=ON \ + -DLLVM_HOST_TRIPLE="$CHOST" \ + -DLLVM_INCLUDE_EXAMPLES=OFF \ + -DLLVM_LINK_LLVM_DYLIB=ON \ + -DLLVM_APPEND_VC_REV=OFF \ + $cmake_cross_options \ + "$builddir" + + make llvm-tblgen + make + + python3 ../utils/lit/setup.py build +} + +check() { + cd "$builddir"/build + + make check-llvm +} + +package() { + cd "$builddir"/build + + make DESTDIR="$pkgdir" install + + cd "$pkgdir"/$_prefix + + # Remove RPATHs. + file lib/*.so bin/* \ + | awk -F: '$2~/ELF/{print $1}' \ + | xargs -r chrpath -d + + # Symlink files from /usr/lib/llvm*/bin to /usr/bin. + mkdir -p "$pkgdir"/usr/bin + local name newname path + for path in bin/*; do + name=${path##*/} + # Add version infix/suffix to the executable name. + case "$name" in + llvm-*) newname="llvm$_majorver-${name#llvm-}";; + *) newname="$name$_majorver";; + esac + # If this package provides=llvm (i.e. it's the default/latest + # llvm package), omit version infix/suffix. + if [ "$_default_llvm" = yes ]; then + newname=$name + fi + case "$name" in + FileCheck | obj2yaml | yaml2obj) continue;; + esac + ln -s ../lib/llvm$_majorver/bin/$name "$pkgdir"/usr/bin/$newname + done + + # Move /usr/lib/$pkgname/include/ into /usr/include/$pkgname/ + # and symlink it back. + mkdir "$pkgdir"/usr/include/ + mv include "$pkgdir"/usr/include/$pkgname + ln -s ../../include/$pkgname include + + # Move /usr/lib/$pkgname/lib/cmake/llvm/ into /usr/lib/cmake/$pkgname/ + # and symlink it back. + mkdir "$pkgdir"/usr/lib/cmake/ + mv lib/cmake/llvm "$pkgdir"/usr/lib/cmake/$pkgname + ln -s ../../../cmake/$pkgname lib/cmake/llvm +} + +static() { + pkgdesc="LLVM $_majorver static libraries" + _common_subpkg + + _mv "$pkgdir"/$_prefix/lib/*.a "$subpkgdir"/$_prefix/lib/ +} + +libs() { + pkgdesc="LLVM $_majorver runtime library" + local soname="libLLVM-$_majorver.so" + local soname2="libLLVM-$pkgver.so" + + mkdir -p "$subpkgdir" + cd "$subpkgdir" + + # libLLVM should be in /usr/lib. This is needed for binaries that are + # dynamically linked with libLLVM, so they can find it on default path. + _mv "$pkgdir"/$_prefix/lib/$soname usr/lib/ + ln -s $soname usr/lib/$soname2 + + # And also symlink it back to the LLVM prefix. + mkdir -p $_prefix/lib + ln -s ../../$soname $_prefix/lib/$soname + ln -s ../../$soname $_prefix/lib/$soname2 +} + +dev() { + _common_subpkg + default_dev + cd "$subpkgdir" + + _mv "$pkgdir"/$_prefix/lib $_prefix/ + _mv "$pkgdir"/$_prefix/include $_prefix/ + + _mv "$pkgdir"/$_prefix/bin/llvm-config $_prefix/bin/ + + # Move libLTO and LLVMgold back + _mv "$subpkgdir"/$_prefix/lib/libLTO.so.* \ + "$subpkgdir"/$_prefix/lib/LLVMgold* \ + "$pkgdir"/$_prefix/lib + + if [ "$_default_llvm" = yes ]; then + ln -sf llvm$_majorver usr/lib/cmake/llvm + ln -sf llvm$_majorver/lib/LLVMgold.so "$subpkgdir"/usr/lib/ + ln -sf llvm$_majorver/lib/libLTO.so "$subpkgdir"/usr/lib/ + fi +} + +_test_utils() { + pkgdesc="LLVM $_majorver utilities for executing LLVM and Clang style test suites" + depends="python3 py3-setuptools" + _common_subpkg + replaces="" + + local litver=$(python3 "$builddir"/utils/lit/setup.py --version 2>/dev/null \ + | sed 's/\.dev.*$//') + test -n "$litver" + provides="$provides lit=$litver-r$pkgrel" + + cd "$builddir"/build + + install -D -m 755 bin/count "$subpkgdir"/$_prefix/bin/count + install -D -m 755 bin/FileCheck "$subpkgdir"/$_prefix/bin/FileCheck + install -D -m 755 bin/not "$subpkgdir"/$_prefix/bin/not + + python3 ../utils/lit/setup.py install --prefix=/usr --root="$subpkgdir" + ln -s ../../../bin/lit "$subpkgdir"/$_prefix/bin/lit +} + +_common_subpkg() { + if [ "$_default_llvm" = yes ]; then + replaces="llvm${subpkgname#$pkgname}" + provides="$replaces=$pkgver-r$pkgrel" + fi +} + +_mv() { + local dest; for dest; do true; done # get last argument + mkdir -p "$dest" + mv "$@" +} + +sha512sums="cf34d037c1684d09e7e38d5fc131714eac93c78353d6186b2f806a8fb22dcae0f4748ce22d6faf178c95cfcf20bdc3fa7c5238518a154b3112781f5ab70edaa4 llvm-10.0.1.src.tar.xz +695502bd3b5454c2f5630c59a8cf5f8aeb0deac16a76a8a4df34849e1e35c12ed4234572a320fe4c7e96f974f572f429eb816c5aa3dcfb17057f550eac596495 0001-Disable-dynamic-lib-tests-for-musl-s-dlclose-is-noop.patch +64b9ecb246cc94ce7f617b3699b3306de0872a1a9b0ade88563330aa6f9a60742bb1d73f95743d0f033ea8b1535e2e612250c8f50bddf4419741ca18f40eca1d fix-memory-mf_exec-on-aarch64.patch +7d4825d16107e56a14b7b05be847f03d75e2e05952bea0742a1233b5b0441c9934d8058e612abb6471272884372d9bfd3348355fbd3c19cba82a554003cc3eec fix-LLVMConfig-cmake-install-prefix.patch +53cc0d13dd871e9b775bb4e7567de4f9a97d91b8246cd7ce74607fd88d6e3e2ab9455f5b4195bc7f9dbdedbc77d659d43e98ec0b7cd78cd395aaea6919510287 python3-test.patch" diff --git a/unmaintained/llvm10/fix-LLVMConfig-cmake-install-prefix.patch b/unmaintained/llvm10/fix-LLVMConfig-cmake-install-prefix.patch new file mode 100644 index 0000000000..b7e3dbe294 --- /dev/null +++ b/unmaintained/llvm10/fix-LLVMConfig-cmake-install-prefix.patch @@ -0,0 +1,24 @@ +Fix LLVMConfig.cmake being generated to use correct LLVM_INSTALL_PREFIX +(e.g. /usr/lib/llvm5). + +This is needed e.g. for building lldb. + +--- a/cmake/modules/CMakeLists.txt ++++ b/cmake/modules/CMakeLists.txt +@@ -75,15 +75,7 @@ + + # Generate LLVMConfig.cmake for the install tree. + set(LLVM_CONFIG_CODE " +-# Compute the installation prefix from this LLVMConfig.cmake file location. +-get_filename_component(LLVM_INSTALL_PREFIX \"\${CMAKE_CURRENT_LIST_FILE}\" PATH)") +-# Construct the proper number of get_filename_component(... PATH) +-# calls to compute the installation prefix. +-string(REGEX REPLACE "/" ";" _count "${LLVM_INSTALL_PACKAGE_DIR}") +-foreach(p ${_count}) +- set(LLVM_CONFIG_CODE "${LLVM_CONFIG_CODE} +-get_filename_component(LLVM_INSTALL_PREFIX \"\${LLVM_INSTALL_PREFIX}\" PATH)") +-endforeach(p) ++set(LLVM_INSTALL_PREFIX \"${CMAKE_INSTALL_PREFIX}\")") + set(LLVM_CONFIG_INCLUDE_DIRS "\${LLVM_INSTALL_PREFIX}/include") + set(LLVM_CONFIG_LIBRARY_DIRS "\${LLVM_INSTALL_PREFIX}/lib\${LLVM_LIBDIR_SUFFIX}") + set(LLVM_CONFIG_CMAKE_DIR "\${LLVM_INSTALL_PREFIX}/${LLVM_INSTALL_PACKAGE_DIR}") diff --git a/unmaintained/llvm10/fix-memory-mf_exec-on-aarch64.patch b/unmaintained/llvm10/fix-memory-mf_exec-on-aarch64.patch new file mode 100644 index 0000000000..a64a317ee6 --- /dev/null +++ b/unmaintained/llvm10/fix-memory-mf_exec-on-aarch64.patch @@ -0,0 +1,25 @@ +Fix failures in AllocationTests/MappedMemoryTest.* on aarch64: + + Failing Tests (8): + LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.AllocAndRelease/3 + LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.DuplicateNear/3 + LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.EnabledWrite/3 + LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.MultipleAllocAndRelease/3 + LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.SuccessiveNear/3 + LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.UnalignedNear/3 + LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.ZeroNear/3 + LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.ZeroSizeNear/3 + +Upstream-Issue: https://bugs.llvm.org/show_bug.cgi?id=14278#c10 + +--- a/lib/Support/Unix/Memory.inc ++++ b/lib/Support/Unix/Memory.inc +@@ -59,7 +59,7 @@ + return PROT_READ | PROT_WRITE | PROT_EXEC; + case llvm::sys::Memory::MF_EXEC: + #if (defined(__FreeBSD__) || defined(__POWERPC__) || defined (__ppc__) || \ +- defined(_POWER) || defined(_ARCH_PPC)) ++ defined(_POWER) || defined(_ARCH_PPC) || (defined(__linux__) && defined(__aarch64__))) + // On PowerPC, having an executable page that has no read permission + // can have unintended consequences. The function InvalidateInstruction- + // Cache uses instructions dcbf and icbi, both of which are treated by diff --git a/unmaintained/llvm10/python3-test.patch b/unmaintained/llvm10/python3-test.patch new file mode 100644 index 0000000000..746313317e --- /dev/null +++ b/unmaintained/llvm10/python3-test.patch @@ -0,0 +1,8 @@ +--- llvm-7.0.1.src/test/BugPoint/compile-custom.ll.py.old 2014-03-13 00:10:37.000000000 +0000 ++++ llvm-7.0.1.src/test/BugPoint/compile-custom.ll.py 2019-03-10 03:48:48.600000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + import sys + diff --git a/unmaintained/mhddfs/APKBUILD b/unmaintained/mhddfs/APKBUILD new file mode 100644 index 0000000000..148c9be42d --- /dev/null +++ b/unmaintained/mhddfs/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Zsolt M <zsolt@meszarovics.me> +# Maintainer: +pkgname=mhddfs +pkgver=0.1.39 +pkgrel=0 +pkgdesc="A fuse-based file system for unifying several mount points into one." +url="http://mhddfs.uvw.ru" +arch="" # fails to build +license="GPL-3.0" +depends="fuse" +depends_dev="fuse-dev attr-dev" +makedepends="$depends_dev" +_uthashver=1.9.9 +source="http://mhddfs.uvw.ru/downloads/${pkgname}_${pkgver}.tar.gz + uthash-v${_uthashver}.tar.gz::https://github.com/troydhanson/uthash/archive/v${_uthashver}.tar.gz + local-uthash.patch" +builddir="$srcdir"/${pkgname}-${pkgver} + +build() { + cd "$builddir" + srcdir=${srcdir} make +} + +package() { + cd "$builddir" + install -Dsm755 mhddfs "$pkgdir"/usr/bin/${pkgname} +} + +sha512sums="cf1952e665e82a92ccfef9215d4faf78cd235566b67e6ebc3a60ab53089d9391bc41a08e6b203ad052e4a08bdd14428f2d9abe48f341aeb0c80ae1da80f83f89 mhddfs_0.1.39.tar.gz +40b888529db6baba7bdb0a11c3f782719c40470f6b8e4d75ed480c4c465606e990abf65786156a93f4e2f9c8805cbc098550cc3c62e33b7345fa5bf6d146a8c4 uthash-v1.9.9.tar.gz +e288ab2efad8955e621460e46dc6ec7c14f6471498ec3df6900fad00bfbb91d3ba9cabed10f17257c6aa15f5be6558c75d4220e57b935beb1cef0893d7a9bbab local-uthash.patch" diff --git a/unmaintained/mhddfs/local-uthash.patch b/unmaintained/mhddfs/local-uthash.patch new file mode 100644 index 0000000000..d9322d4069 --- /dev/null +++ b/unmaintained/mhddfs/local-uthash.patch @@ -0,0 +1,21 @@ +--- mhddfs-0.1.39/Makefile.orig ++++ mhddfs-0.1.39/Makefile +@@ -9,7 +9,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-# GNU General Public License for more details. ++ # GNU General Public License for more details. + + # You should have received a copy of the GNU General Public License + # along with this program. If not, see <http://www.gnu.org/licenses/>. +@@ -24,6 +24,9 @@ + + CFLAGS = -Wall $(shell pkg-config fuse --cflags) \ + -DFUSE_USE_VERSION=26 -MMD ++ ++CFLAGS += -I${srcdir}/uthash-1.9.9/src ++ + ifdef WITHOUT_XATTR + CFLAGS += -DWITHOUT_XATTR + endif diff --git a/unmaintained/most/APKBUILD b/unmaintained/most/APKBUILD new file mode 100644 index 0000000000..2160a8687d --- /dev/null +++ b/unmaintained/most/APKBUILD @@ -0,0 +1,28 @@ +# Contributor: +# Maintainer: +pkgname=most +pkgver=5.1.0 +pkgrel=0 +pkgdesc="A terminal pager similar to more and less" +url="http://www.jedsoft.org/most/index.html" +arch="" +license="GPL-2.0-or-later" +makedepends="slang-dev ncurses-dev" +subpackages="$pkgname-doc" +source="https://www.jedsoft.org/releases/most/most-$pkgver.tar.gz" + +prepare() { + default_prepare + update_config_guess +} + +build() { + ./configure --prefix=/usr --sysconfdir=/etc + make -j1 +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="cbc090283bbaafb8ffee9d6d1abc7b49cd58d54b742cf8dc86274351dee6398d1f24841bd1631ac40f861ad9e23569646133d3297317d9d514a7a38dd74533d2 most-5.1.0.tar.gz" diff --git a/unmaintained/netdisco/APKBUILD b/unmaintained/netdisco/APKBUILD new file mode 100644 index 0000000000..060278962c --- /dev/null +++ b/unmaintained/netdisco/APKBUILD @@ -0,0 +1,61 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=netdisco +_pkgreal=App-Netdisco +_pkgver=2.036012_003 +pkgver=${_pkgver/_/p} +pkgrel=4 +pkgdesc="An open source web-based network management tool." +url="https://metacpan.org/release/App-Netdisco/" +arch="" # perl-starman +license="BSD-3-Clause" +cpandepends="perl-dancer-plugin-passphrase perl-data-printer perl-plack perl-ldap + perl-file-sharedir perl-starman perl-socket6 perl-json-xs perl-netaddr-mac + perl-anyevent perl-uri perl-dancer-plugin-dbic perl-template-plugin-csv + perl-try-tiny perl-snmp-info perl-list-moreutils perl-dbix-class + perl-anyevent-dns-etchosts perl-daemon-control perl-file-slurper perl-moo + perl-io-socket-ssl perl-role-tiny perl-algorithm-cron perl-sereal + perl-template-plugin-number-format perl-json perl-dbix-class-helpers + perl-dancer-plugin-auth-extensible perl-sql-translator perl-path-class + perl-template-toolkit perl-url-encode perl-dancer perl-plack-middleware-reverseproxy + perl-namespace-clean perl-cgi-expand perl-html-parser perl-net-dns + perl-dancer-session-cookie perl-yaml-libyaml perl-netaddr-ip perl-aliased + perl-guard perl-mce perl-plack-middleware-expires perl-dbd-pg" +# perl-app-local-lib-helper perl-app-cpanminus +cpanmakedepends="" +cpancheckdepends="perl-env-path" +depends="perl-term-ui perl-archive-extract $cpandepends" +makedepends="perl-dev perl-module-build $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/O/OL/OLIVER/$_pkgreal-$_pkgver.tar.gz + " +builddir="$srcdir/$_pkgreal-$_pkgver" + +prepare() { + default_prepare + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + perl Build.PL installdirs=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + ./Build +} + +package() { + cd "$builddir" + ./Build install destdir="$pkgdir" + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + ./Build test +} + +sha512sums="4c0f5dcd6f6174f5531399f1bc6aafb3a650e4abe4ff97c39fdeb6ce982e7a7c95cd205e53f871b56aafa98a9cd4d5b6812aea8415e3ef5a2ca06c1f9576ae3f App-Netdisco-2.036012_003.tar.gz" diff --git a/unmaintained/ocaml-biniou/APKBUILD b/unmaintained/ocaml-biniou/APKBUILD deleted file mode 100644 index 737ad91e31..0000000000 --- a/unmaintained/ocaml-biniou/APKBUILD +++ /dev/null @@ -1,54 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-biniou -_pkgname=biniou -pkgver=1.2.1 -pkgrel=1 -pkgdesc="Extensible binary data format, like JSON but faster" -url="https://github.com/ocaml-community/biniou" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="BSD-3-Clause" -depends="ocaml-runtime ocaml-easy-format" -depends_dev="$pkgname=$pkgver-r$pkgrel" -makedepends="dune ocaml ocaml-easy-format-dev ocaml-findlib opam" -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz" -source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-community/biniou/archive/$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - jbuilder build @install -} - -check() { - jbuilder runtest -} - -package() { - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir" \ - --prefix=/usr \ - --libdir=/usr/lib/ocaml - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc - - # Remove annotation files and sources. - cd "$pkgdir"/usr/lib/ocaml/$_pkgname - rm -f *.cmt* *.ml -} - -dev() { - local sitelib="usr/lib/ocaml/$_pkgname" - default_dev - - mkdir -p "$subpkgdir"/$sitelib - - mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ - - cd "$pkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="f0166666559f3a767fdc6987bad45ec4a772b70b8880b6d769ef644c9bfd46962f089c7b5dfff368413015e765daf4bacffe253bdb3478d9a4d30a15f0d29589 ocaml-biniou-1.2.1.tar.gz" diff --git a/unmaintained/ocaml-camlp5/APKBUILD b/unmaintained/ocaml-camlp5/APKBUILD new file mode 100644 index 0000000000..8a0bce3d26 --- /dev/null +++ b/unmaintained/ocaml-camlp5/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: alpine-mips-patches <info@mobile-stream.com> +# Maintainer: alpine-mips-patches <info@mobile-stream.com> +pkgname=ocaml-camlp5 +_pkgname=camlp5 +pkgver=8.00.01 +_pkgver="rel$pkgver" +pkgrel=0 +pkgdesc="Preprocessor-pretty-printer of OCaml" +url="https://camlp5.github.io" +arch="all !riscv64" # restricted by ocaml +license="BSD-3-Clause" +depends="ocaml-runtime" +makedepends="ocaml ocaml-compiler-libs perl" +options="!check" +subpackages="$pkgname-dev $pkgname-doc" +source="$pkgname-$_pkgver.tar.gz::https://github.com/camlp5/$_pkgname/archive/$_pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$_pkgver" + +build() { + ./configure \ + --prefix /usr \ + --bindir /usr/bin \ + --libdir /usr/lib/ocaml \ + --mandir /usr/share/man + make +} + +package() { + make DESTDIR="$pkgdir" install +} + +dev() { + # mkcamlp5* call ocamlc + depends="$pkgname=$pkgver-r$pkgrel ocaml ocaml-compiler-libs" + pkgdesc="$pkgdesc (development files)" + + local _bindir="usr/bin" + mkdir -p "$subpkgdir/$_bindir" + mv "$pkgdir/$_bindir/"mkcamlp5* "$subpkgdir/$_bindir" + + local _camlp5dir="usr/lib/ocaml/camlp5" + mkdir -p "$subpkgdir/$_camlp5dir" + for p in '*.a' '*.cmx' '*.cmxa' '*.mli' '*.o'; do + mv "$pkgdir/$_camlp5dir/"$p "$subpkgdir/$_camlp5dir" + done +} + +sha512sums=" +f40e57845ac4a14cf260ddd9df616d12df09f67efaf6735e915598aee981721e8203bf9203fb83d08e34e43021c08003de64dbf3bdcd4d12fd079542fb7649aa ocaml-camlp5-rel8.00.01.tar.gz +" diff --git a/unmaintained/ocaml-camomile/APKBUILD b/unmaintained/ocaml-camomile/APKBUILD deleted file mode 100644 index 6184eda88f..0000000000 --- a/unmaintained/ocaml-camomile/APKBUILD +++ /dev/null @@ -1,78 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-camomile -_pkgname=camomile -pkgver=1.0.1 -pkgrel=1 -pkgdesc="A Unicode library for OCaml" -url="https://github.com/yoriyuki/Camomile" -# x86, armhf, s390x: limited by ocaml aport -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" -license="LGPL-2.0-or-later" -depends="$pkgname-data=$pkgver-r$pkgrel ocaml-runtime" -makedepends="dune ocaml ocaml-compiler-libs ocaml-cppo ocaml-findlib opam" -subpackages="$pkgname-dev $pkgname-data::noarch" -source="$pkgname-$pkgver.tar.gz::https://github.com/yoriyuki/$_pkgname/archive/$pkgver.tar.gz" -builddir="$srcdir/Camomile-$pkgver" - -build() { - cd "$builddir" - - # Workaround for https://github.com/yoriyuki/Camomile/issues/39. - if [ "$CARCH" = ppc64le ]; then - ulimit -Hs unlimited - ulimit -Ss 65536 - fi - - jbuilder build @install -} - -check() { - cd "$builddir" - jbuilder runtest -} - -package() { - cd "$builddir" - - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir/usr" \ - --libdir="$pkgdir/usr/lib/ocaml" - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc - - # Remove annotation files and sources. - find "$pkgdir"/usr/lib/ocaml/$_pkgname \( \ - -name '*.cmt' -o \ - -name '*.cmti' -o \ - -name '*.ml' -o \ - -name '*.ml-gen' \) -delete -} - -dev() { - default_dev - depends="$pkgname=$pkgver-r$pkgrel" - - cd "$pkgdir" - - local path; for path in $(find usr/lib/ocaml/$_pkgname \ - -name '*.cmx' -o \ - -name '*.cmxa' -o \ - -name '*.mli') - do - mkdir -p "${path%/*}" - mv "$path" "$subpkgdir"/${path%/*}/ - done -} - -data() { - pkgdesc="$pkgdesc (data files)" - depends="" - - mkdir -p "$subpkgdir"/usr/share - mv "$pkgdir"/usr/share/$_pkgname "$subpkgdir"/usr/share/ -} - -sha512sums="41c453a55d284f879e390ef341482ad5c3dccb1cfd3720fd8513555276dde2397b657c632aa9b02f12f7990adb57bd7c3add637e30606c8f9ab5d28454eddfef ocaml-camomile-1.0.1.tar.gz" diff --git a/unmaintained/ocaml-cmdliner/APKBUILD b/unmaintained/ocaml-cmdliner/APKBUILD deleted file mode 100644 index db71176beb..0000000000 --- a/unmaintained/ocaml-cmdliner/APKBUILD +++ /dev/null @@ -1,40 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-cmdliner -_pkgname=cmdliner -pkgver=1.0.4 -pkgrel=1 -pkgdesc="Declarative definition of command line interfaces for OCaml" -url="http://erratique.ch/software/cmdliner" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="ISC" -depends="ocaml-result ocaml-runtime" -depends_dev="$pkgname=$pkgver-r$pkgrel" -makedepends="ocaml ocaml-findlib ocaml-result-dev ocamlbuild" -options="!check" # no tests provided -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - make -j1 -} - -package() { - make install DESTDIR="$pkgdir" PREFIX=/usr - - # Remove annotation files. - rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt* -} - -dev() { - local sitelib="usr/lib/ocaml/$_pkgname" - default_dev - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="d8d2408fa2606295ec4cc1662f38a9ad675e009f948cac8e87354abf160b37e316969a24e3caf81b5a296eebbdc178f8a1655afcaf3840be71462b58337c359f ocaml-cmdliner-1.0.4.tar.gz" diff --git a/unmaintained/ocaml-easy-format/APKBUILD b/unmaintained/ocaml-easy-format/APKBUILD deleted file mode 100644 index ab689d7ae6..0000000000 --- a/unmaintained/ocaml-easy-format/APKBUILD +++ /dev/null @@ -1,51 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-easy-format -_pkgname=easy-format -pkgver=1.3.1 -pkgrel=4 -pkgdesc="Pretty-printing library for OCaml" -url="https://mjambon.github.io/mjambon2016/easy-format.html" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="BSD-3-Clause" -depends="ocaml-runtime" -depends_dev="$pkgname=$pkgver-r$pkgrel" -makedepends="dune ocaml ocaml-findlib opam" -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - jbuilder build @install -} - -check() { - jbuilder runtest -} - -package() { - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir" \ - --prefix=/usr \ - --libdir=/usr/lib/ocaml - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc - - # Remove annotation files and sources. - cd "$pkgdir"/usr/lib/ocaml/$_pkgname - rm -f *.cmt* *.ml -} - -dev() { - local sitelib="usr/lib/ocaml/$_pkgname" - default_dev - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="d8d5dc3ca53a84dc242869a09b3f485ca43a8260c6bae79c9e1cbd3751ddc3c4e5cca7582b987ff12980adb7a385261f53169349c0334782ea5c3412d4ed3ab2 ocaml-easy-format-1.3.1.tar.gz" diff --git a/unmaintained/ocaml-labltk/APKBUILD b/unmaintained/ocaml-labltk/APKBUILD deleted file mode 100644 index 5add49ce0a..0000000000 --- a/unmaintained/ocaml-labltk/APKBUILD +++ /dev/null @@ -1,59 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-labltk -_pkgname=labltk -pkgver=8.06.5 -_pkgkey=1764 # it changes with version update -pkgrel=1 -_ocamlver=4.07.1 -pkgdesc="Tcl/Tk interface for OCaml" -url="http://labltk.forge.ocamlcore.org/" -arch="aarch64 ppc64le x86_64" # limited by ocaml aport -license="LGPL-2.0-or-later-WITH-linking-exception" -depends="ocaml-runtime" -depends_dev="$pkgname=$pkgver-r$pkgrel" -makedepends="ocaml=~$_ocamlver ocaml-compiler-libs=~$_ocamlver tcl-dev tk tk-dev" -options="!check" # no tests provided -subpackages="$pkgname-dev" -source="https://forge.ocamlcore.org/frs/download.php/$_pkgkey/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - - ./configure --tk-no-x11 - make -j1 all - make -j1 opt -} - -package() { - local libdir="$pkgdir/usr/lib/ocaml" - cd "$builddir" - - mkdir -p "$libdir"/$_pkgname \ - "$libdir"/stublibs \ - "$pkgdir"/usr/bin - - make install \ - BINDIR="$pkgdir/usr/bin" \ - INSTALLDIR="$pkgdir/usr/lib/ocaml/$_pkgname" \ - STUBLIBDIR="$pkgdir/usr/lib/ocaml/stublibs" - - # The *.o files are not installed by the Makefile. - # AIUI that prevents linking with native code programs. - install -m 0644 camltk/*.o "$libdir"/$_pkgname/ -} - -dev() { - local sitelib="usr/lib/ocaml/$_pkgname" - default_dev - - mkdir -p "$subpkgdir"/usr - mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ - - cd "$pkgdir"/$sitelib - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="8a6bfefd1ba8ef1fb54c284a06067007dd48833a475e24c787c0c2100a30a5ab018606ca3e79fd0fa323b6759de0ae3c7e6ef881e662bf1d7f84e920c7bebe7a labltk-8.06.5.tar.gz" diff --git a/unmaintained/ocaml-lambda-term/APKBUILD b/unmaintained/ocaml-lambda-term/APKBUILD deleted file mode 100644 index 221b2cb891..0000000000 --- a/unmaintained/ocaml-lambda-term/APKBUILD +++ /dev/null @@ -1,68 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-lambda-term -_pkgname=lambda-term -pkgver=1.13 -pkgrel=1 -pkgdesc="Terminal manipulation library for OCaml" -url="https://github.com/diml/lambda-term" -# x86, armhf, s390x, mips, mips64: limited by ocaml aport -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" -license="BSD-3-Clause" -depends="ocaml-camomile ocaml-lwt ocaml-lwt_react ocaml-lwt_log ocaml-zed" -makedepends=" - dune - ocaml - ocaml-camomile-dev - ocaml-lwt-dev - ocaml-lwt_log-dev - ocaml-findlib - ocaml-react-dev - ocaml-result-dev - ocaml-zed-dev - opam - " -subpackages="$pkgname-dev $pkgname-doc" -source="$pkgname-$pkgver.tar.bz2::https://github.com/diml/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tbz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - jbuilder build @install -} - -check() { - cd "$builddir" - jbuilder runtest -} - -package() { - cd "$builddir" - - opam-installer -i \ - --prefix="$pkgdir/usr" \ - --libdir="$pkgdir/usr/lib/ocaml" \ - --docdir="$pkgdir/doc" \ - --mandir="$pkgdir/usr/share/man" \ - $_pkgname.install - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/doc - - # Remove annotation files and sources. - cd "$pkgdir"/usr/lib/ocaml/$_pkgname - rm -f *.cmt* *.ml -} - -dev() { - default_dev - depends="$pkgname=$pkgver-r$pkgrel" - local sitelib="usr/lib/ocaml/$_pkgname" - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="79efc40653e74eb27181b260bc0096238854eb72a61b59c3de3740b01399d9fefa35c0f978d48bbf8097647b6324651207ade022572ef06b460b7b1b001b0dc7 ocaml-lambda-term-1.13.tar.bz2" diff --git a/unmaintained/ocaml-lwt/APKBUILD b/unmaintained/ocaml-lwt/APKBUILD deleted file mode 100644 index 439cd98766..0000000000 --- a/unmaintained/ocaml-lwt/APKBUILD +++ /dev/null @@ -1,111 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-lwt -_pkgname=lwt -pkgver=4.1.0 -pkgrel=1 -pkgdesc="OCaml promises and concurrent I/O" -url="https://github.com/ocsigen/lwt" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="LGPL-2.1-or-later-WITH-linking-exception BSD-3-Clause" -depends="ocaml-runtime ocaml-result" -depends_dev="libev-dev" -makedepends="$depends_dev - dune - ocaml - ocaml-compiler-libs - ocaml-cppo-dev - ocaml-findlib - ocaml-migrate-parsetree-dev - ocaml-ppx_tools_versioned-dev - ocaml-react-dev - ocaml-result-dev - opam - " -options="!check" # FIXME: tests hang -subpackages="$pkgname-dev ${pkgname}_ppx:_ppx ${pkgname}_react:_react" -source="$pkgname-$pkgver.tar.gz::https://github.com/ocsigen/$_pkgname/archive/$pkgver.tar.gz - result_lseek_noinline.patch" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - - ocaml src/util/configure.ml \ - -use-libev true - - jbuilder build @install -} - -check() { - cd "$builddir" - - jbuilder runtest -} - -package() { - local libdir="$pkgdir/usr/lib/ocaml" - cd "$builddir" - - mkdir -p "$libdir" - jbuilder install \ - --destdir="$pkgdir"/usr \ - --libdir="$libdir" - - find "$libdir" -name '*.cmxs' -exec chmod 0755 {} \; - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc - - # Remove annotation files and sources. - find "$libdir"/$_pkgname* \( \ - -name '*.cmt' -o \ - -name '*.cmti' -o \ - -name '*.ml' \) -delete -} - -dev() { - default_dev - depends="$depends_dev - $pkgname=$pkgver-r$pkgrel - ${pkgname}_ppx=$pkgver-r$pkgrel - ${pkgname}_react=$pkgver-r$pkgrel" - provides="${pkgname}_ppx-dev ${pkgname}_react-dev" - - cd "$pkgdir" - - local path; for path in $(find usr/lib/ocaml/$_pkgname*/ \ - -name '*.cmx' \ - -o -name '*.cmxa' \ - -o -name '*.mli') - do - mkdir -p "${path%/*}" - mv "$path" "$subpkgdir"/${path%/*}/ - done -} - -_ppx() { - pkgdesc="$pkgdesc (PPX syntax)" - depends="$pkgname=$pkgver-r$pkgrel - ocaml-runtime - ocaml-migrate-parsetree - ocaml-ppx_tools_versioned" - - _submv usr/lib/ocaml/lwt_ppx -} - -_react() { - pkgdesc="$pkgdesc (for FRP)" - depends="$pkgname=$pkgver-r$pkgrel ocaml-runtime ocaml-react" - - _submv usr/lib/ocaml/lwt_react -} - -_submv() { - local path="$1" - mkdir -p "$subpkgdir"/${path%/*} - mv "$pkgdir"/$path "$subpkgdir"/${path%/*}/ -} - -sha512sums="28bc51e75d5e4c74171f17aaba86fdefad70f57f9f2023680044d5bf65250d8531501adc85d0422e644c1e318dcee0a4d53f7841c82d9dca9854e8fbb09987f2 ocaml-lwt-4.1.0.tar.gz -dc3abce70b3ad022066e8023a9b37346df0ecbbc6351186cc24b569189142ad3e7e32f27c33a4378f11ec8c40df5c96f4c37190ca4797bc228ca8943f53cf5bf result_lseek_noinline.patch" diff --git a/unmaintained/ocaml-lwt/result_lseek_noinline.patch b/unmaintained/ocaml-lwt/result_lseek_noinline.patch deleted file mode 100644 index 2e2fd1552d..0000000000 --- a/unmaintained/ocaml-lwt/result_lseek_noinline.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/src/unix/unix_c/unix_lseek_job.c -+++ b/src/unix/unix_c/unix_lseek_job.c -@@ -92,7 +92,7 @@ - } - - /* The function building the caml result. */ --static value result_lseek(struct job_lseek* job) -+__attribute__((noinline)) static value result_lseek(struct job_lseek* job) - { - value result; - /* Check for errors. */ -@@ -113,7 +113,7 @@ - } - - /* The function building the caml result. */ --static value result_lseek_64(struct job_lseek* job) -+__attribute__((noinline)) static value result_lseek_64(struct job_lseek* job) - { - value result; - /* Check for errors. */ diff --git a/unmaintained/ocaml-lwt_log/APKBUILD b/unmaintained/ocaml-lwt_log/APKBUILD deleted file mode 100644 index 474db8a0a2..0000000000 --- a/unmaintained/ocaml-lwt_log/APKBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-lwt_log -_pkgname=lwt_log -pkgver=1.1.0 -pkgrel=1 -pkgdesc="Lwt-friendly logger" -url="https://github.com/aantron/lwt_log" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="LGPL-2.1-or-later-WITH-linking-exception BSD-3-Clause" -depends="ocaml-runtime ocaml-lwt>=4.0.0" -makedepends="dune ocaml ocaml-findlib ocaml-lwt-dev>=4.0.0 opam" -options="!check" # no tests provided -subpackages="$pkgname-dev" -source="https://github.com/aantron/$_pkgname/archive/$pkgver/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - jbuilder build @install -} - -package() { - cd "$builddir" - - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir"/usr \ - --libdir="$pkgdir"/usr/lib/ocaml - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc - - # Remove annotation files and sources. - cd "$pkgdir"/usr/lib/ocaml/$_pkgname - rm -f *.cmt* */*.cmt* *.ml */*.ml -} - -dev() { - default_dev - depends="$pkgname=$pkgver-r$pkgrel" - - cd "$pkgdir" - - local path; for path in $(find usr/lib/ocaml/$_pkgname \ - -name '*.cmx' -o \ - -name '*.cmxa' -o \ - -name '*.mli') - do - mkdir -p "${path%/*}" - mv "$path" "$subpkgdir"/${path%/*}/ - done -} - -sha512sums="fa0ce2928912b55ecbddc14ecd6f6d5db399f7cd6cba5f38d61db4c89ab7345d3e42f8f1292d9a5be973e16fd43d8381d6c269ae47f3692bb64ff567a7039451 lwt_log-1.1.0.tar.gz" diff --git a/unmaintained/ocaml-markup/APKBUILD b/unmaintained/ocaml-markup/APKBUILD deleted file mode 100644 index ef9be28546..0000000000 --- a/unmaintained/ocaml-markup/APKBUILD +++ /dev/null @@ -1,67 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-markup -_pkgname=markup.ml -pkgver=0.7.6 -pkgrel=5 -pkgdesc="Error-recovering streaming HTML5 and XML parsers for OCaml" -url="https://aantron.github.io/markup.ml" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="BSD-2-Clause" -depends="ocaml-runtime ocaml-lwt ocaml-uchar ocaml-uutf" -depends_dev="$pkgname=$pkgver-r$pkgrel" -checkdepends="ocaml-result-dev ocaml-ounit-dev" -makedepends="dune ocaml ocaml-findlib ocaml-lwt-dev ocaml-uchar-dev - ocaml-uutf-dev opam" -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/aantron/$_pkgname/archive/$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - - ocaml src/configure.ml - jbuilder build @install -} - -check() { - cd "$builddir" - - # FIXME: Allow to fail on ppc64le for now. - case "$CARCH" in - ppc64le) jbuilder runtest --no-buffer -j1 || true;; - *) jbuilder runtest --no-buffer -j1;; - esac -} - -package() { - cd "$builddir" - - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir"/usr \ - --libdir="$pkgdir"/usr/lib/ocaml - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc - - # Remove annotation files and sources. - find "$pkgdir"/usr/lib/ocaml \ - \( -name '*.cmt' -o -name '*.cmti' -o -name '*.ml' \) \ - -a -delete -} - -dev() { - local sitelib="usr/lib/ocaml/markup" - default_dev - - cd "$pkgdir" - - local path - for path in $(find $sitelib -name '*.cmx' -o -name '*.cmxa' -o -name '*.mli*'); do - mkdir -p "${path%/*}" - mv "$path" "$subpkgdir"/${path%/*}/ - done -} - -sha512sums="dcb06d0d271677842f76f3eabd64ac4aefbd8c8194c0ca8732d32120b4f1026378f989c2979706f752d3df45f878194283bd2754023033b61063878de4deb319 ocaml-markup-0.7.6.tar.gz" diff --git a/unmaintained/ocaml-menhir/APKBUILD b/unmaintained/ocaml-menhir/APKBUILD deleted file mode 100644 index 931cce96dc..0000000000 --- a/unmaintained/ocaml-menhir/APKBUILD +++ /dev/null @@ -1,41 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-menhir -_pkgname=menhir -# NOTE: Check supported version in Reason before upgrading! -pkgver=20171013 -pkgrel=5 -pkgdesc="LR(1) parser generator for OCaml" -url="http://gallium.inria.fr/~fpottier/menhir/" -arch="aarch64 ppc64le x86_64" # limited by ocaml aport -license="GPL-2.0-only" -depends="ocaml-findlib" -makedepends="ocaml ocaml-ocamlbuild-dev ocamlbuild" -options="!check" # no tests provided -subpackages="$pkgname-dev $pkgname-doc" -source="http://gallium.inria.fr/~fpottier/menhir/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - make PREFIX=/usr TARGET=native -} - -package() { - export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml" - mkdir -p "$OCAMLFIND_DESTDIR" - - make install PREFIX="$pkgdir/usr" TARGET=native - - rm -Rf "$pkgdir"/usr/share/doc/menhir/demos -} - -dev() { - pkgdesc="$pkgdesc (development files)" - depends="$pkgname=$pkgver-r$pkgrel ocaml-runtime" - license="LGPL-2.0-only-WITH-linking-exception" - - mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/ocaml "$subpkgdir"/usr/lib/ -} - -sha512sums="ba6359c471aee62c996bd6495612f444e7ac226f7aad9991a76e4daa2df00cdec2387c488c6a29246ca48079bd8199b94de09a44f1fb05465cbeddff0b39df54 menhir-20171013.tar.gz" diff --git a/unmaintained/ocaml-merlin-extend/APKBUILD b/unmaintained/ocaml-merlin-extend/APKBUILD deleted file mode 100644 index ac5e164fed..0000000000 --- a/unmaintained/ocaml-merlin-extend/APKBUILD +++ /dev/null @@ -1,42 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-merlin-extend -_pkgname=merlin-extend -pkgver=0.3 -pkgrel=3 -pkgdesc="SDK to extend Merlin" -url="https://github.com/let-def/merlin-extend" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="MIT" -depends="ocaml-runtime" -makedepends="ocaml ocaml-compiler-libs ocaml-cppo ocaml-findlib" -options="!check" # no tests provided -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/let-def/$_pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - make -} - -package() { - cd "$builddir" - - export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml" - mkdir -p "$OCAMLFIND_DESTDIR" - make install -} - -dev() { - default_dev - depends="$pkgname=$pkgver-r$pkgrel" - local sitelib="usr/lib/ocaml/${_pkgname/-/_}" - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmxa *.ml *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="1e6436299b38c7fa57ae5b681a1409795545bc6f5956d6b1c37cbfdbdabfd90da476c030067fe2e016c823d60d1e5498c4536c869bf58425e1a6ff78295efba4 ocaml-merlin-extend-0.3.tar.gz" diff --git a/unmaintained/ocaml-ounit/APKBUILD b/unmaintained/ocaml-ounit/APKBUILD deleted file mode 100644 index 220a2f0478..0000000000 --- a/unmaintained/ocaml-ounit/APKBUILD +++ /dev/null @@ -1,51 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-ounit -_pkgname=ounit -pkgver=2.0.8 -pkgrel=3 -pkgdesc="A unit test framework for OCaml" -url="http://ounit.forge.ocamlcore.org/" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="MIT" -depends="ocaml-runtime" -depends_dev="$pkgname=$pkgver-r$pkgrel" -makedepends="ocaml ocaml-findlib ocaml-ocamlbuild-dev ocamlbuild libxml2-utils" -options="!check" # FIXME: fix tests! -subpackages="$pkgname-dev" -source="https://forge.ocamlcore.org/frs/download.php/1749/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - ./configure \ - --prefix=/usr \ - --disable-debug \ - --disable-docs \ - --enable-tests - make build -} - -check() { - make test -} - -package() { - mkdir -p "$pkgdir"/usr/lib/ocaml - make install OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml" - - # Remove annotation files and sources. - cd "$pkgdir"/usr/lib/ocaml/oUnit - rm -f *.annot *.cmt* *.ml -} - -dev() { - local sitelib="usr/lib/ocaml/oUnit" - default_dev - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="7b0c69d8f0baec541b0cccf8d04bc3bd81b7ff8f1addba9e73a7ba2596b475fc79e3472e3870370b6cfe00b4a4b730f6afd524ae4aea7bb3fd518bbe917d9fc7 ounit-2.0.8.tar.gz" diff --git a/unmaintained/ocaml-ppx_derivers/APKBUILD b/unmaintained/ocaml-ppx_derivers/APKBUILD deleted file mode 100644 index 1603631575..0000000000 --- a/unmaintained/ocaml-ppx_derivers/APKBUILD +++ /dev/null @@ -1,50 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-ppx_derivers -_pkgname=ppx_derivers -pkgver=1.2 -pkgrel=2 -pkgdesc="Shared [@@deriving] plugins registry" -url="https://github.com/ocaml-ppx/ppx_derivers" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="BSD-3-Clause" -depends="ocaml-runtime" -depends_dev="$pkgname=$pkgver-r$pkgrel" -makedepends="dune ocaml ocaml-findlib opam" -options="!check" # no tests provided -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-ppx/$_pkgname/archive/$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - jbuilder build @install -} - -package() { - cd "$builddir" - - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir/usr" \ - --libdir="$pkgdir/usr/lib/ocaml" - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc - - # Remove annotation files and sources. - cd "$pkgdir"/usr/lib/ocaml/$_pkgname - rm -f *.cmt* *.ml -} - -dev() { - local sitelib="usr/lib/ocaml/$_pkgname" - default_dev - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="68e8773cec2ee3c0feb08b7cc8e1b6ce226add4ed6d2ced0e77fe485e48b04570f7049c5bde2ce917a4965d114bbc44400b409c2d76d928913ef4f76c6591a8e ocaml-ppx_derivers-1.2.tar.gz" diff --git a/unmaintained/ocaml-re/APKBUILD b/unmaintained/ocaml-re/APKBUILD deleted file mode 100644 index c11711bc4d..0000000000 --- a/unmaintained/ocaml-re/APKBUILD +++ /dev/null @@ -1,64 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-re -pkgver=1.7.3 -pkgrel=1 -pkgdesc="Pure OCaml regular expressions, with support for Perl and POSIX-style strings" -url="https://github.com/ocaml/ocaml-re" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="LGPL-2.1-or-later" -depends="ocaml-runtime" -depends_dev="$pkgname=$pkgver-r$pkgrel" -checkdepends="ocaml-ounit-dev" -makedepends="dune ocaml ocaml-findlib ocamlbuild opam" -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/$pkgname/archive/$pkgver.tar.gz" -builddir="$srcdir/$pkgname-$pkgver" - -build() { - cd "$builddir" - jbuilder build @install -} - -check() { - cd "$builddir" - jbuilder runtest -} - -package() { - cd "$builddir" - - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir"/usr \ - --libdir="$pkgdir"/usr/lib/ocaml - - cd "$pkgdir" - - # There's just a readme and changelog. - rm -Rf usr/doc - - # Remove annotation files and sources. - find usr/lib/ocaml \( \ - -name '*.cmt' -o \ - -name '*.cmti' -o \ - -name '*.ml' \) -delete -} - -dev() { - default_dev - - cd "$pkgdir" - - local path; for path in $(find usr/lib/ocaml/re \ - -name '*.cmx' -o \ - -name '*.cmxa' -o \ - -name '*.mli') - do - mkdir -p "${path%/*}" - mv "$path" "$subpkgdir"/${path%/*}/ - done - -} - -sha512sums="3d161cb46fa0e855bfbae29b5b769f0054b51e4021f8a66ff8d6a9eee257ba4b02ab7202337d35c4ed2a033560a7b69676525f32cb18406881bed2e68db2ca55 ocaml-re-1.7.3.tar.gz" diff --git a/unmaintained/ocaml-react/APKBUILD b/unmaintained/ocaml-react/APKBUILD deleted file mode 100644 index a4b60c8497..0000000000 --- a/unmaintained/ocaml-react/APKBUILD +++ /dev/null @@ -1,57 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-react -_pkgname=react -pkgver=1.2.1 -pkgrel=1 -pkgdesc="OCaml framework for Functional Reactive Programming (FRP)" -url="http://erratique.ch/software/react" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="ISC" -depends="ocaml-runtime" -makedepends="ncurses ocaml ocaml-compiler-libs ocaml-findlib ocaml-topkg ocamlbuild opam" -options="textrels" # needed for ppc64le -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - - ocaml pkg/pkg.ml build --tests true -} - -check() { - cd "$builddir" - - ocaml pkg/pkg.ml test -} - -package() { - cd "$builddir" - - opam-installer -i \ - --prefix="$pkgdir/usr" \ - --libdir="$pkgdir/$(ocamlc -where)" \ - $_pkgname.install - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc - - # Remove annotation files and sources. - cd "$pkgdir"/usr/lib/ocaml/$_pkgname - rm -f *.cmt* *.ml -} - -dev() { - default_dev - depends="$pkgname=$pkgver-r$pkgrel" - local sitelib="usr/lib/ocaml/$_pkgname" - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="e760c4504519744b66655be113676cb6e3f016fc8a5c59dca063365223d5d5efc66be3ff2b7a2ad3a745975d1b0aaf37634af699d1a706d3bf3b37c1671e81e3 ocaml-react-1.2.1.tar.gz" diff --git a/unmaintained/ocaml-result/APKBUILD b/unmaintained/ocaml-result/APKBUILD deleted file mode 100644 index a2e1308424..0000000000 --- a/unmaintained/ocaml-result/APKBUILD +++ /dev/null @@ -1,47 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-result -_pkgname=result -pkgver=1.4 -pkgrel=1 -pkgdesc="Compat result type" -url="https://github.com/janestreet/result" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml -license="BSD-3-Clause" -depends="ocaml-runtime" -makedepends="dune ocaml ocaml-findlib opam" -options="!check" # no tests provided -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/janestreet/$_pkgname/archive/$pkgver/result-$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - jbuilder build @install -} - -package() { - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir" \ - --prefix=/usr \ - --libdir=/usr/lib/ocaml - - # Remove annotation files. - rm "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt - - # Contains just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc -} - -dev() { - default_dev - depends="$pkgname=$pkgver-r$pkgrel" - local sitelib="usr/lib/ocaml/$_pkgname" - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.ml "$subpkgdir"/$sitelib/ -} - -sha512sums="2e709fee6ceb54463c3989a90aed351c5b48f7a5edce9ccbba4d163cbfb795a19393be0d75885e762d4609961a64e273bb298b94bd3858dc2c20de9396b655d3 ocaml-result-1.4.tar.gz" diff --git a/unmaintained/ocaml-topkg/APKBUILD b/unmaintained/ocaml-topkg/APKBUILD deleted file mode 100644 index 9bc6869d1d..0000000000 --- a/unmaintained/ocaml-topkg/APKBUILD +++ /dev/null @@ -1,47 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -# FIXME: run tests! -pkgname=ocaml-topkg -_pkgname=topkg -pkgver=0.9.1 -pkgrel=2 -pkgdesc="The transitory OCaml software packager" -url="http://erratique.ch/software/topkg" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="ISC" -depends="ocaml-result ocaml-runtime" -depends_dev="$pkgname=$pkgver-r$pkgrel" -makedepends="ocaml ocaml-compiler-libs ocaml-findlib ocaml-result-dev ocamlbuild opam" -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - ocaml pkg/pkg.ml build -} - -package() { - cd "$builddir" - - opam-installer -i \ - --prefix="$pkgdir/usr" \ - --libdir="$pkgdir/usr/lib/ocaml" \ - --docdir="$builddir/.omit" \ - $_pkgname.install - - # Remove annotation files. - rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt* -} - -dev() { - local sitelib="usr/lib/ocaml/$_pkgname" - default_dev - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="19773eb764b53a6e5110c44d7942d2557d6c8502a3037b57f7737efc08f4cc374845b431fdb1465207693d15a4b072aea3db97f8e60e069e3d24ae150e8c5c8f ocaml-topkg-0.9.1.tar.gz" diff --git a/unmaintained/ocaml-uutf/APKBUILD b/unmaintained/ocaml-uutf/APKBUILD deleted file mode 100644 index 558d118fdd..0000000000 --- a/unmaintained/ocaml-uutf/APKBUILD +++ /dev/null @@ -1,57 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-uutf -_pkgname=uutf -pkgver=1.0.1 -pkgrel=2 -pkgdesc="Non-blocking streaming Unicode codec for OCaml" -url="https://github.com/dbuenzli/uutf" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="ISC" -depends="ocaml-uchar" -depends_dev="$pkgname=$pkgver-r$pkgrel" -makedepends=" - ocaml - ocaml-compiler-libs - ocaml-cmdliner-dev - ocaml-findlib - ocaml-result-dev - ocaml-topkg-dev - ocaml-uchar-dev - ocamlbuild - opam - " -options="!check" # FXIME: needs ocaml-topkg-care -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - ocaml pkg/pkg.ml build -} - -package() { - cd "$builddir" - - opam-installer -i \ - --prefix="$pkgdir/usr" \ - --libdir="$pkgdir/usr/lib/ocaml" \ - --docdir="$builddir/.omit" \ - $_pkgname.install - - # Remove annotation files. - rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt* -} - -dev() { - local sitelib="usr/lib/ocaml/$_pkgname" - default_dev - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="803ea3306f977bbe937233b02b86f5dbd80b031e32b627be038b5caa60ed84df26efb896910025d7cc0addbff9a3d33b0ccce76fe3ebc5aaabf34f99c2637937 ocaml-uutf-1.0.1.tar.gz" diff --git a/unmaintained/ocaml-yojson/APKBUILD b/unmaintained/ocaml-yojson/APKBUILD deleted file mode 100644 index 75417523fc..0000000000 --- a/unmaintained/ocaml-yojson/APKBUILD +++ /dev/null @@ -1,53 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-yojson -_pkgname=yojson -pkgver=1.4.1 -pkgrel=4 -pkgdesc="JSON parsing and pretty-printing library for OCaml" -url="https://github.com/mjambon/yojson" -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport -license="BSD-3-Clause" -depends="ocaml-runtime ocaml-biniou ocaml-easy-format" -depends_dev="$pkgname=$pkgver-r$pkgrel ocaml-biniou-dev ocaml-easy-format-dev" -makedepends="$depends_dev dune ocaml ocaml-cppo ocaml-findlib opam" -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - jbuilder build @install -} - -check() { - jbuilder runtest -} - -package() { - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir"/usr \ - --libdir="$pkgdir"/usr/lib/ocaml - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/usr/doc - - # Don't package ydump tool for now. - rm -Rf "$pkgdir"/usr/bin - - # Remove annotation files and sources. - cd "$pkgdir"/usr/lib/ocaml/$_pkgname - rm -f *.cmt* *.ml -} - -dev() { - local sitelib="usr/lib/ocaml/$_pkgname" - default_dev - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="9175f2a26993467e587a44ef8af9dba767370536204f0ec56196769c206f92edc27bdfa89b543f90ed33c8a9abaad3342b5296ac5e49d3d7a27561c1cce818d0 ocaml-yojson-1.4.1.tar.gz" diff --git a/unmaintained/ocaml-zed/APKBUILD b/unmaintained/ocaml-zed/APKBUILD deleted file mode 100644 index ccdfa1d11d..0000000000 --- a/unmaintained/ocaml-zed/APKBUILD +++ /dev/null @@ -1,54 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=ocaml-zed -_pkgname=zed -pkgver=1.6 -pkgrel=3 -pkgdesc="Abstract engine for text edition in OCaml" -url="https://github.com/diml/zed" -# x86, armhf, s390x, mips, mips64: limited by ocaml aport -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" -license="BSD-3-Clause" -depends="ocaml-runtime" -makedepends="dune ocaml ocaml-compiler-libs ocaml-camomile-dev ocaml-findlib - ocaml-react-dev opam" -options="!check" # no tests provided -subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.bz2::https://github.com/diml/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tbz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - jbuilder build @install -} - -package() { - cd "$builddir" - - mkdir -p "$pkgdir"/usr/lib/ocaml - jbuilder install \ - --destdir="$pkgdir/usr" \ - --libdir="$pkgdir/usr/lib/ocaml" - - cd "$pkgdir" - - # There's just a readme and changelog. - rm -Rf usr/doc - - # Remove annotation files and sources. - rm -Rf usr/lib/ocaml/$_pkgname/*.cmt* - rm -Rf usr/lib/ocaml/$_pkgname/*.ml -} - -dev() { - default_dev - depends="$pkgname=$pkgver-r$pkgrel" - local sitelib="usr/lib/ocaml/$_pkgname" - - cd "$pkgdir"/$sitelib - - mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -} - -sha512sums="e2fa279697a4d01431a7108c07bcbfcebb50ec175da2da5f460ce5d5241f6695e868b49dcdb2c7c944c3a38be891e1f9a97477384cb3663d5615b9a71de357dd ocaml-zed-1.6.tar.bz2" diff --git a/unmaintained/open-vm-tools-grsec/0001-Fix-vmxnet-module-on-kernels-3.16.patch b/unmaintained/open-vm-tools-grsec/0001-Fix-vmxnet-module-on-kernels-3.16.patch deleted file mode 100644 index 4f76f76f0a..0000000000 --- a/unmaintained/open-vm-tools-grsec/0001-Fix-vmxnet-module-on-kernels-3.16.patch +++ /dev/null @@ -1,74 +0,0 @@ -From 08836a47c56b47b658025e41a20027c5d915f836 Mon Sep 17 00:00:00 2001 -From: "Scott M. Kroll" <skroll@gmail.com> -Date: Fri, 15 Aug 2014 10:40:38 -0400 -Subject: [PATCH 1/3] Fix vmxnet module on kernels >= 3.16 - -* Add compat check for ethtool_ops in net_device struct. -* SET_ETHTOOL_OPS is no longer defined, but can be manually. ---- - open-vm-tools/modules/linux/shared/compat_netdevice.h | 4 ++++ - open-vm-tools/modules/linux/vmxnet/vmxnet.c | 13 ++++++++----- - 2 files changed, 12 insertions(+), 5 deletions(-) - -diff --git a/open-vm-tools/modules/linux/shared/compat_netdevice.h b/open-vm-tools/modules/linux/shared/compat_netdevice.h -index 3aec25b..a65d59b 100644 ---- a/modules/linux/shared/compat_netdevice.h -+++ b/modules/linux/shared/compat_netdevice.h -@@ -337,4 +337,8 @@ typedef netdev_features_t compat_netdev_features_t; - typedef u32 compat_netdev_features_t; - #endif - -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(SET_ETHTOOL_OPS) -+#define VMW_HAVE_ETHTOOL_OPS 1 -+#endif -+ - #endif /* __COMPAT_NETDEVICE_H__ */ -diff --git a/open-vm-tools/modules/linux/vmxnet/vmxnet.c b/open-vm-tools/modules/linux/vmxnet/vmxnet.c -index 33afb9b..40abde5 100644 ---- a/modules/linux/vmxnet/vmxnet.c -+++ b/modules/linux/vmxnet/vmxnet.c -@@ -279,8 +279,7 @@ vmxnet_change_mtu(struct net_device *dev, int new_mtu) - - #endif - -- --#ifdef SET_ETHTOOL_OPS -+#ifdef VMW_HAVE_ETHTOOL_OPS - /* - *---------------------------------------------------------------------------- - * -@@ -526,7 +525,7 @@ vmxnet_ethtool_ops = { - }; - - --#else /* !defined(SET_ETHTOOL_OPS) */ -+#else /* !defined(VMW_HAVE_ETHTOOL_OPS) */ - - - /* -@@ -739,7 +738,7 @@ vmxnet_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) - } - return -EOPNOTSUPP; - } --#endif /* SET_ETHTOOL_OPS */ -+#endif /* !defined(VMW_HAVE_ETHTOOL_OPS) */ - - - /* -@@ -1142,8 +1141,12 @@ vmxnet_probe_device(struct pci_dev *pdev, // IN: vmxnet PCI device - dev->watchdog_timeo = VMXNET_WATCHDOG_TIMEOUT; - #endif - --#ifdef SET_ETHTOOL_OPS -+#ifdef VMW_HAVE_ETHTOOL_OPS -+# ifdef SET_ETHTOOL_OPS - SET_ETHTOOL_OPS(dev, &vmxnet_ethtool_ops); -+# else -+ dev->ethtool_ops = &vmxnet_ethtool_ops; -+# endif - #else - dev->do_ioctl = vmxnet_ioctl; - #endif --- -2.3.4 - diff --git a/unmaintained/open-vm-tools-grsec/APKBUILD b/unmaintained/open-vm-tools-grsec/APKBUILD deleted file mode 100644 index f93033bb1e..0000000000 --- a/unmaintained/open-vm-tools-grsec/APKBUILD +++ /dev/null @@ -1,105 +0,0 @@ -# Maintainer: Natanael Copa <ncopa@alpinelinux.org> - -_flavor=grsec -_kpkg=linux-$_flavor -_realname=open-vm-tools -_kver=4.4.47 -_kpkgrel=0 -_realver=10.1.0 -_ver=${_realver/_p/-} -_mypkgrel=0 - -# source open-vm-tools version -if [ -f ../main/$_realname/APKBUILD ]; then - . ../main/$_realname/APKBUILD - [ "${_realver}" != "$pkgver" ] && pkgname=$_realname-$_flavor \ - && die "please set _realver to $pkgver" -fi - -# source the kernel version -if [ -f ../main/linux-${_flavor}/APKBUILD ]; then - . ../main/linux-${_flavor}/APKBUILD - [ "$_kver" != "$pkgver" ] && die "please set _kver to $pkgver" - [ "$_kpkgrel" != "$pkgrel" ] && die "please set _kpkgrel to $pkgrel" -fi - -_abiver="${_kver}-${_kpkgrel}" -_abi_releases="${_abiver}-${_flavor} ${_abiver}-virtgrsec" -_kernelver="$_kver-r$_kpkgrel" - -pkgname="$_realname-$_flavor" -pkgver=$_kver -pkgrel=$(($_kpkgrel + $_mypkgrel)) - -pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools." -url="https://github.com/vmware/open-vm-tools/" -arch="x86 x86_64" -license="LGPL" -subpackages="$_realname-virtgrsec:_virtgrsec" -depends="linux-${_flavor}=${_kernelver}" -depends_dev="bash glib-dev gettext-dev linux-${_flavor}-dev=${_kernelver} linux-virtgrsec-dev=${_kernelver}" -makedepends="$depends_dev autoconf automake libtool linux-headers" -source="https://github.com/vmware/open-vm-tools/archive/stable-$_ver.tar.gz - 0001-Fix-vmxnet-module-on-kernels-3.16.patch - missing-config-dir.patch - " -install_if="linux-${_flavor}=${_kernelver} open-vm-tools" - -builddir="$srcdir/open-vm-tools-stable-$_ver"/open-vm-tools - -prepare() { - cd "$builddir" - update_config_sub || return 1 - default_prepare || return 1 - autoreconf -vif || return 1 - for _abi in $_abi_releases; do - mkdir ../build-$_abi - cp -r * ../build-$_abi/ - done -} - -build() { - for _abi in $_abi_releases; do - cd "$builddir"/../build-$_abi - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --disable-deploypkg \ - --without-pam \ - --without-x \ - --without-dnet \ - --without-icu \ - --without-procps \ - --without-ssl \ - --with-kernel-release="${_abi}" \ - || return 1 - make -j1 -C modules modules MODULES="vmxnet vmhgfs" \ - || return 1 - done -} - -package() { - for _abi in $_abi_releases; do - mkdir -p "$pkgdir"/lib/modules/${_abi}/misc/ - cd "$builddir"/../build-$_abi - for module in $(find . -type f -name '*.ko'); do - install -D -m644 $module "$pkgdir/lib/modules/${_abi}/misc/" || return 1 - done - done -} - -_virtgrsec() { - pkgdesc="VMware guest modules for virtgrsec kernel" - mkdir -p "$subpkgdir"/lib/modules - mv "$pkgdir"/lib/modules/${_abiver}-virtgrsec "$subpkgdir"/lib/modules/ || return 1 -} - -md5sums="46f5a319275f63658f1a44b6c8755f6b stable-10.1.0.tar.gz -3254b99481cea970acd6d65863ce6b48 0001-Fix-vmxnet-module-on-kernels-3.16.patch -5ab8e8249a65a8b750c5bf278f438351 missing-config-dir.patch" -sha256sums="2b76d8461022774f2c077b032fbe870f86046f20724eb24824cf9b6ccc4b5355 stable-10.1.0.tar.gz -85be67ed9827e685d55dd5cba25144d95296159ff1be73f491b343c395dd6a7d 0001-Fix-vmxnet-module-on-kernels-3.16.patch -fb7a4bb532ffc81c8be73c66008538f4119a1147bbbdbf32328d286f012b2035 missing-config-dir.patch" -sha512sums="f497b828510ebc2a88788ad5292047f20513c844e889b3f652ecce382efd6d4672560be7387b55dcb7300cfdde5c8eda407836c9b75614c018e058bb169b374d stable-10.1.0.tar.gz -c445631b7faf8badfbf8e66518bfb70aec1049c1a0393ff038253e70190d7f8580cbcd3e7037c43664ee0ee48d26edd8f8eaca06383bbd7fa763a182050f9551 0001-Fix-vmxnet-module-on-kernels-3.16.patch -f77d3848d87d7c387d2cc1555ff3a39e547a8e8fcecee3aa1f785b828fd238c3779c1e5704f52ec46701b29a2ad9aec1cd5aef04677bc2a03b8a7780435f7fdd missing-config-dir.patch" diff --git a/unmaintained/open-vm-tools-grsec/missing-config-dir.patch b/unmaintained/open-vm-tools-grsec/missing-config-dir.patch deleted file mode 100644 index 79a26ae03b..0000000000 --- a/unmaintained/open-vm-tools-grsec/missing-config-dir.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/common-agent/etc/Makefile.am b/common-agent/etc/Makefile.am -index 25b386c..b6dd1bd 100644 ---- a/common-agent/etc/Makefile.am -+++ b/common-agent/etc/Makefile.am -@@ -15,7 +15,7 @@ - ### Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - ################################################################################ - --SUBDIRS = install config scripts -+SUBDIRS = install scripts - - uninstall-hook: - rm -rf $(DESTDIR)/etc/vmware-caf -diff --git a/configure.ac b/configure.ac -index 8d4604e..a4fc331 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1595,7 +1595,6 @@ AC_CONFIG_FILES([ \ - common-agent/input/invokers/Makefile \ - common-agent/input/providerReg/Makefile \ - common-agent/etc/Makefile \ -- common-agent/etc/config/Makefile \ - common-agent/etc/scripts/Makefile \ - common-agent/etc/install/Makefile \ - xferlogs/Makefile \ diff --git a/unmaintained/open-zwave-control-panel/APKBUILD b/unmaintained/open-zwave-control-panel/APKBUILD new file mode 100644 index 0000000000..f38b80fd53 --- /dev/null +++ b/unmaintained/open-zwave-control-panel/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Maintainer: +pkgname=open-zwave-control-panel +pkgver=20170321 +_sha=bbbd461c5763faab4949b12da12901f2d6f00f48 +pkgrel=1 +pkgdesc="The OpenZWave Control Panel" +url="https://github.com/OpenZWave/open-zwave-control-panel" +arch="" # Fails to compile due to new libmicrohttpd version +license="custom" +makedepends="libmicrohttpd-dev openzwave-dev tinyxml-dev gnutls-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/OpenZWave/open-zwave-control-panel/archive/$_sha.tar.gz + makefile.patch + " +builddir="$srcdir/$pkgname-$_sha" + +build() { + make +} + +package() { + install -Dm755 ozwcp "$pkgdir"/usr/bin/ozwcp + for i in *.js *.html; do + install -Dm644 $i "$pkgdir/usr/share/$pkgname/$i" + done +} + +sha512sums="b688dec8b2a281f233e05e34e90923ed7848e930625dad19e44ece70cd2a1abe3bb23030fc528ef78e1b37e33068973f1b1637319d299d8d88a0328a41b2bff0 open-zwave-control-panel-20170321.tar.gz +8540d69445526834b39c6fc670de7d4c4e3cbf6ce007b776a4fa6f8ccf018aaf330f87894343797831292dc85efb7a7d371da691a1e4f4d3c59b63d10d2c139a makefile.patch" diff --git a/unmaintained/open-zwave-control-panel/makefile.patch b/unmaintained/open-zwave-control-panel/makefile.patch new file mode 100644 index 0000000000..5baea5a4ca --- /dev/null +++ b/unmaintained/open-zwave-control-panel/makefile.patch @@ -0,0 +1,81 @@ +--- ./Makefile ++++ ./Makefile.new +@@ -13,59 +13,45 @@ + RANLIB := $(CROSS_COMPILE)ranlib + + DEBUG_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-inline -Wno-format -g -DDEBUG -ggdb -O0 +-RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Werror -Wno-format -O3 -DNDEBUG ++RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3 -DNDEBUG + + DEBUG_LDFLAGS := -g + + # Change for DEBUG or RELEASE +-CFLAGS := -c $(DEBUG_CFLAGS) +-LDFLAGS := $(DEBUG_LDFLAGS) ++CFLAGS := -c $(RELEASE_CFLAGS) ++LDFLAGS := $(RELEASE_CFLAGS) + +-OPENZWAVE := ../open-zwave/ +-LIBMICROHTTPD := -L/usr/local/lib/ -lmicrohttpd ++OPENZWAVE := /usr/include/openzwave ++LIBMICROHTTPD := -L/usr/lib/ -lmicrohttpd + +-INCLUDES := -I $(OPENZWAVE)/cpp/src -I $(OPENZWAVE)/cpp/src/command_classes/ \ +- -I $(OPENZWAVE)/cpp/src/value_classes/ -I $(OPENZWAVE)/cpp/src/platform/ \ +- -I $(OPENZWAVE)/cpp/src/platform/unix -I $(OPENZWAVE)/cpp/tinyxml/ \ +- -I /usr/local/include/ ++INCLUDES := -I $(OPENZWAVE) -I $(OPENZWAVE)/command_classes/ \ ++ -I $(OPENZWAVE)/value_classes/ -I $(OPENZWAVE)/platform/ \ ++ -I $(OPENZWAVE)/platform/unix -I $(OPENZWAVE)/tinyxml/ \ ++ -I /usr/include/ + + # Remove comment below for gnutls support +-#GNUTLS := -lgnutls ++GNUTLS := -lgnutls + + # for Linux uncomment out next three lines + LIBZWAVE := $(wildcard $(OPENZWAVE)/*.a) +-#LIBUSB := -ludev +-#LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBMICROHTTPD) -pthread $(LIBUSB) -lresolv ++LIBUSB := -ludev ++LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBMICROHTTPD) -pthread $(LIBUSB) -lresolv -ltinyxml -lopenzwave + +-# for Mac OS X comment out above 2 lines and uncomment next 5 lines +-#ARCH := -arch i386 -arch x86_64 +-#CFLAGS += $(ARCH) +-#LIBZWAVE := $(wildcard $(OPENZWAVE)/cpp/lib/mac/*.a) +-LIBUSB := -framework IOKit -framework CoreFoundation +-LIBS := $(LIBZWAVE) $(GNUTLS) $(LIBMICROHTTPD) -pthread $(LIBUSB) $(ARCH) -lresolv +- + %.o : %.cpp + $(CXX) $(CFLAGS) $(INCLUDES) -o $@ $< + + %.o : %.c + $(CC) $(CFLAGS) $(INCLUDES) -o $@ $< + +-all: defs ozwcp ++all: ozwcp + ++ozwcp.o: ozwcp.h webserver.h $(OPENZWAVE)/Options.h $(OPENZWAVE)/Manager.h \ ++ $(OPENZWAVE)/Node.h $(OPENZWAVE)/Group.h \ ++ $(OPENZWAVE)/Notification.h $(OPENZWAVE)/platform/Log.h + +-defs: +-ifeq ($(LIBZWAVE),) +- @echo Please edit the Makefile to avoid this error message. +- @exit 1 +-endif +- +-ozwcp.o: ozwcp.h webserver.h $(OPENZWAVE)/cpp/src/Options.h $(OPENZWAVE)/cpp/src/Manager.h \ +- $(OPENZWAVE)/cpp/src/Node.h $(OPENZWAVE)/cpp/src/Group.h \ +- $(OPENZWAVE)/cpp/src/Notification.h $(OPENZWAVE)/cpp/src/platform/Log.h +- +-webserver.o: webserver.h ozwcp.h $(OPENZWAVE)/cpp/src/Options.h $(OPENZWAVE)/cpp/src/Manager.h \ +- $(OPENZWAVE)/cpp/src/Node.h $(OPENZWAVE)/cpp/src/Group.h \ +- $(OPENZWAVE)/cpp/src/Notification.h $(OPENZWAVE)/cpp/src/platform/Log.h ++webserver.o: webserver.h ozwcp.h $(OPENZWAVE)/Options.h $(OPENZWAVE)/Manager.h \ ++ $(OPENZWAVE)/Node.h $(OPENZWAVE)/Group.h \ ++ $(OPENZWAVE)/Notification.h $(OPENZWAVE)/platform/Log.h + + ozwcp: ozwcp.o webserver.o zwavelib.o $(LIBZWAVE) + $(LD) -o $@ $(LDFLAGS) ozwcp.o webserver.o zwavelib.o $(LIBS) diff --git a/unmaintained/ospd-acunetix/APKBUILD b/unmaintained/ospd-acunetix/APKBUILD new file mode 100644 index 0000000000..a78e17ecf9 --- /dev/null +++ b/unmaintained/ospd-acunetix/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-acunetix +pkgver=1.0b1 +pkgrel=5 +_pkgid=2181 +pkgdesc="OSP server implementation to allow OpenVAS to remotel control nmap port scanner" +url="https://www.openvas.org/" +arch="noarch" +license="GPL-2.0-or-later" +depends="python3" +makedepends="py3-setuptools" +source="https://wald.intevation.org/frs/download.php/$_pkgid/ospd-acunetix-$pkgver.tar.gz" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py check +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="2a5b6fde959a890cd2084d1f8414639f8d281c3456239f101d1f353ec4044142cf71d7f7788a4d9aa0ce5d7a8a33204b785f5fd5d372d5c661e1ba9b9a447fd3 ospd-acunetix-1.0b1.tar.gz" diff --git a/unmaintained/ospd-ancor/APKBUILD b/unmaintained/ospd-ancor/APKBUILD new file mode 100644 index 0000000000..15d27b4a80 --- /dev/null +++ b/unmaintained/ospd-ancor/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-ancor +pkgver=1.0.0 +pkgrel=4 +_pkgid=2005 +pkgdesc="OSP server implementation to allow OpenVAS to get scan results from an Ancor server" +url="http://openvas.org/" +arch="noarch" +license="GPL-2.0-or-later" +depends="python3 py3-requests ospd" +makedepends="python3-dev py3-setuptools" +source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py check +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + + +sha512sums="5bf23798c6bed4ba70e8f9c694c5870ef05d39a92091821687251e92df05363016a700dd9432c94646af7763bc7f6681b69a827f9bd8786a614a356d8c40602a ospd-ancor-1.0.0.tar.gz" diff --git a/unmaintained/ospd-debsecan/APKBUILD b/unmaintained/ospd-debsecan/APKBUILD new file mode 100644 index 0000000000..dd9d909ce0 --- /dev/null +++ b/unmaintained/ospd-debsecan/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-debsecan +pkgver=1.2b1 +pkgrel=4 +_pkgid=2405 +pkgdesc="OSP server implementation to allow OpenVAS to remotely control a debsecan scanner" +url="https://www.openvas.org/" +arch="noarch" +license="GPL-2.0-or-later" +depends="python3 ospd" +makedepends="py3-paramiko py3-setuptools" +source="https://wald.intevation.org/frs/download.php/$_pkgid/ospd-debsecan-$pkgver.tar.gz" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py check +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="f86f72713dda710c4b7975ed78dc26c664dcbcd5e77e7cab227416748982e29b7e22259fbf5c790a6c7d620234fc38e2c921555900b323f1bf57179ff472dcc3 ospd-debsecan-1.2b1.tar.gz" diff --git a/unmaintained/ospd-ikeprobe/APKBUILD b/unmaintained/ospd-ikeprobe/APKBUILD new file mode 100644 index 0000000000..29f6ebb3e5 --- /dev/null +++ b/unmaintained/ospd-ikeprobe/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-ikeprobe +pkgver=1.0b1 +pkgrel=5 +_pkgid=2204 +pkgdesc="OSP server implementation to allow OpenVAS to remotely control a ikeprobe scanner" +url="http://www.openvas.org/" +arch="noarch" +license="GPL" +depends="python3 ospd" +makedepends="cmake python3-dev py3-setuptools" +source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py check +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="567b2100ab42d7effe8fb47890a3c05fb7066ef97e29f2c723a3f29fd58addac220a91dda01804e997eec126905d43d59621b7318bfa02487ed789e228fe8660 ospd-ikeprobe-1.0b1.tar.gz" diff --git a/unmaintained/ospd-ikescan/APKBUILD b/unmaintained/ospd-ikescan/APKBUILD new file mode 100644 index 0000000000..da47d948db --- /dev/null +++ b/unmaintained/ospd-ikescan/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-ikescan +pkgver=1.0b1 +pkgrel=6 +_pkgid=2185 +pkgdesc="OSP server implementation to allow OpenVAS to remotely control a ike-scan scanner" +url="https://www.openvas.org/" +arch="noarch" +license="GPL-2.0-or-later" +depends="python3 ospd py3-pexpect" +makedepends="python3-dev py3-setuptools" +source="https://wald.intevation.org/frs/download.php/$_pkgid/ospd-ikescan-$pkgver.tar.gz" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py check +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="4035656008d9cae579a836a4d69a7d1d2b5a45610fcfdab9b4311c942788bf4dc10b8db1dba6325fb162b4dd19cd3a522f44cff1d70152af7bfb096095a00e60 ospd-ikescan-1.0b1.tar.gz" diff --git a/unmaintained/ospd-nmap/APKBUILD b/unmaintained/ospd-nmap/APKBUILD new file mode 100644 index 0000000000..928b429304 --- /dev/null +++ b/unmaintained/ospd-nmap/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-nmap +pkgver=1.0b1 +pkgrel=6 +_pkgid=2218 +pkgdesc="OSP server implementation to allow OpenVAS to remotel control nmap port scanner" +url="https://www.openvas.org/" +arch="noarch" +license="GPL-2.0-or-later" +depends="python3" +makedepends="python3-dev py3-setuptools" +source="https://wald.intevation.org/frs/download.php/$_pkgid/ospd-nmap-$pkgver.tar.gz" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py check +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="f251d0951ba6225844274d26187aa7b90a654ed765471f356fa7979b623c5c04c7f7527dffb9e8f28e278c3e4079a7881947787435779c57d5346520934a9d21 ospd-nmap-1.0b1.tar.gz" diff --git a/unmaintained/ospd-ovaldi/APKBUILD b/unmaintained/ospd-ovaldi/APKBUILD new file mode 100644 index 0000000000..d6389a7cab --- /dev/null +++ b/unmaintained/ospd-ovaldi/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-ovaldi +pkgver=1.0.0 +pkgrel=5 +_pkgid=2003 +pkgdesc="OSP server implementation to allow OpenVAS to remotely control ovaldi scanners" +url="http://openvas.org/" +arch="noarch" +license="GPL-2.0-or-later" +depends="python3 ospd" +makedepends="python3-dev py3-paramiko py3-setuptools" +source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py check +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + + +sha512sums="73a0e2782225ca010abcf3ba45378238da44450fd856a2dc6dfbcc1d24c83a8b5e1e252189029c80bab850dff4b91c8f461f49b4a3410e86285b85ce4ac5113a ospd-ovaldi-1.0.0.tar.gz" diff --git a/unmaintained/ospd-paloalto/APKBUILD b/unmaintained/ospd-paloalto/APKBUILD new file mode 100644 index 0000000000..b418446fe5 --- /dev/null +++ b/unmaintained/ospd-paloalto/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-paloalto +pkgver=1.0b1 +pkgrel=6 +_pkgid=2149 +pkgdesc="OSP server implementation to allow OpenVAS to remotely control a PaloAlto" +url="https://www.openvas.org/" +arch="noarch" +license="GPL-2.0-or-later" +depends="python3 ospd" +makedepends="python3-dev py3-setuptools" +source="https://wald.intevation.org/frs/download.php/$_pkgid/ospd-paloalto-$pkgver.tar.gz" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py check +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="33e0645a467e08c0836096568859917beee9abc2131b22ca35e280c1a0f5ace36047cec93cbfb42c679f30e81ed1f238b7fdf8bf1ecbb90fe1f5beb1a1d0cc55 ospd-paloalto-1.0b1.tar.gz" diff --git a/unmaintained/ospd-ssh-keyscan/APKBUILD b/unmaintained/ospd-ssh-keyscan/APKBUILD new file mode 100644 index 0000000000..e73b9c914f --- /dev/null +++ b/unmaintained/ospd-ssh-keyscan/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-ssh-keyscan +pkgver=1.0b1 +pkgrel=4 +_pkgid=2213 +pkgdesc="OSP server implementation to allow OpenVAS to scan ssh keys" +url="http://openvas.org/" +arch="noarch" +license="GPL-2.0-or-later" +depends="python3 ospd" +makedepends="python3-dev py3-paramiko py3-setuptools" +source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py check +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + + +sha512sums="510a084ff93e2c6283ef21ea4c439077b15c9ada92f48cd0876fca87d430a4479b5700b536d68322cbcde7a1cc5109993706fae4d29e9ee61a7cb927450e5262 ospd-ssh-keyscan-1.0b1.tar.gz" diff --git a/unmaintained/ospd-w3af/APKBUILD b/unmaintained/ospd-w3af/APKBUILD new file mode 100644 index 0000000000..45fa5dffbe --- /dev/null +++ b/unmaintained/ospd-w3af/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ospd-w3af +pkgver=1.0.0 +pkgrel=5 +_pkgid=2004 +pkgdesc="OSP server implementation to allow OpenVAS to remotely control a w3af scanner" +url="http://openvas.org/" +arch="noarch" +license="GPL-2.0-or-later" +depends="python3 ospd" +makedepends="python3-dev py3-paramiko py3-setuptools" +source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py check +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + + +sha512sums="798ce2551134e8060d2c8ed5e72ceaa9b378ee31a175120aa43441ea6ff8f5a6cd421c710d6fde7beaf659cd82d213fe78d7d5b8f846be5d2535e094b719977e ospd-w3af-1.0.0.tar.gz" diff --git a/unmaintained/perl-anyevent-influxdb/APKBUILD b/unmaintained/perl-anyevent-influxdb/APKBUILD new file mode 100644 index 0000000000..c3969bfbc4 --- /dev/null +++ b/unmaintained/perl-anyevent-influxdb/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Nick Andrew <nick@nick-andrew.net> +# Maintainer: Nick Andrew <nick@nick-andrew.net> +pkgname=perl-anyevent-influxdb +_pkgreal=AnyEvent-InfluxDB +pkgver=1.0.2.0 +pkgrel=4 +pkgdesc="An asynchronous library for InfluxDB time-series database" +url="https://metacpan.org/release/AnyEvent-InfluxDB" +arch="" # blocking on perl-www-curl +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends=" + perl perl-anyevent-http perl-anyevent perl-list-moreutils perl-moo perl-json perl-uri + perl-uri-encode-xs + " +makedepends="perl-module-build" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/A/AJ/AJGB/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare + + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + perl Build.PL installdirs=vendor +} + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + ./Build && ./Build test +} + +package() { + ./Build install destdir="$pkgdir" + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + + +sha512sums="1b88aa659fae9f7089547f9765048368811af26a0d090ead61a862dd00ebe175e9a2ea458dae39590268b0bb77913b630fb13e07fe3bccaff002bb5da6bc2c42 AnyEvent-InfluxDB-1.0.2.0.tar.gz" diff --git a/unmaintained/perl-dancer-plugin-swig/APKBUILD b/unmaintained/perl-dancer-plugin-swig/APKBUILD new file mode 100644 index 0000000000..f6267cd557 --- /dev/null +++ b/unmaintained/perl-dancer-plugin-swig/APKBUILD @@ -0,0 +1,34 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: +pkgname=perl-dancer-plugin-swig +_pkgreal=Dancer-Plugin-Swig +pkgver=0.02 +pkgrel=3 +pkgdesc="A plugin for swig client" +url="https://metacpan.org/release/Dancer-Plugin-Swig" +arch="" # blocked by perl-webservice-swigclient +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends="perl perl-dancer perl-webservice-swigclient" +makedepends="perl-test-most perl-test-easy" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/L/LO/LOGIE/$_pkgreal-$pkgver.tar.gz" + +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make && make test +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="81a72c1af8a2e7e9c01b0a6c7d79d54f54eda3fa1394670108d516ab1688a9bbce7e1130fba6e2d08d5feb8342dd2cf3c6c3541db4a0f69fd3b22b3595c3652f Dancer-Plugin-Swig-0.02.tar.gz" diff --git a/unmaintained/perl-webservice-swigclient/APKBUILD b/unmaintained/perl-webservice-swigclient/APKBUILD new file mode 100644 index 0000000000..7edb446cb2 --- /dev/null +++ b/unmaintained/perl-webservice-swigclient/APKBUILD @@ -0,0 +1,35 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=perl-webservice-swigclient +_pkgreal=WebService-SwigClient +pkgver=0.001 +pkgrel=4 +pkgdesc="A client for connecting to a swig service" +url="https://metacpan.org/release/WebService-SwigClient" +arch="" # blocked by perl-www-curl +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends=" + perl perl-test-most perl-test-easy perl-moo perl-file-slurp perl-www-curl perl-json-xs + perl-common-sense perl-types-serialiser + " +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/L/LO/LOGIE/$_pkgreal-$pkgver.tar.gz" + +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make && make test +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="0e1eb0981b1bbc8f004689be85b20e87b1806d43748039831e0bdb032243bb573e43c974725c865d8c98333a376882460fd77c7b247f245370891a42ee2262b1 WebService-SwigClient-0.001.tar.gz" diff --git a/unmaintained/perl-www-curl/APKBUILD b/unmaintained/perl-www-curl/APKBUILD new file mode 100644 index 0000000000..31874cddb1 --- /dev/null +++ b/unmaintained/perl-www-curl/APKBUILD @@ -0,0 +1,45 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: +pkgname=perl-www-curl +_pkgreal=WWW-Curl +pkgver=4.17 +pkgrel=8 +pkgdesc="Perl extension interface for libcurl" +url="https://metacpan.org/release/WWW-Curl" +arch="" # fails to build +license="MIT" +depends="perl" +makedepends="curl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/S/SZ/SZBALINT/$_pkgreal-$pkgver.tar.gz + WWW-Curl-4.17-RT117793.patch + perl-5.26.patch + fix-curl.xs.patch + " + +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make + if [ "$CARCH" != "ppc64le" ]; then + make test + fi +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="bc7a75d0e23f5a77578fd7244b56a1e1b81d814993b90ac7132926f0d571232c4c95875bc615cb6239e424ae1d5481d27796efc5376bb0845d1da0ff1137c0d6 WWW-Curl-4.17.tar.gz +d92cb37435d66867578818776f3ef64f4f6295515639d9bf860907ad28ca4109435c45174b49bdeb594a0cddafcc3f833c41d15d641eadfbbec598b77a1e90df WWW-Curl-4.17-RT117793.patch +a0e91afecc23df532c1256255b202152597d00fd6e677d25a473fb0ce5e6d2a0be978298fee9dd73343765a1ad925afea5c73be458ace4311c733a14d0f55bae perl-5.26.patch +5bdd2fcdc235d28b811c9197bc24f80857476a2704212b63f762aa61252665ddbfc2fb3493952426d3760c76e1f3ea23298fc040770664de87deab4945d3bb36 fix-curl.xs.patch" diff --git a/unmaintained/perl-www-curl/WWW-Curl-4.17-RT117793.patch b/unmaintained/perl-www-curl/WWW-Curl-4.17-RT117793.patch new file mode 100644 index 0000000000..e89d237ea2 --- /dev/null +++ b/unmaintained/perl-www-curl/WWW-Curl-4.17-RT117793.patch @@ -0,0 +1,25 @@ +From 292c05a8aa9c18bd27d0aaff0b4ee601d9b87b92 Mon Sep 17 00:00:00 2001 +From: Slaven Rezic <cpansand@cvrsnica-freebsd-101.herceg.de> +Date: Sun, 16 Apr 2017 22:17:00 +0200 +Subject: [PATCH] compilation fixes for curl 7.50.2 and newer (RT #117793) + +--- + Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index f9170bb..bb852e4 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -127,7 +127,7 @@ if (!defined($curl_h)) { + close H; + + for my $e (sort @syms) { +- if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) { ++ if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURL_STRICTER\z|^CURL_DID_MEMORY_FUNC_TYPEDEFS\z|_LAST\z|_LASTENTRY\z)/) { + next; + } + my ($group) = $e =~ m/^([^_]+_)/; +-- +2.1.2 + diff --git a/unmaintained/perl-www-curl/fix-curl.xs.patch b/unmaintained/perl-www-curl/fix-curl.xs.patch new file mode 100644 index 0000000000..1ae3e8b46c --- /dev/null +++ b/unmaintained/perl-www-curl/fix-curl.xs.patch @@ -0,0 +1,163 @@ +From 893518f6ed260b67fc86e344a9c6bb7626617b3a Mon Sep 17 00:00:00 2001 +From: Tuukka Pasanen <tuukka.pasanen@ilmi.fi> +Date: Mon, 16 Dec 2019 10:41:59 +0200 +Subject: [PATCH 1/3] For maximum backward compability define __CURL_MULTI_H if + it's not defined + +--- + Curl.xs | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/Curl.xs b/Curl.xs +index cfa282d..a98c255 100644 +--- a/Curl.xs ++++ b/Curl.xs +@@ -68,6 +68,12 @@ typedef struct { + struct curl_httppost * last; + } perl_curl_form; + ++/* To keep backward compability define __CURL_MULTI_H if it's not defined */ ++#ifdef CURLINC_MULTI_H ++# ifndef __CURL_MULTI_H ++# define __CURL_MULTI_H 1 ++# endif ++#endif + + typedef struct { + #ifdef __CURL_MULTI_H + +From 3e94be6ae245ca29ac21745cf273c7bd0ca9b178 Mon Sep 17 00:00:00 2001 +From: Tuukka Pasanen <tuukka.pasanen@ilmi.fi> +Date: Mon, 16 Dec 2019 10:53:25 +0200 +Subject: [PATCH 2/3] Remove -Wunused-but-set-variable warnings + +--- + Curl.xs | 11 ++++++++++- + 1 file changed, 10 insertions(+), 1 deletion(-) + +diff --git a/Curl.xs b/Curl.xs +index a98c255..828b4ec 100644 +--- a/Curl.xs ++++ b/Curl.xs +@@ -358,7 +358,6 @@ fwrite_wrapper2 ( + + if (call_function) { /* We are doing a callback to perl */ + int count, status; +- SV *sv; + + ENTER; + SAVETMPS; +@@ -608,6 +607,8 @@ curl_easy_init(...) + char *sclass = "WWW::Curl::Easy"; + + PPCODE: ++ /* Prevent ununsed variable warning */ ++ (void)(ix); + if (items>0 && !SvROK(ST(0))) { + STRLEN dummy; + sclass = SvPV(ST(0),dummy); +@@ -951,6 +952,8 @@ int + curl_easy_cleanup(self) + WWW::Curl::Easy self + CODE: ++ /* Prevent unused variable warning */ ++ (void)(self); + /* does nothing anymore - cleanup is automatic when a curl handle goes out of scope */ + RETVAL = 0; + OUTPUT: +@@ -968,6 +971,8 @@ curl_easy_strerror(self, errornum) + int errornum + CODE: + { ++ /* Prevent unused variable */ ++ (void)(self); + #if (LIBCURL_VERSION_NUM>=0x070C00) + const char * vchar = curl_easy_strerror(errornum); + #else +@@ -1186,6 +1191,8 @@ curl_multi_strerror(self, errornum) + int errornum + CODE: + { ++ /* Prevent unused variable warning */ ++ (void)(self); + #if (LIBCURL_VERSION_NUM>=0x070C00) + const char * vchar = curl_multi_strerror(errornum); + #else +@@ -1256,6 +1263,8 @@ curl_share_strerror(self, errornum) + int errornum + CODE: + { ++ /* Prevent unused variable */ ++ (void)(self); + #if (LIBCURL_VERSION_NUM>=0x070C00) + const char * vchar = curl_share_strerror(errornum); + #else + +From 968e410fcd6ddc4a122d787186eac6516bf982aa Mon Sep 17 00:00:00 2001 +From: Tuukka Pasanen <tuukka.pasanen@ilmi.fi> +Date: Mon, 16 Dec 2019 11:00:46 +0200 +Subject: [PATCH 3/3] Remove -Wattribute-warning warning messages with + typecasting + +--- + Curl.xs | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/Curl.xs b/Curl.xs +index 828b4ec..05eb71a 100644 +--- a/Curl.xs ++++ b/Curl.xs +@@ -667,7 +667,7 @@ curl_easy_duphandle(self) + } + + if (self->callback[callback_index(CURLOPT_DEBUGFUNCTION)] || self->callback_ctx[callback_index(CURLOPT_DEBUGDATA)]) { +- curl_easy_setopt(clone->curl, CURLOPT_DEBUGFUNCTION, debug_callback_func); ++ curl_easy_setopt(clone->curl, CURLOPT_DEBUGFUNCTION, (curl_debug_callback) debug_callback_func); + curl_easy_setopt(clone->curl, CURLOPT_DEBUGDATA, clone); + } + +@@ -722,7 +722,7 @@ curl_easy_setopt(self, option, value, push=0) + perl_curl_easy_register_callback(aTHX_ self,&(self->callback_ctx[callback_index(option)]), value); + break; + case CURLOPT_DEBUGDATA: +- curl_easy_setopt(self->curl, CURLOPT_DEBUGFUNCTION, SvOK(value) ? debug_callback_func : NULL); ++ curl_easy_setopt(self->curl, CURLOPT_DEBUGFUNCTION, (curl_debug_callback) (SvOK(value) ? debug_callback_func : NULL)); + curl_easy_setopt(self->curl, option, SvOK(value) ? self : NULL); + perl_curl_easy_register_callback(aTHX_ self,&(self->callback_ctx[callback_index(option)]), value); + break; +@@ -743,7 +743,7 @@ curl_easy_setopt(self, option, value, push=0) + perl_curl_easy_register_callback(aTHX_ self,&(self->callback[callback_index(option)]), value); + break; + case CURLOPT_DEBUGFUNCTION: +- curl_easy_setopt(self->curl, option, SvOK(value) ? debug_callback_func : NULL); ++ curl_easy_setopt(self->curl, option, (curl_debug_callback) (SvOK(value) ? debug_callback_func : NULL)); + curl_easy_setopt(self->curl, CURLOPT_DEBUGDATA, SvOK(value) ? self : NULL); + perl_curl_easy_register_callback(aTHX_ self,&(self->callback[callback_index(option)]), value); + break; +@@ -796,7 +796,7 @@ curl_easy_setopt(self, option, value, push=0) + + /* tell curl to redirect STDERR - value should be a glob */ + case CURLOPT_STDERR: +- RETVAL = curl_easy_setopt(self->curl, option, IoOFP(sv_2io(value)) ); ++ RETVAL = curl_easy_setopt(self->curl, option, (FILE *) IoOFP(sv_2io(value)) ); + break; + + /* not working yet... */ +@@ -817,7 +817,7 @@ curl_easy_setopt(self, option, value, push=0) + WWW__Curl__Share wrapper; + IV tmp = SvIV((SV*)SvRV(value)); + wrapper = INT2PTR(WWW__Curl__Share,tmp); +- RETVAL = curl_easy_setopt(self->curl, option, wrapper->curlsh); ++ RETVAL = curl_easy_setopt(self->curl, option, (CURLSH *) wrapper->curlsh); + } else + croak("value is not of type WWW::Curl::Share"); + break; +@@ -1096,7 +1096,7 @@ curl_multi_info_read(self) + }; + if (easy) { + curl_easy_getinfo(easy, CURLINFO_PRIVATE, &stashid); +- curl_easy_setopt(easy, CURLINFO_PRIVATE, NULL); ++ curl_easy_setopt(easy, CURLINFO_PRIVATE, (curl_off_t) NULL); + curl_multi_remove_handle(self->curlm, easy); + XPUSHs(sv_2mortal(newSVpv(stashid,0))); + XPUSHs(sv_2mortal(newSViv(res))); diff --git a/unmaintained/perl-www-curl/perl-5.26.patch b/unmaintained/perl-www-curl/perl-5.26.patch new file mode 100644 index 0000000000..428d93c32d --- /dev/null +++ b/unmaintained/perl-www-curl/perl-5.26.patch @@ -0,0 +1,12 @@ +diff --git a/Makefile.PL b/Makefile.PL +index bb852e4..dd6d228 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -1,6 +1,7 @@ + # Makefile.PL for Perl module WWW::Curl + # Check out the README file for more information. + ++BEGIN { push @INC, '.'; } + use inc::Module::Install; + + name 'WWW-Curl'; diff --git a/unmaintained/py3-mopidy-subidy/APKBUILD b/unmaintained/py3-mopidy-subidy/APKBUILD new file mode 100644 index 0000000000..c1286c0e16 --- /dev/null +++ b/unmaintained/py3-mopidy-subidy/APKBUILD @@ -0,0 +1,28 @@ +# Contributor: Galen Abell <galen@galenabell.com> +# Maintainer: Galen Abell <galen@galenabell.com> +pkgname=py3-mopidy-subidy +_pyname=Mopidy-Subidy +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Mopidy extension for playing music from Subsonic servers" +url="https://github.com/Prior99/mopidy-subidy" +arch="" # Due to mopidy +license="BSD-3-Clause" +depends="python3 mopidy py3-pykka py3-pysonic" +makedepends="py3-setuptools" +source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz" +builddir="$srcdir/$_pyname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py test +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="eb0068646c8865d7be62f0c4075cc97dedd8dd52d96f5fa55f9626ca90e00b89211fac48d470f615066584c19dcbe8f4ef18a9dbfe3e2f3a57c96349272cfb36 Mopidy-Subidy-1.0.0.tar.gz" diff --git a/unmaintained/py3-nbxmpp/APKBUILD b/unmaintained/py3-nbxmpp/APKBUILD deleted file mode 100644 index 09e52bce2e..0000000000 --- a/unmaintained/py3-nbxmpp/APKBUILD +++ /dev/null @@ -1,27 +0,0 @@ -# Maintainer: -pkgname=py3-nbxmpp -_pkgname=nbxmpp -pkgver=0.6.10 -pkgrel=2 -pkgdesc="A non-blocking XMPP implementation for python" -url="https://dev.gajim.org/gajim/python-nbxmpp/" -arch="noarch" -license="GPL-3.0-or-later" -depends="python3" -makedepends="py3-setuptools" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -options="!check" # no test suite -builddir="$srcdir"/$_pkgname-$pkgver - -replaces=py-nbxmpp # Backwards compatibility -provides=py-nbxmpp=$pkgver-r$pkgrel # Backwards compatibility - -build() { - python3 setup.py build -} - -package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" -} - -sha512sums="df586498ea66da4b6720753b25bd0222ee3360684e844d0d5bc2f364c2566243cc358976fe34b050e3358c3e584f880d8ac1c34e84eca34efaa18ab0c2f37eaf nbxmpp-0.6.10.tar.gz" diff --git a/unmaintained/quark/APKBUILD b/unmaintained/quark/APKBUILD new file mode 100644 index 0000000000..2010f98cf1 --- /dev/null +++ b/unmaintained/quark/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Sascha Paunovic <azarus@posteo.net> +# Maintainer: Sascha Paunovic <azarus@posteo.net> +pkgname=quark +pkgver=20180617 +_commit=ba38b0969f542e6e7d3f01ba500189a81ca32355 # there are no releases +pkgrel=0 +pkgdesc="quark web server" +url="https://tools.suckless.org/quark/" +arch="" # commit no longer available +license="ISC" +options="!check" # no test suite +subpackages="$pkgname-doc" +source="https://git.suckless.org/$pkgname/snapshot/$pkgname-$_commit.tar.gz" +builddir="$srcdir/$pkgname-$_commit" + +build() { + cd "$builddir" + make +} + +package() { + cd "$builddir" + make PREFIX=/usr DESTDIR="$pkgdir" install +} + +sha512sums="d74b9fa2315ae92a9048d8d9b82075986c2bab13ed85f4827ef39083fee9eaede880611b48b3359f7ead2901f0ffd261257c23066a82717697d78f924ac655fd quark-ba38b0969f542e6e7d3f01ba500189a81ca32355.tar.gz" diff --git a/unmaintained/rebar3/APKBUILD b/unmaintained/rebar3/APKBUILD new file mode 100644 index 0000000000..d17ff22afb --- /dev/null +++ b/unmaintained/rebar3/APKBUILD @@ -0,0 +1,110 @@ +# Maintainer: Daniel Isaksen <d@duniel.no> +pkgname=rebar3 +pkgver=3.11.1 +pkgrel=2 +pkgdesc="Erlang build tool that makes it easy to compile and test erlang applications and releases" +url="https://www.rebar3.org/" +arch="" # Erlang 23 +license="Apache-2.0" +depends="erlang erlang-compiler" +makedepends="erlang-dev erlang-ssl erlang-eunit erlang-sasl erlang-dialyzer erlang-hipe" +checkdepends="erlang-common-test erlang-tools erlang-snmp erlang-edoc erlang-erts" +install="" +subpackages="" +_bbmustache_ver="1.6.1" +_certifi_ver="2.5.1" +_cf_ver="0.2.2" +_cth_readable_ver="1.4.4" +_erlware_commons_ver="1.3.1" +_eunit_formatters_ver="0.5.0" +_getopt_ver="1.0.1" +_providers_ver="1.8.1" +_relx_ver="3.32.1" +_ssl_verify_fun_ver="1.1.5" +_meck_ver="0.8.13" +source="rebar3-$pkgver.tar.gz::https://github.com/erlang/rebar3/archive/$pkgver.tar.gz + https://repo.hex.pm/tarballs/bbmustache-$_bbmustache_ver.tar + https://repo.hex.pm/tarballs/certifi-$_certifi_ver.tar + https://repo.hex.pm/tarballs/cf-$_cf_ver.tar + https://repo.hex.pm/tarballs/cth_readable-$_cth_readable_ver.tar + https://repo.hex.pm/tarballs/erlware_commons-$_erlware_commons_ver.tar + https://repo.hex.pm/tarballs/eunit_formatters-$_eunit_formatters_ver.tar + https://repo.hex.pm/tarballs/getopt-$_getopt_ver.tar + https://repo.hex.pm/tarballs/providers-$_providers_ver.tar + https://repo.hex.pm/tarballs/relx-$_relx_ver.tar + https://repo.hex.pm/tarballs/ssl_verify_fun-$_ssl_verify_fun_ver.tar + https://repo.hex.pm/tarballs/meck-$_meck_ver.tar + " +builddir="$srcdir/rebar3-$pkgver" + +# XXX: rebar3 eunit reports no tests, so I guess there is none. but I'm not sure. +# XXX: rebar3 bootstrap tries to download a package index (but all of the dependencies are predownloaded), +# which means we need networking enabled + +#options="net !check" + +_prepare_subpkg() { + msg "unpacking $1 $2 to _build/default/lib" + + mkdir -p "$builddir/_build/default/lib/$1" + + cd "$builddir/_build/default/lib/$1" + tar xf "$srcdir"/"$1"-"$2".tar + tar zxf contents.tar.gz + rm contents.tar.gz + cd "$builddir" +} + +prepare() { + default_prepare + + _prepare_subpkg bbmustache $_bbmustache_ver + _prepare_subpkg certifi $_certifi_ver + _prepare_subpkg cf $_cf_ver + _prepare_subpkg cth_readable $_cth_readable_ver + _prepare_subpkg erlware_commons $_erlware_commons_ver + _prepare_subpkg eunit_formatters $_eunit_formatters_ver + _prepare_subpkg getopt $_getopt_ver + _prepare_subpkg providers $_providers_ver + _prepare_subpkg relx $_relx_ver + _prepare_subpkg ssl_verify_fun $_ssl_verify_fun_ver + _prepare_subpkg meck $_meck_ver + + ln -sf default "$builddir"/_build/bootstrap +} + +build() { + # DEBUG=1 gives us verbose build output + # we use /tmp/rebar-build as home dir because rebar3 bootstrap downloads a package index and it cannot be disabled + + mkdir -p /tmp/rebar-build + HOME=/tmp/rebar-build ./bootstrap + + # clean up + #rm -rf /tmp/rebar-build +} + +check() { + HOME=/tmp/rebar-build ./rebar3 ct + + # cleanup + rm -rf /tmp/rebar-build +} + +package() { + cd "$builddir" + install -D -m0755 rebar3 "$pkgdir"/usr/bin/rebar3 +} + +sha512sums="749368c8c19641d0c1083f1750438cfc5f1c75e284bd74b4f8ae368103e79a376f4bd91e85db35e1619116cd2f3b1a8dc2d3d89db19da8f4440e0b58d3c0a37c rebar3-3.11.1.tar.gz +7da99c76c5bb5b7cdc213784184c06d8be093a53c2d1da45d82677a3b18672c9368c4dac39797dee50c83cae7be4d06979d5ad2bee6b9d9d7f83fb56ebb8b032 bbmustache-1.6.1.tar +478126f314065d6d91f6854b9565461ca0c3d31265b952bbe6eb3643e861ee1faeba388c2d356d3595381aa3a5d5871c7c98cb85d8e6ab614917eb5c8be9082a certifi-2.5.1.tar +0afbe335c6170f1f4efa6fb22111d8698abc288b1cc125fb69653958df1dbdb1a936f927309b460dc6cfa1fc2b15c82838b8935d5fa8e28dab1c050295608698 cf-0.2.2.tar +2036b947d33037afd2d043447bd533e207490c290ef1bd0115660c76824dbd95ce03c56bb4b89377a82bab25dab1bb19e28fc42d3f56064ea261a57b7f9f183e cth_readable-1.4.4.tar +1f9e7617b88ec7cae6e83da1a60a2d22ce3325b6425cd284c3ec3dd0de49a26220b868ea60a937758dd65d7ea137819e314504a98ced99fc2617056ada4d2fa0 erlware_commons-1.3.1.tar +e8692ff35f979dfaf99ccac58014429d300a71ff76f2ce945814a0d4d9431821f04f988dc0271271858a37e6903a73b4dd9ae3abf215333f3135fa883ec07022 eunit_formatters-0.5.0.tar +859642dc26c42414474fa8af8a32fed827b0773ac6d6eb51ec19c291672408e71619ad2bb0c7f08d84ff591b33a655a7e0b6241b94372e9cc816a648ee6cdaf6 getopt-1.0.1.tar +b1db18264c98717849ed521f8eb1ef0f112ea5e602bcd529fd97996120640c7567097174180673ba166d4c408496ce63c351ce70a3f385ed1ae7d1e444e2587a providers-1.8.1.tar +2bcc9a8a12cc1fbca3c195cc61d60acda98b49df72a068dcc8bed3fa645ad76f3d008f31f914bdb5ec48fc372b6196abeadf8dddf188b5c91a314f1852aa9d27 relx-3.32.1.tar +9beef3fb7b1aa2e40202d321442159a502a6efdcac3d15397c0dfffef633a1f5af8baa006eb4437d14620ffc2e23018111f1626d2f34a63e804cd8e11fe17f71 ssl_verify_fun-1.1.5.tar +adcfd3fdf69d4926dc1d9c2f0b477c8977bddba8b8ffdbfedcf1b5dc3c1af47b39b1c6263c922a43efede90f145f009d71b27178597320522960c5ebbd84a15a meck-0.8.13.tar" diff --git a/unmaintained/refpolicy/APKBUILD b/unmaintained/refpolicy/APKBUILD new file mode 100644 index 0000000000..d52b9c902a --- /dev/null +++ b/unmaintained/refpolicy/APKBUILD @@ -0,0 +1,62 @@ +# Maintainer: Tycho Andersen <tycho@docker.com> +pkgname=refpolicy +pkgver=20170204 +pkgrel=0 +pkgdesc="SELinux policy reference" +url="https://github.com/TresysTechnology/refpolicy/wiki" +arch="" +license="GPL-2.0" +depends="" +depends_dev="" +makedepends="$depends_dev checkpolicy python3 gawk" +install="" +subpackages="$pkgname-doc" +source="https://raw.githubusercontent.com/wiki/TresysTechnology/refpolicy/files/refpolicy-2.$pkgver.tar.bz2 + Makefile.devel" +builddir="$srcdir/refpolicy" + +# refpolicy config +monolithic=n +distro=gentoo +# unknown perms here means what to do with perms that are unknown to the +# current userspace, because the kernel version is newer. By default, we deny. +unknown_perms=deny + +# These are somewhat related to what is in the CentOS spec file, although they +# are slightly differnet in what they install. +# +# https://selinuxproject.org/page/NB_RefPolicy#Reference_Policy_Build_Options_-_build.conf +# are the build options: M{L,C}S_CATS are the number of categories for m{l,c}s policies. +make_cmds() { + make UNK_PERMS=$3 NAME=$1 TYPE=$2 DISTRO=$distro UBAC=n DIRECT_INITRC=y MONOLITHIC=$monolithic MLS_CATS=1024 MCS_CATS=1024 bare || return 1 + make UNK_PERMS=$3 NAME=$1 TYPE=$2 DISTRO=$distro UBAC=n DIRECT_INITRC=y MONOLITHIC=$monolithic MLS_CATS=1024 MCS_CATS=1024 conf || return 1 +} + +install_cmds() { + make UNK_PERMS=$3 NAME=$1 TYPE=$2 DISTRO=$distro UBAC=n DIRECT_INITRC=y MONOLITHIC=$monolithic MLS_CATS=1024 MCS_CATS=1024 SEMOD_EXP="/usr/bin/semodule_expand -a" base.pp + make validate UNK_PERMS=$3 NAME=$1 TYPE=$2 DISTRO=$distro UBAC=n DIRECT_INITRC=y MONOLITHIC=$monolithic MLS_CATS=1024 MCS_CATS=1024 SEMOD_EXP="/usr/bin/semodule_expand -a" modules + make UNK_PERMS=$3 NAME=$1 TYPE=$2 DISTRO=$distro UBAC=n DIRECT_INITRC=y MONOLITHIC=$monolithic MLS_CATS=1024 MCS_CATS=1024 DESTDIR="$pkgdir" install + make UNK_PERMS=$3 NAME=$1 TYPE=$2 DISTRO=$distro UBAC=n DIRECT_INITRC=y MONOLITHIC=$monolithic MLS_CATS=1024 MCS_CATS=1024 DESTDIR="$pkgdir" install-appconfig + make UNK_PERMS=$3 NAME=$1 TYPE=$2 DISTRO=$distro UBAC=n DIRECT_INITRC=y MONOLITHIC=$monolithic MLS_CATS=1024 MCS_CATS=1024 DESTDIR="$pkgdir" install-docs + make UNK_PERMS=$3 NAME=$1 TYPE=$2 DISTRO=$distro UBAC=n DIRECT_INITRC=y MONOLITHIC=$monolithic MLS_CATS=1024 MCS_CATS=1024 DESTDIR="$pkgdir" install-headers +} + +build() { + cd "$builddir" + make_cmds targeted mcs $unknown_perms || return 1 +} + +package() { + cd "$builddir" + install_cmds targeted mcs $unknown_perms || return 1 + mkdir -p $pkgdir/usr/share/selinux/devel || return 1 + cp -r "$pkgdir/usr/share/selinux/targeted/include" "$pkgdir/usr/share/selinux/devel/include" + cp $srcdir/Makefile.devel "$pkgdir/usr/share/selinux/devel/Makefile" || return 1 + install -m 644 doc/example.* "$pkgdir/usr/share/selinux/devel" || return 1 + install -m 644 doc/policy.* "$pkgdir/usr/share/selinux/devel" || return 1 + # TODO: libselinux needs to build the python bindings for this to work + # sepolicy manpage -a -p "$pkgdir/usr/share/man/man8/" -w -r "$pkgdir" || return 1 +} + +sha512sums="30deabb02a5bde51c463e3e89988d850cff51596c2e72733a064245dec152ea46317eea79550dbe82a7a0d327ec0bcfbd9474ff8a902507392df0da00df6397f refpolicy-2.20170204.tar.bz2 +01bd5f58e05feba2f318f6b80fb4c6cbe405691f947fee48566ad75c935d6e824ccfda5de88c5dad74b531ed28c18615d8ef4e2c2371d71c776b78767eb33740 Makefile.devel" diff --git a/unmaintained/refpolicy/Makefile.devel b/unmaintained/refpolicy/Makefile.devel new file mode 100644 index 0000000000..b1c6bfe71f --- /dev/null +++ b/unmaintained/refpolicy/Makefile.devel @@ -0,0 +1,22 @@ +# installation paths +SHAREDIR := /usr/share/selinux + +AWK ?= gawk +NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config)) + +ifeq ($(MLSENABLED),) + MLSENABLED := 1 +endif + +ifeq ($(MLSENABLED),1) + NTYPE = mcs +endif + +ifeq ($(NAME),mls) + NTYPE = mls +endif + +TYPE ?= $(NTYPE) + +HEADERDIR := $(SHAREDIR)/devel/include +include $(HEADERDIR)/Makefile diff --git a/unmaintained/s6-overlay/APKBUILD b/unmaintained/s6-overlay/APKBUILD deleted file mode 100644 index a9d8c83f31..0000000000 --- a/unmaintained/s6-overlay/APKBUILD +++ /dev/null @@ -1,60 +0,0 @@ -# Contributor: Jürgen Brunink <oss@jbserver.eu> -# Contributor: Dermot Bradley <dermot_bradley@yahoo.com> -# Maintainer: Dermot Bradley <dermot_bradley@yahoo.com> -pkgname=s6-overlay -pkgver=2.2.0.3 -pkgrel=2 -pkgdesc="s6 overlay for containers" -url="https://github.com/just-containers/s6-overlay/" -arch="noarch" -license="ISC" -depends="s6 - execline - justc-envdir - s6-dns - s6-linux-utils - s6-networking - s6-overlay-preinit - s6-portable-utils - s6-rc - " -subpackages=" - $pkgname-doc - " -options="!check" # no test suite/unit tests -source="$pkgname-$pkgver.tar.gz::https://github.com/just-containers/s6-overlay/archive/v$pkgver.tar.gz - execline-compat-fix.patch - " - -package() { - mkdir -p "$pkgdir" - - # We only need to package the contents of the builder/overlay-rootfs - # directory plus some docs files, so move that sub-directory plus - # some docs files to the package directory. - mv "$srcdir/$pkgname-$pkgver"/builder/overlay-rootfs/* \ - "$pkgdir"/ - - # Ensure that the execlineb scripts are actually executable - find "$pkgdir"/ -type f \ - -exec sh -c 'test "$(head -c 16 "$1")" = "#!/bin/execlineb"' sh {} \; \ - -exec chmod a+x {} \; - - # Create missing directories - mkdir -p \ - "$pkgdir"/etc/cont-finish.d \ - "$pkgdir"/etc/cont-init.d \ - "$pkgdir"/etc/fix-attrs.d \ - "$pkgdir"/etc/services.d \ - "$pkgdir"/etc/s6/init/env-stage2 - - mkdir -p "$pkgdir"/usr/share/doc/$pkgname - mv "$srcdir/$pkgname-$pkgver"/AUTHORS.md \ - "$srcdir/$pkgname-$pkgver"/CONTRIBUTORS.md \ - "$srcdir/$pkgname-$pkgver"/LICENSE.md \ - "$srcdir/$pkgname-$pkgver"/README.md \ - "$pkgdir"/usr/share/doc/$pkgname -} - -sha512sums="fd33ac2073c7eef428a172bd3c901164d26d4bdbaf8fee5cdcb5c5e9db07e08854808255269cd4fcf726a3207bff39ab1f62b8ecac0152fec962e26979c9656b s6-overlay-2.2.0.3.tar.gz -5ed64f46b6cb5b9b5b646a86832f7e8a84f2a9f622faaf4cd67356d068233e8ac45c80242856bdabc5b4331173fea975db69db49ea360ec7f4257b0091b15d16 execline-compat-fix.patch" diff --git a/unmaintained/s6-overlay/execline-compat-fix.patch b/unmaintained/s6-overlay/execline-compat-fix.patch deleted file mode 100644 index cd2bf831df..0000000000 --- a/unmaintained/s6-overlay/execline-compat-fix.patch +++ /dev/null @@ -1,34 +0,0 @@ -Most recent version of execline (2.8.0.0) changed behaviour of 'backtick' -command. When Alpine execline package was updated to this version in -February it broke some execline scripts in s6-overlay. - -This patch resolves the issue. - -Submitted upstream: https://github.com/just-containers/s6-overlay/pull/335 - ---- - -diff -aur a/builder/overlay-rootfs/etc/s6/init/init-stage1 b/builder/overlay-rootfs/etc/s6/init/init-stage1 ---- a/builder/overlay-rootfs/etc/s6/init/init-stage1 -+++ b/builder/overlay-rootfs/etc/s6/init/init-stage1 -@@ -58,7 +58,7 @@ - } - { } - --backtick -n S6_CMD_ARG0 { printcontenv S6_CMD_ARG0 } -+backtick -D "" -n S6_CMD_ARG0 { printcontenv S6_CMD_ARG0 } - importas -d "\n" -s -u S6_CMD_ARG0 S6_CMD_ARG0 - - ## -diff -aur a/builder/overlay-rootfs/etc/s6/init/init-stage2 b/builder/overlay-rootfs/etc/s6/init/init-stage2 ---- a/builder/overlay-rootfs/etc/s6/init/init-stage2 -+++ b/builder/overlay-rootfs/etc/s6/init/init-stage2 -@@ -35,7 +35,7 @@ - if { s6-echo -n -- "[s6-init] making user provided files available at /var/run/s6/etc..." } - foreground - { -- backtick -n S6_RUNTIME_PROFILE { printcontenv S6_RUNTIME_PROFILE } -+ backtick -D "" -n S6_RUNTIME_PROFILE { printcontenv S6_RUNTIME_PROFILE } - importas -u S6_RUNTIME_PROFILE S6_RUNTIME_PROFILE - backtick -n S6_RUNTIME_PROFILE_SRC { - ifte { s6-echo "/etc/cont-profile.d/${S6_RUNTIME_PROFILE}" } { s6-echo "/etc" } diff --git a/unmaintained/solid-calendar-store/APKBUILD b/unmaintained/solid-calendar-store/APKBUILD new file mode 100644 index 0000000000..b4b90c30db --- /dev/null +++ b/unmaintained/solid-calendar-store/APKBUILD @@ -0,0 +1,39 @@ +# Maintainer: Dylan Van Assche <me@dylanvanassche.be> +# Contributor: Dylan Van Assche <me@dylanvanassche.be> +pkgname=solid-calendar-store +pkgver=0.0.18 +pkgrel=0 +pkgdesc="Solid stores for managing calendars" +url="https://github.com/KNowledgeOnWebScale/solid-calendar-store" +arch="all !riscv64" # disabled on riscv64 due to missing nodejs +license="MIT" +depends="nodejs>=12" +makedepends="npm solid-community-server rmlmapper python3" +arch="!x86" # textrels +options="!check" +source="https://github.com/KNowledgeOnWebScale/solid-calendar-store/archive/v$pkgver/solid-calendar-store-$pkgver.tar.gz" + +build() { + npm install --include=dev + npm run build +} + +check() { + npm run test +} + +package() { + # Solid Calendar Store is a plugin for the Solid Community Server + mkdir -p "$pkgdir"/usr/share/webapps/solid-community-server/solid-calendar-store + + cp -r "$builddir"/package.json \ + "$builddir"/config \ + "$builddir"/dist \ + "$builddir"/node_modules \ + "$pkgdir"/usr/share/webapps/solid-community-server/solid-calendar-store +} + + +sha512sums=" +52f48a8525291af524910576e5350080b94da7ec296e985b995ff8747c4938cf1dbed60d5961685d0ecec1d5f6520a4f043e8cb5997204de4ed354f2dabc893e solid-calendar-store-0.0.18.tar.gz +" diff --git a/unmaintained/solid-community-server/APKBUILD b/unmaintained/solid-community-server/APKBUILD new file mode 100644 index 0000000000..50f4887e78 --- /dev/null +++ b/unmaintained/solid-community-server/APKBUILD @@ -0,0 +1,66 @@ +# Maintainer: Dylan Van Assche <me@dylanvanassche.be> +# Contributor: Dylan Van Assche <me@dylanvanassche.be> +pkgname=solid-community-server +pkgver=2.0.1 +pkgrel=1 +pkgdesc="An open and modular implementation of the Solid specifications" +url="https://github.com/solid/community-server" +arch="all !x86 !armhf !riscv64" # x86 textrels, armhf failing tests, riscv64 nodejs missing +license="MIT" +depends="nodejs>=12" +makedepends="npm build-base python3" +subpackages="$pkgname-openrc" +install="$pkgname.pre-install" +source="$pkgname-$pkgver-2.tar.gz::https://github.com/solid/community-server/archive/refs/tags/v$pkgver.tar.gz + solid-community-server.initd + disable-husky.patch" +builddir="$srcdir/CommunitySolidServer-$pkgver" + +build() { + npm install --include=dev + npm run build +} + +check() { + npm run test +} + +package() { + mkdir -p "$pkgdir"/usr/share/webapps/solid-community-server + mkdir -p "$pkgdir"/usr/bin + + cp -r "$builddir"/package.json \ + "$builddir"/bin \ + "$builddir"/config \ + "$builddir"/dist \ + "$builddir"/node_modules \ + "$builddir"/templates \ + "$pkgdir"/usr/share/webapps/solid-community-server + + # Solid Community Server extensions expect the community server to be + # in node_modules while this is not the case when installing + # release tarballs. + mkdir -p "$pkgdir/usr/share/webapps/solid-community-server/node_modules/@solid/community-server" + ln -s "$pkgdir/usr/share/webapps/solid-community-server/bin" \ + "$pkgdir/usr/share/webapps/solid-community-server/node_modules/@solid/community-server/bin" + ln -s "$pkgdir/usr/share/webapps/solid-community-server/config" \ + "$pkgdir/usr/share/webapps/solid-community-server/node_modules/@solid/community-server/config" + ln -s "$pkgdir/usr/share/webapps/solid-community-server/dist" \ + "$pkgdir/usr/share/webapps/solid-community-server/node_modules/@solid/community-server/dist" + ln -s "$pkgdir/usr/share/webapps/solid-community-server/templates" \ + "$pkgdir/usr/share/webapps/solid-community-server/node_modules/@solid/community-server/templates" + ln -s "$pkgdir/usr/share/webapps/solid-community-server/package.json" \ + "$pkgdir/usr/share/webapps/solid-community-server/node_modules/@solid/community-server/package.json" + + ln -s /usr/share/webapps/solid-community-server/bin/server.js \ + "$pkgdir"/usr/bin/solid-community-server + + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname +} + +sha512sums=" +c5419ee7df527e61e244ee375479118a8f008efbf9f2a067f8a9afdea916c226cb2d90b3d7357cc58ea3175f74873cf607da79996ff38cadbdf2e4f93820986a solid-community-server-2.0.1-2.tar.gz +5d48353a2ee00411967dccbe37fa140134f734cf0f87fa04b489a05978b9a1e1ec8908ff003c5e25523345943672dde1eeb5e0b559d96407c67eb7f287601a53 solid-community-server.initd +d3866bbc93c6824df4786c5f57008933ffa373f4cb8a9c66836def88c52d8cc8b2b91d22f0631bec8363fe7209b8a829e438a1f26a7df66d9fdf4afc45ef59f2 disable-husky.patch +" diff --git a/unmaintained/solid-community-server/disable-husky.patch b/unmaintained/solid-community-server/disable-husky.patch new file mode 100644 index 0000000000..3b6239ca93 --- /dev/null +++ b/unmaintained/solid-community-server/disable-husky.patch @@ -0,0 +1,73 @@ +diff --git a/package-lock.json b/package-lock.json +index 6554d23..cfb3fd4 100644 +--- a/package-lock.json ++++ b/package-lock.json +@@ -90,7 +90,6 @@ + "eslint-plugin-tsdoc": "^0.2.14", + "eslint-plugin-unused-imports": "^1.1.1", + "fs-extra": "^10.0.0", +- "husky": "^4.3.8", + "jest": "^27.0.6", + "jest-rdf": "^1.6.0", + "manual-git-changelog": "^1.0.1", +@@ -9329,36 +9328,6 @@ + "node": ">=10.17.0" + } + }, +- "node_modules/husky": { +- "version": "4.3.8", +- "resolved": "https://registry.npmjs.org/husky/-/husky-4.3.8.tgz", +- "integrity": "sha512-LCqqsB0PzJQ/AlCgfrfzRe3e3+NvmefAdKQhRYpxS4u6clblBoDdzzvHi8fmxKRzvMxPY/1WZWzomPZww0Anow==", +- "dev": true, +- "hasInstallScript": true, +- "dependencies": { +- "chalk": "^4.0.0", +- "ci-info": "^2.0.0", +- "compare-versions": "^3.6.0", +- "cosmiconfig": "^7.0.0", +- "find-versions": "^4.0.0", +- "opencollective-postinstall": "^2.0.2", +- "pkg-dir": "^5.0.0", +- "please-upgrade-node": "^3.2.0", +- "slash": "^3.0.0", +- "which-pm-runs": "^1.0.0" +- }, +- "bin": { +- "husky-run": "bin/run.js", +- "husky-upgrade": "lib/upgrader/bin.js" +- }, +- "engines": { +- "node": ">=10" +- }, +- "funding": { +- "type": "opencollective", +- "url": "https://opencollective.com/husky" +- } +- }, + "node_modules/husky/node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", +diff --git a/package.json b/package.json +index 2e04765..991488f 100644 +--- a/package.json ++++ b/package.json +@@ -63,11 +63,6 @@ + "version": "manual-git-changelog onversion", + "watch": "nodemon --watch \"dist/**/*.js\" --exec npm start" + }, +- "husky": { +- "hooks": { +- "pre-commit": "npm run build && npm run lint && npm run test:unit && npm run test:integration" +- } +- }, + "files": [ + "bin", + "dist", +@@ -153,7 +148,6 @@ + "eslint-plugin-tsdoc": "^0.2.14", + "eslint-plugin-unused-imports": "^1.1.1", + "fs-extra": "^10.0.0", +- "husky": "^4.3.8", + "jest": "^27.0.6", + "jest-rdf": "^1.6.0", + "manual-git-changelog": "^1.0.1", diff --git a/unmaintained/solid-community-server/solid-community-server.initd b/unmaintained/solid-community-server/solid-community-server.initd new file mode 100644 index 0000000000..d1f6003284 --- /dev/null +++ b/unmaintained/solid-community-server/solid-community-server.initd @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +supervisor=supervise-daemon + +name="solid-community-server" +description="Daemon for solid-community-server, a Solid pod server" + +: ${config_file:="/usr/share/webapps/solid-community-server/config/file.json"} +: ${storage_path:="/var/lib/solid-community-server"} + +command="/usr/bin/solid-community-server" +command_args="-c $config_file -f $storage_path" +command_user=solid:solid +log_dir="/var/log/solid-community-server" +log_file="$log_dir/server.log" +supervise_daemon_args="--chdir $storage_path --stdout $log_file --stderr $log_file" + +depends() { + use logger + need net localmount +} + +start_pre() { + checkpath -d -o solid "$storage_path" + checkpath -d -o solid "$log_dir" + checkpath -f -o solid "$log_file" +} diff --git a/unmaintained/solid-community-server/solid-community-server.pre-install b/unmaintained/solid-community-server/solid-community-server.pre-install new file mode 100644 index 0000000000..ffe72ee819 --- /dev/null +++ b/unmaintained/solid-community-server/solid-community-server.pre-install @@ -0,0 +1,8 @@ +#!/bin/sh + +name=solid + +addgroup -S $name 2>/dev/null +adduser -S -D -H -h /var/lib/solid-community-server -s /sbin/nologin -G $name -g $name $name 2>/dev/null + +exit 0 diff --git a/unmaintained/solidity/APKBUILD b/unmaintained/solidity/APKBUILD new file mode 100644 index 0000000000..70748968e6 --- /dev/null +++ b/unmaintained/solidity/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Trevis Schiffer <nikolaibitinit@gmail.com> +# Maintainer: Trevis Schiffer <nikolaibitinit@gmail.com> +pkgname=solidity +pkgver=0.7.5 +pkgrel=4 +_commit=51b20bc0872bb9049e205d5547023cb06d1df9db +pkgdesc="The Solidity Contract-Oriented Programming Language" +url="https://github.com/ethereum/solidity" +# No support for big-endian systems and 32-bits +arch="all !s390x !x86 !armv7 !armhf !riscv64" +license="GPL-3.0-or-later" +makedepends="boost-dev cmake git" +source="$pkgname-$pkgver.tar.gz::https://github.com/ethereum/solidity/archive/v$pkgver.tar.gz" + +prepare() { + default_prepare + echo -n $_commit > commit_hash.txt +} + +build() { + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBoost_USE_STATIC_LIBS=OFF \ + -DTESTS=ON \ + -DCMAKE_BUILD_TYPE=None + cmake --build build +} + +check() { + cd build + # Broken tests + CTEST_OUTPUT_ON_FAILURE=TRUE ctest -V +} + +package() { + DESTDIR="$pkgdir" cmake --build build --target install +} + +sha512sums=" +4fbe5e3eac0fe534f3a9eda554c2d020fe65537ebcdacea4e113cf8fcfffd6b99bcb94f2d853f9cb0b2b0195ba36b6dbc8be2ce5f7304eccd94d8bf936271f79 solidity-0.7.5.tar.gz +" diff --git a/unmaintained/sssd/0001-makefile.patch b/unmaintained/sssd/0001-makefile.patch deleted file mode 100644 index 9127d34ebd..0000000000 --- a/unmaintained/sssd/0001-makefile.patch +++ /dev/null @@ -1,65 +0,0 @@ -diff --git a/Makefile.am b/Makefile.am -index 718041634..820378495 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -501,6 +501,7 @@ AM_CPPFLAGS = \ - -I$(srcdir)/src/sss_client \ - -I$(srcdir)/src \ - -I. \ -+ -I/usr/include/nspr \ - $(POPT_CFLAGS) \ - $(TALLOC_CFLAGS) \ - $(TDB_CFLAGS) \ -@@ -905,6 +906,7 @@ libsss_child_la_LIBADD = \ - $(TEVENT_LIBS) \ - $(DHASH_LIBS) \ - libsss_debug.la \ -+ -lintl \ - $(NULL) - libsss_child_la_LDFLAGS = -avoid-version - -@@ -1754,6 +1756,7 @@ sss_signal_SOURCES = \ - $(NULL) - sss_signal_LDADD = \ - libsss_debug.la \ -+ -lintl \ - $(NULL) - - sss_override_SOURCES = \ -@@ -1912,6 +1915,7 @@ libsss_test_common_la_LIBADD = \ - $(TEVENT_LIBS) \ - $(LDB_LIBS) \ - $(SSSD_INTERNAL_LTLIBS) \ -+ -lintl \ - $(NULL) - - if HAVE_CHECK -@@ -2659,6 +2663,7 @@ test_authtok_LDADD = \ - $(POPT_LIBS) \ - libsss_test_common.la \ - libsss_debug.la \ -+ -lintl \ - $(NULL) - - test_prompt_config_SOURCES = \ -@@ -4356,7 +4361,8 @@ ldap_child_LDADD = \ - $(TALLOC_LIBS) \ - $(POPT_LIBS) \ - $(DHASH_LIBS) \ -- $(KRB5_LIBS) -+ $(KRB5_LIBS) \ -+ -lintl - - if BUILD_SEMANAGE - selinux_child_SOURCES = \ -@@ -4447,6 +4453,7 @@ p11_child_LDADD = \ - $(DHASH_LIBS) \ - $(POPT_LIBS) \ - libsss_crypt.la \ -+ -lintl \ - $(NULL) - if HAVE_NSS - p11_child_LDADD += \ --- -2.27.0 - diff --git a/unmaintained/sssd/0002-src.patch b/unmaintained/sssd/0002-src.patch deleted file mode 100644 index 2e51b94c3b..0000000000 --- a/unmaintained/sssd/0002-src.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h -index 0251ab606..e7808f878 100644 ---- a/src/confdb/confdb.h -+++ b/src/confdb/confdb.h -@@ -22,6 +22,7 @@ - #ifndef _CONF_DB_H - #define _CONF_DB_H - -+#include <sys/types.h> - #include <stdbool.h> - #include <talloc.h> - #include <tevent.h> -diff --git a/src/util/util.h b/src/util/util.h -index 8a754dbfd..ac4bf62fc 100644 ---- a/src/util/util.h -+++ b/src/util/util.h -@@ -31,6 +31,7 @@ - #include <pcre.h> - #include <sys/types.h> - #include <sys/stat.h> -+#include <sys/param.h> - #include <netinet/in.h> - - #include <talloc.h> -@@ -46,6 +47,10 @@ - #include "util/sss_format.h" - #include "util/debug.h" - -+#ifndef ALLPERMS -+#define ALLPERMS (S_ISUID | S_ISGID | S_IRGRP | S_IRWXU | S_IRWXG | S_IRWXO) -+#endif -+ - /* name of the monitor server instance */ - #define SSSD_PIDFILE PID_PATH"/sssd.pid" - #define MAX_PID_LENGTH 10 --- -2.27.0 - diff --git a/unmaintained/sssd/0003-alpine.patch b/unmaintained/sssd/0003-alpine.patch deleted file mode 100644 index 5e47ae39ea..0000000000 --- a/unmaintained/sssd/0003-alpine.patch +++ /dev/null @@ -1,98 +0,0 @@ -diff --git a/Makefile.am b/Makefile.am -index 820378495..bb868ec56 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -4766,13 +4766,17 @@ else - if HAVE_GENTOO - init_SCRIPTS += \ - src/sysv/gentoo/sssd -+else -+if HAVE_ALPINE -+ init_SCRIPTS += \ -+ src/sysv/alpine/sssd - else - init_SCRIPTS += \ - src/sysv/sssd - endif - endif - endif -- -+endif - - dist_sssddata_DATA = \ - src/config/etc/sssd.api.conf \ -diff --git a/configure.ac b/configure.ac -index 5154918b1..efdb5f09c 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -510,7 +510,7 @@ AC_DEFINE_UNQUOTED([ABS_SRC_DIR], ["$my_srcdir"], [Absolute path to the source d - - AC_CONFIG_FILES([Makefile contrib/sssd.spec src/examples/rwtab src/doxy.config - contrib/sssd-pcsc.rules -- src/sysv/sssd src/sysv/gentoo/sssd src/sysv/SUSE/sssd -+ src/sysv/sssd src/sysv/gentoo/sssd src/sysv/SUSE/sssd src/sysv/alpine/sssd - po/Makefile.in src/man/Makefile src/tests/cwrap/Makefile - src/tests/intg/Makefile src/tests/test_CA/Makefile - src/lib/ipa_hbac/ipa_hbac.pc src/lib/ipa_hbac/ipa_hbac.doxy -diff --git a/src/external/platform.m4 b/src/external/platform.m4 -index 75853622f..5a2d50427 100644 ---- a/src/external/platform.m4 -+++ b/src/external/platform.m4 -@@ -1,5 +1,5 @@ - AC_ARG_WITH([os], -- [AC_HELP_STRING([--with-os=OS_TYPE], [Type of your operation system (fedora|redhat|suse|gentoo)])] -+ [AC_HELP_STRING([--with-os=OS_TYPE], [Type of your operation system (fedora|redhat|suse|gentoo|alpine)])] - ) - osname="" - if test x"$with_os" != x ; then -@@ -7,6 +7,7 @@ if test x"$with_os" != x ; then - test x"$with_os" = xredhat || \ - test x"$with_os" = xsuse || \ - test x"$with_os" = xgentoo || \ -+ test x"$with_os" = xalpine || \ - test x"$with_os" = xdebian ; then - osname=$with_os - else -@@ -25,6 +26,8 @@ if test x"$osname" = x ; then - osname="debian" - elif test -f /etc/gentoo-release ; then - osname="gentoo" -+ elif test -f /etc/alpine-release ; then -+ osname="alpine" - fi - - AC_MSG_NOTICE([Detected operating system type: $osname]) -@@ -35,6 +38,7 @@ AM_CONDITIONAL([HAVE_REDHAT], [test x"$osname" = xredhat]) - AM_CONDITIONAL([HAVE_SUSE], [test x"$osname" = xsuse]) - AM_CONDITIONAL([HAVE_DEBIAN], [test x"$osname" = xdebian]) - AM_CONDITIONAL([HAVE_GENTOO], [test x"$osname" = xgentoo]) -+AM_CONDITIONAL([HAVE_ALPINE], [test x"$osname" = xalpine]) - - AS_CASE([$osname], - [redhat], [AC_DEFINE_UNQUOTED([HAVE_REDHAT], 1, [Build with redhat config])], -diff --git a/src/sysv/alpine/sssd.in b/src/sysv/alpine/sssd.in -new file mode 100644 -index 000000000..597bf8ce9 ---- /dev/null -+++ b/src/sysv/alpine/sssd.in -@@ -0,0 +1,17 @@ -+#!/sbin/openrc-run -+ -+depend(){ -+ need localmount netmount clock -+} -+ -+start(){ -+ ebegin "Starting sssd" -+ start-stop-daemon --start --exec ${exec_prefix}/usr/sbin/sssd -- -Df ${SSSD_OPTIONS} -+ eend ${?} -+} -+ -+stop(){ -+ ebegin "Stopping sssd" -+ start-stop-daemon --stop --pidfile ${prefix}/var/run/sssd.pid -+ eend ${?} -+} --- -2.27.0 - diff --git a/unmaintained/sssd/APKBUILD b/unmaintained/sssd/APKBUILD deleted file mode 100644 index cdb9a4de10..0000000000 --- a/unmaintained/sssd/APKBUILD +++ /dev/null @@ -1,118 +0,0 @@ -# Contributor: Vince Mele <vmele@inoc.com> -# Contributor: Henrik Riomar <henrik.riomar@gmail.com> -# Maintainer: Vince Mele <vmele@inoc.com> -pkgname=sssd -pkgver=1.16.5 -pkgrel=1 -pkgdesc="System Security Services Daemon" -url="https://pagure.io/SSSD/sssd" -arch="x86_64" -license="GPL-3.0-or-later" - -# TODO: the full test suite depends on these -# but does not pass. -#checkdepends=" -# check-dev -# cmocka-dev -# " - -depends=" - bind - curl - cyrus-sasl-gssapiv2 - " -makedepends=" - autoconf - automake - bind-tools - c-ares-dev - curl-dev - dbus-dev - ding-libs-dev - docbook-xsl - gettext-dev - glib-dev - http-parser-dev - jansson-dev - keyutils-dev - krb5-dev - ldb-dev - libtool - libxml2-utils - libxslt - linux-pam-dev - nss-dev - openldap-dev - pcre-dev - popt-dev - python3-dev - talloc-dev - tdb-dev - tevent-dev - " -subpackages="$pkgname-dev $pkgname-openrc" -source="https://releases.pagure.org/SSSD/sssd/sssd-$pkgver.tar.gz - 0001-makefile.patch - 0002-src.patch - 0003-alpine.patch - nss.h - cifsidmap.h - " -prepare() { - default_prepare - cp "$srcdir"/nss.h "$srcdir"/cifsidmap.h "$builddir"/src/ - autoreconf -i -} - -build() { - ./configure \ - --prefix=/usr \ - --sbindir=/usr/sbin \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --libexecdir=/usr/lib/sssd \ - --datadir=/usr/share \ - --enable-pammoddir=/usr/lib/security \ - --with-pid-path=/run \ - --with-initscript=sysv \ - --with-init-dir=/etc/init.d \ - --with-os=alpine \ - --disable-cifs-idmap-plugin \ - --disable-rpath \ - --disable-static \ - --without-autofs \ - --without-manpages \ - --without-nfsv4-idmapd-plugin \ - --without-python2-bindings \ - --without-samba \ - --without-selinux \ - --without-semanage \ - --without-ssh - make -} - -check() { - make check -} - -package() { - make -j1 DESTDIR="$pkgdir" install - - # Remove files we don't want to package - find "$pkgdir" -name '*.la' -delete - find "$pkgdir" -name '*.pyc' -delete - find "$pkgdir" -name '*.egg-info' -delete - - # pkgdir will allways be set, so silence shellsheck warning: - # SC2115: Use "${var:?}" to ensure this never expands to /usr/share . - # shellcheck disable=SC2115 - rm -r "$pkgdir"/usr/share - rm -r "$pkgdir"/run -} - -sha512sums="3a3bcbe7707b92e4e84414e19b896153d634745bfe53957a5c916b78b292c05d1f2381346552bf98a4a7bd1f12e68d6d7cabdaabbe8df78973d2a1ad6bf7e38f sssd-1.16.5.tar.gz -cc1d2c5f8b5efc1b0cde720764607382c0ae5657847ec59ab941ff4fb2414ce01396a72cf42c06c038389189f751711bd8fb0aaabe83ee827e2d1ec0bfc1dd4b 0001-makefile.patch -24f6573bb06ace5b66724212c855b53459339a706b130ae5a4fcb997f4f06f1f9069c008b142bbc48618c72a49d16cbec550806a128b9392b793cb4d83d3413d 0002-src.patch -2edf2c7931afdcfc2a617a982315272a334af53c87ae7d8a057ca8acb1fbfe154ca46b6053f3a3cc237e8f54f8f7d05254686ed50b9b2f274e0bb06971e2be06 0003-alpine.patch -5abb1ffd1302eaa25736404ae148c0ffdeb7ce42fa2745be3436e887a2aa96b9620287f19b2790cb59cbccc2c04a9dee1adec4fa8e813d322cde82793500e33b nss.h -b88d4f1ba847477783b43542f1248881d4fb8e8a0d4165c65c358fcb442891d2cc7c96b05e2a8e7c05fdc17ecd76f16295c1ffac3f1c9bfd0375c5e65e56201d cifsidmap.h" diff --git a/unmaintained/sssd/cifsidmap.h b/unmaintained/sssd/cifsidmap.h deleted file mode 100644 index e13083b199..0000000000 --- a/unmaintained/sssd/cifsidmap.h +++ /dev/null @@ -1,160 +0,0 @@ -/* - * ID Mapping Plugin interface for cifs-utils - * Copyright (C) 2012 Jeff Layton (jlayton@samba.org) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#include <stdint.h> - -#include <sys/types.h> - -#ifndef _CIFSIDMAP_H -#define _CIFSIDMAP_H - -#define NUM_AUTHS (6) /* number of authority fields */ -#define SID_MAX_SUB_AUTHORITIES (15) /* max number of sub authority fields */ - -/* - * Binary representation of a SID as presented to/from the kernel. Note that - * the sub_auth field is always stored in little-endian here. - */ -struct cifs_sid { - uint8_t revision; /* revision level */ - uint8_t num_subauth; - uint8_t authority[NUM_AUTHS]; - uint32_t sub_auth[SID_MAX_SUB_AUTHORITIES]; -} __attribute__((packed)); - - -/* - * The type of the ID stored within cifs_uxid. UNKNOWN generally means that - * the mapping failed for some reason. BOTH means that the ID is usable as - * either a UID or a GID -- IOW, the UID and GID namespaces are unity-mapped. - */ -#define CIFS_UXID_TYPE_UNKNOWN (0) /* mapping type is unknown */ -#define CIFS_UXID_TYPE_UID (1) /* mapping is a UID */ -#define CIFS_UXID_TYPE_GID (2) /* mapping is a GID */ -#define CIFS_UXID_TYPE_BOTH (3) /* usable as UID or GID */ - -/* This struct represents a uid or gid and its type */ -struct cifs_uxid { - union { - uid_t uid; - gid_t gid; - } id; - unsigned char type; -} __attribute__((packed)); - -/* - * Plugins should implement the following functions: - */ - -/** - * cifs_idmap_init_plugin - Initialize the plugin interface - * @handle - return pointer for an opaque handle - * @errmsg - pointer to error message pointer - * - * This function should do whatever is required to establish a context - * for later ID mapping operations. The "handle" is an opaque context - * cookie that will be passed in on subsequent ID mapping operations. - * The errmsg is used to pass back an error string both during the init - * and in subsequent idmapping functions. On any error, the plugin - * should point *errmsg at a string describing that error. Returns 0 - * on success and non-zero on error. - */ -extern int cifs_idmap_init_plugin(void **handle, const char **errmsg); - -/** - * cifs_idmap_exit_plugin - Destroy an idmapping context - * @handle - context handle that should be destroyed - * - * When programs are finished with the idmapping plugin, they'll call - * this function to destroy any context that was created during the - * init_plugin. The handle passed back in was the one given by the init - * routine. - */ -extern void cifs_idmap_exit_plugin(void *handle); - -/** - * cifs_idmap_sid_to_str - convert cifs_sid to a string - * @handle - context handle - * @sid - pointer to a cifs_sid - * @name - return pointer for the name - * - * This function should convert the given cifs_sid to a string - * representation or mapped name in a heap-allocated buffer. The caller - * of this function is expected to free "name" on success. Returns 0 on - * success and non-zero on error. On error, the errmsg pointer passed - * in to the init_plugin function should point to an error string. The - * caller will not free the error string. - */ -extern int cifs_idmap_sid_to_str(void *handle, const struct cifs_sid *sid, - char **name); - -/** - * cifs_idmap_str_to_sid - convert string to struct cifs_sid - * @handle - context handle - * @name - pointer to name string to be converted - * @sid - pointer to struct cifs_sid where result should go - * - * This function converts a name string or string representation of - * a SID to a struct cifs_sid. The cifs_sid should already be - * allocated. Returns 0 on success and non-zero on error. On error, the - * plugin should reset the errmsg pointer passed to the init_plugin - * function to an error string. The caller will not free the error string. - */ -extern int cifs_idmap_str_to_sid(void *handle, const char *name, - struct cifs_sid *sid); - -/** - * cifs_idmap_sids_to_ids - convert struct cifs_sids to struct cifs_uxids - * @handle - context handle - * @sid - pointer to array of struct cifs_sids to be converted - * @num - number of sids to be converted - * @cuxid - pointer to preallocated array of struct cifs_uxids for return - * - * This function should map an array of struct cifs_sids to an array of - * struct cifs_uxids. - * - * Returns 0 if at least one conversion was successful and non-zero on error. - * Any that were not successfully converted will have a cuxid->type of - * CIFS_UXID_TYPE_UNKNOWN. - * - * On any error, the plugin should reset the errmsg pointer passed to the - * init_plugin function to an error string. The caller will not free the error - * string. - */ -extern int cifs_idmap_sids_to_ids(void *handle, const struct cifs_sid *sid, - const size_t num, struct cifs_uxid *cuxid); - -/** - * cifs_idmap_ids_to_sids - convert uid to struct cifs_sid - * @handle - context handle - * @cuxid - pointer to array of struct cifs_uxid to be converted to SIDs - * @num - number of cifs_uxids to be converted to SIDs - * @sid - pointer to preallocated array of struct cifs_sid where results - * should be stored - * - * This function should map an array of cifs_uxids an array of struct cifs_sids. - * Returns 0 if at least one conversion was successful and non-zero on error. - * Any sids that were not successfully converted should have their revision - * number set to 0. - * - * On any error, the plugin should reset the errmsg pointer passed to the - * init_plugin function to an error string. The caller will not free the error - * string. - */ -extern int cifs_idmap_ids_to_sids(void *handle, const struct cifs_uxid *cuxid, - const size_t num, struct cifs_sid *sid); -#endif /* _CIFSIDMAP_H */ diff --git a/unmaintained/sssd/nss.h b/unmaintained/sssd/nss.h deleted file mode 100644 index e15ee3ee34..0000000000 --- a/unmaintained/sssd/nss.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef NSS__H -#define NSS__H - -#include <nss/nss.h> - -enum nss_status -{ - NSS_STATUS_TRYAGAIN = -2, - NSS_STATUS_UNAVAIL = -1, - NSS_STATUS_NOTFOUND = 0, - NSS_STATUS_SUCCESS = 1, - NSS_STATUS_RETURN = 2 -}; - -#endif diff --git a/unmaintained/st-xrdb/APKBUILD b/unmaintained/st-xrdb/APKBUILD new file mode 100644 index 0000000000..f0185c3734 --- /dev/null +++ b/unmaintained/st-xrdb/APKBUILD @@ -0,0 +1,37 @@ +# Base-Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Base-Maintainer: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: +pkgname=st-xrdb +pkgname_base=st +pkgver=0.8.4 +pkgrel=0 +pkgdesc="Simple terminal emulator for X, with X resource support" +url="https://st.suckless.org" +arch="all" +license="MIT" +depends="ncurses-terminfo" +makedepends="fontconfig-dev freetype-dev libx11-dev libxext-dev libxft-dev" +subpackages="$pkgname-doc $pkgname-dbg" +source="https://dl.suckless.org/$pkgname_base/$pkgname_base-$pkgver.tar.gz + st-xresources-20200604-9ba7ecf.patch" +options="!check" +builddir="$srcdir/$pkgname_base-$pkgver" + +prepare() { + default_prepare + cd "$builddir" + sed -i '/tic/d' Makefile +} + +build() { + make -C "$builddir" +} + +package() { + cd "$builddir" + + make install PREFIX=/usr DESTDIR="$pkgdir" +} + +sha512sums="f6f95081f9d09d442228bac1149d75d36a9f4f049b5504cf5ce00b353563ff92c62a2628ce728663fec107a14bea0eeb22b7a72804c37090de33819243d7512a st-0.8.4.tar.gz +1d3a9e780e76b19ea123948973d80d8c1f5a691c31c3e45ac62813d7d6b1c82fc3c170e7437615b4555d078835bc8065a06b758a9177b327119cf645f5d05736 st-xresources-20200604-9ba7ecf.patch" diff --git a/unmaintained/st-xrdb/st-xresources-20200604-9ba7ecf.patch b/unmaintained/st-xrdb/st-xresources-20200604-9ba7ecf.patch new file mode 100644 index 0000000000..78ba00aecb --- /dev/null +++ b/unmaintained/st-xrdb/st-xresources-20200604-9ba7ecf.patch @@ -0,0 +1,184 @@ +From 2752a599ee01305a435729bfacf43b1dde7cf0ef Mon Sep 17 00:00:00 2001 +From: Benji Encalada Mora <benji@encalada.dev> +Date: Thu, 4 Jun 2020 00:41:10 -0500 +Subject: [PATCH] fix: replace xfps and actionfps variables + +--- + config.def.h | 36 ++++++++++++++++++++++++ + x.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++++--- + 2 files changed, 110 insertions(+), 4 deletions(-) + +diff --git a/config.def.h b/config.def.h +index 6f05dce..9b99782 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -168,6 +168,42 @@ static unsigned int defaultattr = 11; + */ + static uint forcemousemod = ShiftMask; + ++/* ++ * Xresources preferences to load at startup ++ */ ++ResourcePref resources[] = { ++ { "font", STRING, &font }, ++ { "color0", STRING, &colorname[0] }, ++ { "color1", STRING, &colorname[1] }, ++ { "color2", STRING, &colorname[2] }, ++ { "color3", STRING, &colorname[3] }, ++ { "color4", STRING, &colorname[4] }, ++ { "color5", STRING, &colorname[5] }, ++ { "color6", STRING, &colorname[6] }, ++ { "color7", STRING, &colorname[7] }, ++ { "color8", STRING, &colorname[8] }, ++ { "color9", STRING, &colorname[9] }, ++ { "color10", STRING, &colorname[10] }, ++ { "color11", STRING, &colorname[11] }, ++ { "color12", STRING, &colorname[12] }, ++ { "color13", STRING, &colorname[13] }, ++ { "color14", STRING, &colorname[14] }, ++ { "color15", STRING, &colorname[15] }, ++ { "background", STRING, &colorname[256] }, ++ { "foreground", STRING, &colorname[257] }, ++ { "cursorColor", STRING, &colorname[258] }, ++ { "termname", STRING, &termname }, ++ { "shell", STRING, &shell }, ++ { "minlatency", INTEGER, &minlatency }, ++ { "maxlatency", INTEGER, &maxlatency }, ++ { "blinktimeout", INTEGER, &blinktimeout }, ++ { "bellvolume", INTEGER, &bellvolume }, ++ { "tabspaces", INTEGER, &tabspaces }, ++ { "borderpx", INTEGER, &borderpx }, ++ { "cwscale", FLOAT, &cwscale }, ++ { "chscale", FLOAT, &chscale }, ++}; ++ + /* + * Internal mouse shortcuts. + * Beware that overloading Button1 will disable the selection. +diff --git a/x.c b/x.c +index 210f184..76f167f 100644 +--- a/x.c ++++ b/x.c +@@ -14,6 +14,7 @@ + #include <X11/keysym.h> + #include <X11/Xft/Xft.h> + #include <X11/XKBlib.h> ++#include <X11/Xresource.h> + + char *argv0; + #include "arg.h" +@@ -45,6 +46,19 @@ typedef struct { + signed char appcursor; /* application cursor */ + } Key; + ++/* Xresources preferences */ ++enum resource_type { ++ STRING = 0, ++ INTEGER = 1, ++ FLOAT = 2 ++}; ++ ++typedef struct { ++ char *name; ++ enum resource_type type; ++ void *dst; ++} ResourcePref; ++ + /* X modifiers */ + #define XK_ANY_MOD UINT_MAX + #define XK_NO_MOD 0 +@@ -828,8 +842,8 @@ xclear(int x1, int y1, int x2, int y2) + void + xhints(void) + { +- XClassHint class = {opt_name ? opt_name : termname, +- opt_class ? opt_class : termname}; ++ XClassHint class = {opt_name ? opt_name : "st", ++ opt_class ? opt_class : "St"}; + XWMHints wm = {.flags = InputHint, .input = 1}; + XSizeHints *sizeh; + +@@ -1104,8 +1118,6 @@ xinit(int cols, int rows) + pid_t thispid = getpid(); + XColor xmousefg, xmousebg; + +- if (!(xw.dpy = XOpenDisplay(NULL))) +- die("can't open display\n"); + xw.scr = XDefaultScreen(xw.dpy); + xw.vis = XDefaultVisual(xw.dpy, xw.scr); + +@@ -1964,6 +1976,59 @@ run(void) + } + } + ++int ++resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst) ++{ ++ char **sdst = dst; ++ int *idst = dst; ++ float *fdst = dst; ++ ++ char fullname[256]; ++ char fullclass[256]; ++ char *type; ++ XrmValue ret; ++ ++ snprintf(fullname, sizeof(fullname), "%s.%s", ++ opt_name ? opt_name : "st", name); ++ snprintf(fullclass, sizeof(fullclass), "%s.%s", ++ opt_class ? opt_class : "St", name); ++ fullname[sizeof(fullname) - 1] = fullclass[sizeof(fullclass) - 1] = '\0'; ++ ++ XrmGetResource(db, fullname, fullclass, &type, &ret); ++ if (ret.addr == NULL || strncmp("String", type, 64)) ++ return 1; ++ ++ switch (rtype) { ++ case STRING: ++ *sdst = ret.addr; ++ break; ++ case INTEGER: ++ *idst = strtoul(ret.addr, NULL, 10); ++ break; ++ case FLOAT: ++ *fdst = strtof(ret.addr, NULL); ++ break; ++ } ++ return 0; ++} ++ ++void ++config_init(void) ++{ ++ char *resm; ++ XrmDatabase db; ++ ResourcePref *p; ++ ++ XrmInitialize(); ++ resm = XResourceManagerString(xw.dpy); ++ if (!resm) ++ return; ++ ++ db = XrmGetStringDatabase(resm); ++ for (p = resources; p < resources + LEN(resources); p++) ++ resource_load(db, p->name, p->type, p->dst); ++} ++ + void + usage(void) + { +@@ -2037,6 +2102,11 @@ run: + + setlocale(LC_CTYPE, ""); + XSetLocaleModifiers(""); ++ ++ if(!(xw.dpy = XOpenDisplay(NULL))) ++ die("Can't open display\n"); ++ ++ config_init(); + cols = MAX(cols, 1); + rows = MAX(rows, 1); + tnew(cols, rows); +-- +2.26.2 + diff --git a/unmaintained/tcolors/APKBUILD b/unmaintained/tcolors/APKBUILD new file mode 100644 index 0000000000..9d821d7bbc --- /dev/null +++ b/unmaintained/tcolors/APKBUILD @@ -0,0 +1,25 @@ +# Contributor: Joe Searle <joe@jsearle.net> +# Maintainer: Joe Searle <joe@jsearle.net> +pkgname=tcolors +pkgver=0.3.1 +pkgrel=2 +pkgdesc="Commandline color picker and palette builder" +url="https://github.com/bcicen/tcolors" +arch="" +license="MIT" +makedepends="go" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/bcicen/tcolors/archive/v$pkgver.tar.gz" +options="!check" # No tests + +build() { + go mod download + go build -ldflags "-w -X main.version=${pkgver}-${pkgrel} -X main.build=$pkgbuild" -o tcolors +} + +package() { + install -Dm755 tcolors "${pkgdir}/usr/bin/tcolors" + install -Dm644 docs/man1/tcolors.1 "$pkgdir/usr/share/man/man1/${pkgname}.1" +} + +sha512sums="ec492f93ca819140b8b933d57c6e352eecd67e3c9c8f404d87f63a191bed92290ab13730cf311697952a581a83671562937150bd450a5a58aedb2add3b83a670 tcolors-0.3.1.tar.gz" diff --git a/unmaintained/textadept/APKBUILD b/unmaintained/textadept/APKBUILD new file mode 100644 index 0000000000..1b317c4e03 --- /dev/null +++ b/unmaintained/textadept/APKBUILD @@ -0,0 +1,75 @@ +# Maintainer: Bradley Saulteaux <~@bradso.to> +pkgname=textadept +pkgver=10.3 +_pkgver=e7c3dfab62a7 +_scintver=8b888bf05fe3 +_gtdver=988719013a6a +_luaver=5.3.5 +_lpegver=1.0.1 +_lfsver=1_7_0_2 +_cdkver=5.0-20150928 +_tkver=0.20 +pkgrel=0 +pkgdesc="A fast, minimalist, and remarkably extensible cross-platform text editor" +url="https://foicica.com/textadept/" +arch="all !riscv64" +license="MIT" +depends="gtk+2.0" +makedepends="curl ncurses-dev gtk+2.0-dev lua5.3-dev cloc" +install="" +options="!check" +subpackages="${pkgname}-curses" +source="${pkgname}-${pkgver}.zip::https://foicica.com/hg/${pkgname}/archive/${_pkgver}.zip + http://foicica.com/hg/scintilla/archive/${_scintver}.zip + http://foicica.com/hg/gtdialog/archive/${_gtdver}.zip + http://www.lua.org/ftp/lua-${_luaver}.tar.gz + http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-${_lpegver}.tar.gz + http://github.com/keplerproject/luafilesystem/archive/v${_lfsver}.tar.gz + http://invisible-mirror.net/archives/cdk/cdk-${_cdkver}.tgz + http://www.leonerd.org.uk/code/libtermkey/libtermkey-${_tkver}.tar.gz + " +builddir="$srcdir/${pkgname}-${_pkgver}/src" + +prepare() { + default_prepare + mv ../../scintilla-${_scintver} scintilla + patch -d scintilla -N -p1 < scintilla.patch + mv ../../gtdialog-${_gtdver} gtdialog + mv ../../lua-${_luaver} lua + patch -d lua -N -p1 < lua.patch + mkdir lua/src/lib + mv ../../lpeg-${_lpegver}/* lua/src/lib/ + mv ../../luafilesystem-${_lfsver}/src/* lua/src/lib/ + mv ../../cdk-${_cdkver} cdk + mv cdk/include/*.h cdk/ + patch -d cdk -N -p1 < cdk.patch + mv ../../libtermkey-${_tkver} termkey + patch -d termkey -N -p1 < termkey.patch +} + +build() { + make CFLAGS="${CFLAGS} -I/usr/include/lua5.3" CXXFLAGS="${CXXFLAGS} -I/usr/include/lua5.3" + make CFLAGS="${CFLAGS} -I/usr/include/lua5.3" CXXFLAGS="${CXXFLAGS} -I/usr/include/lua5.3" ${pkgname}-curses +} + +curses() { + depends="ncurses-libs" + mkdir -p "$subpkgdir"/usr/bin + mkdir -p "$subpkgdir"/usr/share/applications/ + mv "$srcdir/${pkgname}-${_pkgver}/${pkgname}-curses" "$subpkgdir"/usr/bin/ + rm "$builddir/${subpkgname}.desktop" +} + +package() { + make WGET=":" DESTDIR="$pkgdir" PREFIX="/usr" install + chmod -x "$pkgdir"/usr/share/applications/*.desktop + rm "$pkgdir"/usr/share/applications/${pkgname}-curses.desktop +} +sha512sums="58c5824df2f16a730d420ed2f331b7e9c7aff1330d58b8a68c46ef90f736acdfc7b9d770bbce02aa7eb0afdd5c2b3967650ebf23f652645d676f536cafaea9a2 textadept-10.3.zip +a7bb469b9d2a34a951b7cf8907d890e609a3d1117f5b6952f8da233cef7cfc519a330cfe22abb3ca50a5d64e4028ebef968fa555f573712643a55ac142d47853 8b888bf05fe3.zip +df7e86317fc9c4113c4699993be799efc9cb9c8f50d9415ceed9218a0d331a086c9a04853aba8f0fdc6ca45b1009d8bf19096fac216686afa02f560fea6eafb9 988719013a6a.zip +4f9516acc4659dfd0a9e911bfa00c0788f0ad9348e5724fe8fb17aac59e9c0060a64378f82be86f8534e49c6c013e7488ad17321bafcc787831d3d67406bd0f4 lua-5.3.5.tar.gz +7b43fbee7eff443000986684bc56bba6d2796a31cf860740746c70e155bdea1b62a46b93f97e2747e3ef0f63e965148778ac2985d0f2d83e1e37ec4ebbabf4aa lpeg-1.0.1.tar.gz +a1d4d077776e57cd878dbcd21656da141ea3686c587b5420a2b039aeaf086b7e7d05d531ee1cc2bbd7d06660d1315b09593e52143f6711f033ce8eecdc550511 v1_7_0_2.tar.gz +5774e28d91edd477854e30eb456b7725987e82ec27f5cf055c1d1e46581e11d2958bafbac408124f274bf7454be68476d18643a265df7c74b8f43eb1895bf19d cdk-5.0-20150928.tgz +81a4bc5917c60ca692ec3065ac0252ae5dc1adccc2832be1c83c82318c97473d883900ab88a8a0ee08ab3f831ff07f3a4827ee3d8e936a3a42c4708ee58f6301 libtermkey-0.20.tar.gz" diff --git a/unmaintained/tiny-ec2-bootstrap/APKBUILD b/unmaintained/tiny-ec2-bootstrap/APKBUILD new file mode 100644 index 0000000000..2a5dfdd1e7 --- /dev/null +++ b/unmaintained/tiny-ec2-bootstrap/APKBUILD @@ -0,0 +1,22 @@ +# Contributor: Jake Buchholz <tomalok@gmail.com> +# Contributor: Mike Crute <mike@crute.us> +# Maintainer: Mike Crute <mike@crute.us> +pkgname=tiny-ec2-bootstrap +pkgver=1.4.3 +pkgrel=1 +pkgdesc="A tiny EC2 instance bootstrapper that uses instance metadata" +url="https://gitlab.alpinelinux.org/alpine/cloud/tiny-ec2-bootstrap" +arch="noarch" +license="MIT" +options="!check" # no tests provided +depends="openrc e2fsprogs-extra partx sfdisk" +source="https://gitlab.alpinelinux.org/alpine/cloud/tiny-ec2-bootstrap/-/archive/release-$pkgver/tiny-ec2-bootstrap-release-$pkgver.tar.gz" +builddir="$srcdir/$pkgname-release-$pkgver" + +package() { + make PREFIX=$pkgdir install +} + +sha512sums=" +6b15eaae722975b5f9deb6650cfd2319a37cab24084c3638ee3264e7784637cadfda863777909fc2cb09f1c27755082591b645342da697be040687da7a9936f3 tiny-ec2-bootstrap-release-1.4.3.tar.gz +" diff --git a/unmaintained/traefik/APKBUILD b/unmaintained/traefik/APKBUILD deleted file mode 100644 index 97623b1b85..0000000000 --- a/unmaintained/traefik/APKBUILD +++ /dev/null @@ -1,76 +0,0 @@ -# Contributor: Joe Holden <jwh@zorins.us> -# Contributor: Michał Polański <michal@polanski.me> -# Maintainer: -pkgname=traefik -pkgver=2.4.9 -pkgrel=0 -pkgdesc="The Cloud Native Edge Router" -url="https://traefik.io/" -arch="all" -arch="$arch !x86 !armhf !armv7 !s390x" # failing tests -license="MIT" -makedepends="go go-bindata libcap" -install="$pkgname.pre-install" -pkgusers="$pkgname" -pkggroups="$pkgname" -subpackages="$pkgname-openrc" -options="chmod-clean" -source="$pkgname-$pkgver.tar.gz::https://github.com/containous/traefik/releases/download/v$pkgver/traefik-v$pkgver.src.tar.gz - traefik.initd - traefik.confd - traefik.toml - rate-limiter-test.patch - " -builddir="$srcdir" - -_codename=livarot -_build_timestamp=$(date -u "+%Y-%m-%dT%TZ" ${SOURCE_DATE_EPOCH:+-d @$SOURCE_DATE_EPOCH}) - -# secfixes: -# 2.2.8-r0: -# - CVE-2020-15129 - -build() { - go generate - go build \ - -ldflags " - -X github.com/containous/traefik/v2/pkg/version.Version=$pkgver - -X github.com/containous/traefik/v2/pkg/version.Codename=$_codename - -X github.com/containous/traefik/v2/pkg/version.BuildDate=$_build_timestamp - " \ - -v -o bin/$pkgname \ - ./cmd/$pkgname -} - -check() { - # unit tests - go test ./... - - # integration tests - cd integration - go test -integration ./... - - # ensure correct version codename - local codename_from_ci=$(grep "CODENAME" "$builddir"/.travis.yml | cut -d= -f2) - [ "$_codename" = "$codename_from_ci" ] || die "new codename: $codename_from_ci" -} - -package() { - install -Dm755 bin/$pkgname "$pkgdir"/usr/sbin/$pkgname - setcap cap_net_bind_service=+ep "$pkgdir"/usr/sbin/$pkgname - - install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname - - install -dm750 -o $pkgname -g $pkgname "$pkgdir"/etc/$pkgname - install -m644 -o $pkgname -g $pkgname "$srcdir"/traefik.toml \ - "$pkgdir"/etc/$pkgname/$pkgname.toml -} - -sha512sums=" -e5c6a288c66ec2af46973909adf4825ca01a5aca53f9cd8a5904c6c9e817ec1a95f15e47e27375c18d14550f1c050365886d7e3510f45104f4f9501b0ffc858b traefik-2.4.9.tar.gz -563175a94d31fc6b64729781b5749eb1fd76dd0203a877e605fb2135e4095c29e81dc1f0a708d38d21f9200fa20fd957dd858501a4473d9471f4056a60a9bd7c traefik.initd -872c671a67ef050cd5e798a1190653fede4e499dd29123a073e49ae551b308ac43b11973f472eef1a36775bdfbcbcd3926956b68d8362f8c5674d117b2f36dd4 traefik.confd -66e1c40bf75294509c55b397c5a505e11fd0423e60e2cf9a75fc8419f12fa16ae850472ebba809db406a53c6a603ab586fb6648c4e92ab884f781b39e1a575d7 traefik.toml -f50dc2051cb6366a84fe89f88bb55b5d02d5010ecd6241650cd8241db2de1edcc9aba68ae9c8aa4b22f68bdb818ffd186c70e382df39d54a00f7a0f08ea8bc61 rate-limiter-test.patch -" diff --git a/unmaintained/traefik/rate-limiter-test.patch b/unmaintained/traefik/rate-limiter-test.patch deleted file mode 100644 index 179bbe0af8..0000000000 --- a/unmaintained/traefik/rate-limiter-test.patch +++ /dev/null @@ -1,27 +0,0 @@ -Reason: Always allow extra leeway in rate limiting tests, -because CI environment variable is not set on the builders. -Upstream: No - -diff --git a/pkg/middlewares/ratelimiter/rate_limiter_test.go b/pkg/middlewares/ratelimiter/rate_limiter_test.go -index 26d18580..9545d5bd 100644 ---- a/pkg/middlewares/ratelimiter/rate_limiter_test.go -+++ b/pkg/middlewares/ratelimiter/rate_limiter_test.go -@@ -5,7 +5,6 @@ import ( - "fmt" - "net/http" - "net/http/httptest" -- "os" - "testing" - "time" - -@@ -323,9 +322,5 @@ func TestRateLimit(t *testing.T) { - } - - func computeMinCount(wantCount int) int { -- if os.Getenv("CI") != "" { -- return wantCount * 60 / 100 -- } -- -- return wantCount * 95 / 100 -+ return wantCount * 60 / 100 - } diff --git a/unmaintained/traefik/traefik.confd b/unmaintained/traefik/traefik.confd deleted file mode 100644 index 287c4da6d3..0000000000 --- a/unmaintained/traefik/traefik.confd +++ /dev/null @@ -1,4 +0,0 @@ -# Configuration for /etc/init.d/traefik - -# Run `traefik --help` to list available options. -traefik_opts="--configFile=/etc/traefik/traefik.toml" diff --git a/unmaintained/traefik/traefik.initd b/unmaintained/traefik/traefik.initd deleted file mode 100644 index 9dfa99b0c3..0000000000 --- a/unmaintained/traefik/traefik.initd +++ /dev/null @@ -1,16 +0,0 @@ -#!/sbin/openrc-run -supervisor=supervise-daemon - -name="Traefik" -description="Modern reverse proxy and load balancer" - -command="/usr/sbin/traefik" -command_args="$traefik_opts" -command_user="traefik:traefik" - -description_healthcheck="Check health status by calling /ping endpoint" -healthcheck_timer=30 - -healthcheck() { - $command healthcheck >/dev/null -} diff --git a/unmaintained/traefik/traefik.pre-install b/unmaintained/traefik/traefik.pre-install deleted file mode 100644 index 6be69bc8ad..0000000000 --- a/unmaintained/traefik/traefik.pre-install +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -addgroup -S traefik 2>/dev/null -adduser -S -H -D -h /var/empty -s /sbin/nologin -G traefik -g traefik traefik 2>/dev/null - -exit 0 diff --git a/unmaintained/traefik/traefik.toml b/unmaintained/traefik/traefik.toml deleted file mode 100644 index 3b2470b6be..0000000000 --- a/unmaintained/traefik/traefik.toml +++ /dev/null @@ -1,30 +0,0 @@ -[global] - checkNewVersion = true - sendAnonymousUsage = true - -[log] - level = "INFO" - -[entryPoints] - [entryPoints.http] - address = ":80" - [entryPoints.https] - address = ":443" - [entryPoints.traefik] - address = "localhost:8080" - -[api] - insecure = true - dashboard = true - -[pilot] - dashboard = false - -[ping] - -#[certificatesResolvers.sample.acme] -# email = "" -# storage = "traefik/acme/account" -# [certificatesResolvers.sample.acme.dnsChallenge] -# provider = "cloudflare" -# delayBeforeCheck = 10 diff --git a/unmaintained/utop/APKBUILD b/unmaintained/utop/APKBUILD deleted file mode 100644 index 1caf571abc..0000000000 --- a/unmaintained/utop/APKBUILD +++ /dev/null @@ -1,118 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: -pkgname=utop -pkgver=2.1.0 -pkgrel=3 -pkgdesc="Universal toplevel for OCaml" -url="https://github.com/diml/utop" -# x86, armhf, s390x, mips, mips64: limited by ocaml aport -arch="all !x86 !armhf !armv7 !s390x !mips !mips64" -license="BSD-3-Clause" -depends=" - ocaml-$pkgname=$pkgver-r$pkgrel - $pkgname-common=$pkgver-r$pkgrel - " -_depends_ocaml=" - ocaml-runtime - ocaml-camomile - ocaml-findlib>=1.7.2 - ocaml-lambda-term - ocaml-lwt - ocaml-lwt_react - ocaml-react - " -makedepends=" - dune - ocaml - ocaml-compiler-libs - ocaml-camomile-dev - ocaml-cppo - ocaml-findlib-dev - ocaml-lambda-term-dev - ocaml-lwt-dev - ocaml-react-dev - opam - " -subpackages=" - $pkgname-full:_full - $pkgname-common:_common:noarch - $pkgname-doc - $pkgname-emacs::noarch - ocaml-$pkgname-dev:_libdev - ocaml-$pkgname:_lib - " -source="$pkgname-$pkgver.tar.bz2::https://github.com/diml/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tbz" -builddir="$srcdir/$pkgname-$pkgver" - -build() { - cd "$builddir" - jbuilder build @install -} - -check() { - cd "$builddir" - jbuilder runtest -} - -package() { - cd "$builddir" - - opam-installer -i \ - --prefix="$pkgdir/usr" \ - --libdir="$pkgdir/usr/lib/ocaml" \ - --docdir="$pkgdir/doc" \ - --mandir="$pkgdir/usr/share/man" \ - $pkgname.install - - # There's just a readme and changelog. - rm -Rf "$pkgdir"/doc - - # Remove annotation files and sources. - cd "$pkgdir"/usr/lib/ocaml/$pkgname - rm -f *.cmt* *.ml -} - -_full() { - pkgdesc="$pkgdesc (non-expunged)" - - _submv usr/bin/utop-full -} - -_common() { - pkgdesc="Common files for utop and utop-full" - depends="" - - _submv usr/share/$pkgname -} - -emacs() { - pkgdesc="utop plugin for Emacs" - depends="$pkgname=$pkgver-r$pkgrel" - install_if="$pkgname=$pkgver-r$pkgrel emacs" - - _submv usr/share/emacs -} - -_libdev() { - pkgdesc="$pkgdesc (development files)" - depends="ocaml-$pkgname=$pkgver-r$pkgrel" - local sitelib="usr/lib/ocaml/$pkgname" - - _submv $sitelib/*.mli -} - -_lib() { - pkgdesc="$pkgdesc (library)" - depends="$_depends_ocaml" - - _submv usr/lib/ocaml -} - -_submv() { - local path="$1" - mkdir -p "$subpkgdir"/${path%/*} - mv "$pkgdir"/$path "$subpkgdir"/${path%/*}/ - rmdir -p "$pkgdir"/${path%/*} 2>/dev/null || true -} - -sha512sums="5c18daad46569fccbaadebd258be8afa5c0499853b026260f12f6dec3b05c77875d555fb538a7008a994d9e4b7731128927a6cc1fece455dfe227954ee12372c utop-2.1.0.tar.bz2" |