diff --git a/font-sony-misc.yaml b/font-sony-misc.yaml new file mode 100644 index 00000000000..aa33f1ea6ea --- /dev/null +++ b/font-sony-misc.yaml @@ -0,0 +1,49 @@ +package: + name: font-sony-misc + version: 1.0.4 + epoch: 0 + description: X.org Sony fonts + copyright: + - license: HPND-sell-variant + +environment: + contents: + packages: + - autoconf + - automake + - bdftopcf + - build-base + - busybox + - ca-certificates-bundle + - encodings + - font-alias + - font-util-dev + - fontconfig + - mkfontscale + +pipeline: + - uses: fetch + with: + expected-sha256: e6b09f823fccb06e0bd0b2062283b6514153323bd8a7486e9c2e3f55ab84946b + uri: https://www.x.org/releases/individual/font/font-sony-misc-${{package.version}}.tar.xz + + - uses: autoconf/configure + with: + opts: | + --with-fontdir=/usr/share/fonts/misc + + - uses: autoconf/make + + - runs: | + make DESTDIR="${{targets.destdir}}" \ + MKFONTDIR=: \ + MKFONTSCALE=: \ + FCCACHE=: \ + install + + - uses: strip + +update: + enabled: true + release-monitor: + identifier: 17217 diff --git a/gpsd.yaml b/gpsd.yaml new file mode 100644 index 00000000000..3b4fe7b2b39 --- /dev/null +++ b/gpsd.yaml @@ -0,0 +1,84 @@ +package: + name: gpsd + version: "3.25" + epoch: 0 + description: GPS daemon + copyright: + - license: BSD-2-Clause + +environment: + contents: + packages: + - asciidoctor + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - libcap-dev + - ncurses-dev + - py3.12-setuptools + - python3 + - python3-dev + - scons + +pipeline: + - uses: fetch + with: + expected-sha256: b368b6a305e3f7a6382d23a0cbfc1d78923060b6b7f54cf7987a73c7b4a9afc2 + uri: https://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${{package.version}}.tar.gz + + - runs: | + mkdir -p pps-tools/sys + cp ./timepps.h pps-tools/sys/ + + - runs: | + CPPFLAGS="$CPPFLAGS -I./pps-tools/ -DHAVE_SYS_TIMEPPS_H" + scons -j${JOBS:-1} \ + prefix=/usr \ + target_python=python3 \ + python_shebang=/usr/bin/python3 \ + dbus_export=no \ + systemd=no + + - runs: | + mkdir -p "${{targets.destdir}}"/etc/init.d + mkdir -p "${{targets.destdir}}"/etc/conf.d + DESTDIR="${{targets.destdir}}" scons install + install -m755 -D ./gpsd.initd "${{targets.destdir}}"/etc/init.d/gpsd + install -m644 -D ./gpsd.confd "${{targets.destdir}}"/etc/conf.d/gpsd + +subpackages: + - name: gpsd-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - gpsd + description: gpsd dev + + - name: gpsd-doc + pipeline: + - uses: split/manpages + description: gpsd manpages + + - name: py3-gpsd + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/bin + for n in gpscat gpsfake gpsprof; do + mv "${{targets.destdir}}"/usr/bin/$n "${{targets.subpkgdir}}"/usr/bin/ + done + description: gpsd library and clients for python + + - name: gpsd-clients + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/bin + mv "${{targets.destdir}}"/usr/bin/* "${{targets.subpkgdir}}"/usr/bin + description: gpsd clients + +update: + enabled: true + release-monitor: + identifier: 6846 diff --git a/gpsd/gpsd.confd b/gpsd/gpsd.confd new file mode 100644 index 00000000000..099be57e18b --- /dev/null +++ b/gpsd/gpsd.confd @@ -0,0 +1,7 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Config file for gpsd server +GPSD_OPTIONS="" +DEVICES="" +GPSD_SOCKET="/var/run/gpsd.sock" \ No newline at end of file diff --git a/gpsd/gpsd.initd b/gpsd/gpsd.initd new file mode 100644 index 00000000000..ec723910140 --- /dev/null +++ b/gpsd/gpsd.initd @@ -0,0 +1,39 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + after dbus + before ntpd + need loopback +} + +PIDFILE=/var/run/${SVCNAME}.pid +DAEMON=/usr/sbin/gpsd + +checkconfig() { + # Note: these GPSD_xxx var names should be kept in sync with the udev rules. + if [ -z "${GPSD_SOCKET}" ] && [ -z "${DEVICES}" ]; then + GPSD_SOCKET="/var/run/gpsd.sock" + fi + + if [ -n "${GPSD_SOCKET}" ]; then + GPSD_OPTIONS="${GPSD_OPTIONS} -F ${GPSD_SOCKET}" + fi +} + +start() { + checkconfig + ebegin "Starting gpsd" + + start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- \ + ${GPSD_OPTIONS} -P ${PIDFILE} ${DEVICES} + eend $? +} + +stop() { + ebegin "Stopping gpsd" + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile ${PIDFILE} + eend $? + rm -f ${PIDFILE} +} \ No newline at end of file diff --git a/gpsd/timepps.h b/gpsd/timepps.h new file mode 100644 index 00000000000..8ce7a75c009 --- /dev/null +++ b/gpsd/timepps.h @@ -0,0 +1,216 @@ +/* + * timepps.h -- PPS API main header + * + * Copyright (C) 2005-2007 Rodolfo Giometti + * Copyright (C) 2009-2011 Alexander Gordeev + * + * 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 2 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. + * + * Source: https://github.com/ago/pps-tools/ - Retreived 2022-09-03 + */ + +#ifndef _SYS_TIMEPPS_H_ +#define _SYS_TIMEPPS_H_ + +#include +#include +#include +#include +#include +#include + +#define LINUXPPS 1 /* signal we are using LinuxPPS */ + +/* + * New data structures + */ + +struct ntp_fp { + unsigned int integral; + unsigned int fractional; +}; + +union pps_timeu { + struct timespec tspec; + struct ntp_fp ntpfp; + unsigned long longpad[3]; +}; + +struct pps_info { + unsigned long assert_sequence; /* seq. num. of assert event */ + unsigned long clear_sequence; /* seq. num. of clear event */ + union pps_timeu assert_tu; /* time of assert event */ + union pps_timeu clear_tu; /* time of clear event */ + int current_mode; /* current mode bits */ +}; + +struct pps_params { + int api_version; /* API version # */ + int mode; /* mode bits */ + union pps_timeu assert_off_tu; /* offset compensation for assert */ + union pps_timeu clear_off_tu; /* offset compensation for clear */ +}; + +typedef int pps_handle_t; /* represents a PPS source */ +typedef unsigned long pps_seq_t; /* sequence number */ +typedef struct ntp_fp ntp_fp_t; /* NTP-compatible time stamp */ +typedef union pps_timeu pps_timeu_t; /* generic data type for time stamps */ +typedef struct pps_info pps_info_t; +typedef struct pps_params pps_params_t; + +#define assert_timestamp assert_tu.tspec +#define clear_timestamp clear_tu.tspec + +#define assert_timestamp_ntpfp assert_tu.ntpfp +#define clear_timestamp_ntpfp clear_tu.ntpfp + +#define assert_offset assert_off_tu.tspec +#define clear_offset clear_off_tu.tspec + +#define assert_offset_ntpfp assert_off_tu.ntpfp +#define clear_offset_ntpfp clear_off_tu.ntpfp + +/* + * The PPS API + */ + +static __inline int time_pps_create(int source, pps_handle_t *handle) +{ + int ret; + struct pps_kparams dummy; + + if (!handle) { + errno = EINVAL; + return -1; + } + + /* First we check if current device is a valid PPS one by + * doing a dummy PPS_GETPARAMS... + */ + ret = ioctl(source, PPS_GETPARAMS, &dummy); + if (ret) { + errno = EOPNOTSUPP; + return -1; + } + + /* ... then since in LinuxPPS there are no differences between a + * "PPS source" and a "PPS handle", we simply return the same value. + */ + *handle = source; + + return 0; +} + +static __inline int time_pps_destroy(pps_handle_t handle) +{ + return close(handle); +} + +static __inline int time_pps_getparams(pps_handle_t handle, + pps_params_t *ppsparams) +{ + int ret; + struct pps_kparams __ppsparams = {}; + + ret = ioctl(handle, PPS_GETPARAMS, &__ppsparams); + + ppsparams->api_version = __ppsparams.api_version; + ppsparams->mode = __ppsparams.mode; + ppsparams->assert_off_tu.tspec.tv_sec = __ppsparams.assert_off_tu.sec; + ppsparams->assert_off_tu.tspec.tv_nsec = __ppsparams.assert_off_tu.nsec; + ppsparams->clear_off_tu.tspec.tv_sec = __ppsparams.clear_off_tu.sec; + ppsparams->clear_off_tu.tspec.tv_nsec = __ppsparams.clear_off_tu.nsec; + + return ret; +} + +static __inline int time_pps_setparams(pps_handle_t handle, + const pps_params_t *ppsparams) +{ + struct pps_kparams __ppsparams = {}; + + __ppsparams.api_version = ppsparams->api_version; + __ppsparams.mode = ppsparams->mode; + __ppsparams.assert_off_tu.sec = ppsparams->assert_off_tu.tspec.tv_sec; + __ppsparams.assert_off_tu.nsec = ppsparams->assert_off_tu.tspec.tv_nsec; + __ppsparams.clear_off_tu.sec = ppsparams->clear_off_tu.tspec.tv_sec; + __ppsparams.clear_off_tu.nsec = ppsparams->clear_off_tu.tspec.tv_nsec; + + return ioctl(handle, PPS_SETPARAMS, &__ppsparams); +} + +/* Get capabilities for handle */ +static __inline int time_pps_getcap(pps_handle_t handle, int *mode) +{ + return ioctl(handle, PPS_GETCAP, mode); +} + +static __inline int time_pps_fetch(pps_handle_t handle, const int tsformat, + pps_info_t *ppsinfobuf, + const struct timespec *timeout) +{ + struct pps_fdata __fdata = {}; + int ret; + + /* Sanity checks */ + if (tsformat != PPS_TSFMT_TSPEC) { + errno = EINVAL; + return -1; + } + + if (timeout) { + __fdata.timeout.sec = timeout->tv_sec; + __fdata.timeout.nsec = timeout->tv_nsec; + } else + __fdata.timeout.flags = PPS_TIME_INVALID; + + ret = ioctl(handle, PPS_FETCH, &__fdata); + + ppsinfobuf->assert_sequence = __fdata.info.assert_sequence; + ppsinfobuf->clear_sequence = __fdata.info.clear_sequence; + ppsinfobuf->assert_tu.tspec.tv_sec = __fdata.info.assert_tu.sec; + ppsinfobuf->assert_tu.tspec.tv_nsec = __fdata.info.assert_tu.nsec; + ppsinfobuf->clear_tu.tspec.tv_sec = __fdata.info.clear_tu.sec; + ppsinfobuf->clear_tu.tspec.tv_nsec = __fdata.info.clear_tu.nsec; + ppsinfobuf->current_mode = __fdata.info.current_mode; + + return ret; +} + +#ifdef PPS_KC_BIND + +static __inline int time_pps_kcbind(pps_handle_t handle, + const int kernel_consumer, + const int edge, const int tsformat) +{ + struct pps_bind_args __bind_args = {}; + + __bind_args.tsformat = tsformat; + __bind_args.edge = edge; + __bind_args.consumer = kernel_consumer; + + return ioctl(handle, PPS_KC_BIND, &__bind_args); +} + +#else /* !PPS_KC_BIND */ + +static __inline int time_pps_kcbind(pps_handle_t handle, + const int kernel_consumer, + const int edge, const int tsformat) +{ + /* LinuxPPS doesn't implement kernel consumer feature */ + errno = EOPNOTSUPP; + return -1; +} + +#endif /* PPS_KC_BIND */ + +#endif /* _SYS_TIMEPPS_H_ */ \ No newline at end of file diff --git a/i2c-tools.yaml b/i2c-tools.yaml new file mode 100644 index 00000000000..14eb204397b --- /dev/null +++ b/i2c-tools.yaml @@ -0,0 +1,63 @@ +package: + name: i2c-tools + version: "4.3" + epoch: 0 + description: Tools for monitoring I2C devices + copyright: + - license: GPL-2.0-or-later AND LGPL-2.1-or-later + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - linux-headers + - py3.12-setuptools + - python3-dev + +pipeline: + - uses: fetch + with: + expected-sha256: b4f63b9f8d74e89a010f1d6e4748659df2f556717dfa273cedc144be451758b9 + uri: https://fossies.org/linux/misc/i2c-tools-${{package.version}}.tar.gz + + - runs: | + make + builddir="$(pwd)" + cd "$builddir"/py-smbus + CFLAGS="$CFLAGS -I$builddir/include" python3 setup.py build + cd $builddir + make install + cd "$builddir"/py-smbus + python3 setup.py install --skip-build --root="${{targets.destdir}}" + + - uses: strip + +subpackages: + - name: i2c-tools-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - i2c-tools + description: i2c-tools dev + + - name: i2c-tools-doc + pipeline: + - uses: split/manpages + description: i2c-tools manpages + + - name: py3-smbus + pipeline: + - runs: | + install -d "${{targets.subpkgdir}}"/usr/lib + mv "${{targets.destdir}}"/usr/lib/python3* "${{targets.subpkgdir}}"/usr/lib + description: i2c-tools python bindings + +update: + enabled: true + release-monitor: + identifier: 9272 diff --git a/libart-lgpl.yaml b/libart-lgpl.yaml new file mode 100644 index 00000000000..1f6a74705e4 --- /dev/null +++ b/libart-lgpl.yaml @@ -0,0 +1,53 @@ +package: + name: libart-lgpl + version: 2.3.21 + epoch: 0 + description: A library for high-performance 2D graphics + copyright: + - license: LGPL-2.0-or-later + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - libtool + +pipeline: + - uses: fetch + with: + expected-sha256: fdc11e74c10fc9ffe4188537e2b370c0abacca7d89021d4d303afdf7fd7476fa + uri: https://download.gnome.org/sources/libart_lgpl/2.3/libart_lgpl-${{package.version}}.tar.bz2 + + - runs: | + libtoolize --force && aclocal && autoconf --force && automake --add-missing + + - runs: autoreconf -vif + + - uses: autoconf/configure + with: + opts: | + --disable-static + + - uses: autoconf/make + + - uses: autoconf/make-install + + - uses: strip + +subpackages: + - name: libart-lgpl-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - libart-lgpl + description: libart-lgpl dev + +update: + enabled: true + release-monitor: + identifier: 21864 diff --git a/libmemcached.yaml b/libmemcached.yaml new file mode 100644 index 00000000000..e81244ceeda --- /dev/null +++ b/libmemcached.yaml @@ -0,0 +1,61 @@ +package: + name: libmemcached + version: 1.1.4 + epoch: 0 + description: Client library and command line tools for memcached server (resurrected) + copyright: + - license: BSD-3-Clause + +environment: + contents: + packages: + - autoconf + - automake + - bison + - build-base + - busybox + - ca-certificates-bundle + - cmake + - cyrus-sasl-dev + - flex + - libevent-dev + - memcached-dev + - samurai + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/awesomized/libmemcached + expected-commit: 92d18858b417309f6bdee6bce464a4f3d6a375fd + tag: ${{package.version}} + + - runs: | + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=ON \ + -DENABLE_SASL=ON + cmake --build build + + - runs: | + DESTDIR="${{targets.destdir}}" cmake --install build + # just junk top-level readme/changelog files from repo + rm -r "${{targets.destdir}}"/usr/share/doc + + - uses: strip + +subpackages: + - name: libmemcached-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - libmemcached + - cyrus-sasl-dev + description: libmemcached dev + +update: + enabled: true + github: + identifier: awesomized/libmemcached + strip-prefix: v diff --git a/libmicrohttpd.yaml b/libmicrohttpd.yaml new file mode 100644 index 00000000000..11d7f943a97 --- /dev/null +++ b/libmicrohttpd.yaml @@ -0,0 +1,62 @@ +package: + name: libmicrohttpd + version: 0.9.77 + epoch: 0 + description: small C library that is supposed to make it easy to run an HTTP server as part of another application + copyright: + - license: LGPL-2.1-or-later + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - gnutls-dev + +pipeline: + - uses: fetch + with: + expected-sha256: 9e7023a151120060d2806a6ea4c13ca9933ece4eacfc5c9464d20edddb76b0a0 + uri: https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-${{package.version}}.tar.gz + + - uses: autoconf/configure + with: + opts: | + --disable-thread-names \ + --enable-largefile \ + --enable-curl \ + --enable-https \ + --enable-messages + + - uses: autoconf/make + + - uses: autoconf/make-install + + - uses: strip + +subpackages: + - name: libmicrohttpd-static + pipeline: + - uses: split/static + description: libmicrohttpd static + + - name: libmicrohttpd-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - libmicrohttpd + description: libmicrohttpd dev + + - name: libmicrohttpd-doc + pipeline: + - uses: split/manpages + description: libmicrohttpd manpages + +update: + enabled: true + release-monitor: + identifier: 1658 diff --git a/libmodbus.yaml b/libmodbus.yaml new file mode 100644 index 00000000000..f7e6f3877e0 --- /dev/null +++ b/libmodbus.yaml @@ -0,0 +1,57 @@ +package: + name: libmodbus + version: 3.1.10 + epoch: 0 + description: Modbus library which supports RTU communication over a serial line or a TCP link + copyright: + - license: LGPL-2.1-or-later + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - libtool + - linux-headers + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/stephane/libmodbus + expected-commit: 2cbafa3113e276c3697d297f68e88d112b53174d + tag: v${{package.version}} + + - runs: ./autogen.sh + + - runs: libtoolize --force && aclocal && autoconf --force && automake --add-missing + + - uses: autoconf/configure + + - uses: autoconf/make + + - uses: autoconf/make-install + + - uses: strip + +subpackages: + - name: libmodbus-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - libmodbus + description: libmodbus dev + + - name: libmodbus-doc + pipeline: + - uses: split/manpages + description: libmodbus manpages + +update: + enabled: true + github: + identifier: stephane/libmodbus + strip-prefix: v diff --git a/liboping.yaml b/liboping.yaml new file mode 100644 index 00000000000..99af452b745 --- /dev/null +++ b/liboping.yaml @@ -0,0 +1,55 @@ +package: + name: liboping + version: 1.10.0 + epoch: 0 + description: A C library to generate ICMP echo requests + copyright: + - license: LGPL-2.0-or-later + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - ncurses-dev + +pipeline: + - uses: fetch + with: + expected-sha256: eb38aa93f93e8ab282d97e2582fbaea88b3f889a08cbc9dbf20059c3779d5cd8 + uri: http://verplant.org/liboping/files/liboping-${{package.version}}.tar.bz2 + + - runs: | + CFLAGS="$CFLAGS -Wno-error" ./configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --without-perl-bindings \ + --disable-static + + - uses: autoconf/make + + - uses: autoconf/make-install + + - uses: strip + +subpackages: + - name: liboping-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - liboping + description: liboping dev + + - name: liboping-doc + pipeline: + - uses: split/manpages + description: liboping manpages + +update: + enabled: true + release-monitor: + identifier: 1695 diff --git a/lm-sensors.yaml b/lm-sensors.yaml new file mode 100644 index 00000000000..e4bcdfb9edb --- /dev/null +++ b/lm-sensors.yaml @@ -0,0 +1,102 @@ +package: + name: lm-sensors + version: 3.6.0 + epoch: 0 + description: Collection of user space tools for general SMBus access and hardware monitoring. + copyright: + - license: LGPL-2.1-or-later AND GPL-2.0-or-later + +environment: + contents: + packages: + - autoconf + - automake + - bash + - bison + - build-base + - busybox + - ca-certificates-bundle + - flex + - perl + - rrdtool-dev + - sysfsutils + +var-transforms: + - from: ${{package.version}} + match: \. + replace: '-' + to: mangled-package-version + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/lm-sensors/lm-sensors + expected-commit: 1667b850a1ce38151dae17156276f981be6fb557 + tag: V${{vars.mangled-package-version}} + + - runs: | + export CFLAGS="$CFLAGS -fno-stack-protector" + make PREFIX=/usr user + + - runs: | + make PROG_EXTRA:=sensord user_install \ + PREFIX=/usr \ + MANDIR=/usr/share/man \ + DESTDIR="${{targets.destdir}}" + + - uses: strip + +subpackages: + - name: lm-sensors-detect + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/bin "${{targets.subpkgdir}}"/usr/sbin + mv "${{targets.destdir}}"/usr/bin/sensors-conf-convert "${{targets.subpkgdir}}"/usr/bin/ + mv "${{targets.destdir}}"/usr/sbin/sensors-detect "${{targets.subpkgdir}}"/usr/bin/ + description: Detection/migration scripts for lm-sensors + + - name: lm-sensors-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - lm-sensors + - sysfsutils + description: lm-sensors dev + + - name: lm-sensors-doc + pipeline: + - uses: split/manpages + description: lm-sensors manpages + + - name: lm-sensors-fancontrol-openrc + pipeline: + - runs: install -Dm755 ./fancontrol.initd "${{targets.subpkgdir}}"/etc/init.d/fancontrol + description: fancontrol daemon (OpenRC init scripts) + + - name: lm-sensors-sensord + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/sbin + mv "${{targets.destdir}}"/usr/sbin/sensord "${{targets.subpkgdir}}"/usr/sbin/sensord + description: sensord daemon + + - name: lm-sensors-sensord-openrc + pipeline: + - runs: | + install -Dm755 ./sensord.initd "${{targets.subpkgdir}}"/etc/init.d/sensord + install -Dm644 ./sensord.confd "${{targets.subpkgdir}}"/etc/conf.d/sensord + description: sensord daemon (OpenRC init scripts) + +update: + enabled: true + version-transform: + - match: \- + replace: . + ignore-regex-patterns: + - POST.* + - i2c.* + github: + identifier: lm-sensors/lm-sensors + use-tag: true + strip-prefix: V diff --git a/lm-sensors/fancontrol.initd b/lm-sensors/fancontrol.initd new file mode 100644 index 00000000000..9a6efcbe44c --- /dev/null +++ b/lm-sensors/fancontrol.initd @@ -0,0 +1,33 @@ +#!/sbin/openrc-run +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/fancontrol-init.d,v 1.1 2007/05/17 07:31:41 phreak Exp $ + +CONFIG=/etc/fancontrol +PID=/var/run/fancontrol.pid + +depend() { + after lm_sensors +} + +checkconfig() { + if [ ! -f ${CONFIG} ]; then + eerror "Configuration file ${CONFIG} not found" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting fancontrol" + start-stop-daemon --start --quiet --background --pidfile ${PID} \ + --exec /usr/sbin/fancontrol -- ${CONFIG} + eend ${?} +} + +stop() { + ebegin "Stopping fancontrol" + start-stop-daemon --stop --pidfile ${PID} + eend ${?} +} \ No newline at end of file diff --git a/lm-sensors/sensord.confd b/lm-sensors/sensord.confd new file mode 100644 index 00000000000..c16d98a73eb --- /dev/null +++ b/lm-sensors/sensord.confd @@ -0,0 +1,3 @@ +# Extra options to pass to the sensord daemon, +# see sensord(8) for more information +SENSORD_OPTIONS="" \ No newline at end of file diff --git a/lm-sensors/sensord.initd b/lm-sensors/sensord.initd new file mode 100644 index 00000000000..c3954216486 --- /dev/null +++ b/lm-sensors/sensord.initd @@ -0,0 +1,33 @@ +#!/sbin/openrc-run +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/sensord-init.d,v 1.1 2007/05/17 07:31:41 phreak Exp $ + +CONFIG=/etc/sensors3.conf + +depend() { + need logger + use lm_sensors +} + +checkconfig() { + if [ ! -f ${CONFIG} ]; then + eerror "Configuration file ${CONFIG} not found" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting sensord" + start-stop-daemon --start --exec /usr/sbin/sensord \ + -- --config-file ${CONFIG} ${SENSORD_OPTIONS} + eend ${?} +} + +stop() { + ebegin "Stopping sensord" + start-stop-daemon --stop --pidfile /var/run/sensord.pid + eend ${?} +} \ No newline at end of file diff --git a/net-snmp.yaml b/net-snmp.yaml new file mode 100644 index 00000000000..88ff11b5dbf --- /dev/null +++ b/net-snmp.yaml @@ -0,0 +1,139 @@ +package: + name: net-snmp + version: 5.9.4 + epoch: 0 + description: Simple Network Management Protocol + copyright: + - license: Net-SNMP + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - file + - linux-headers + - openssl-dev + - perl-dev + - perl-net-snmp + - perl-tk + +pipeline: + - uses: fetch + with: + expected-sha256: 8b4de01391e74e3c7014beb43961a2d6d6fa03acc34280b9585f4930745b0544 + uri: https://downloads.sourceforge.net/net-snmp/net-snmp-${{package.version}}.tar.gz + + - runs: | + export lt_cv_sys_max_cmd_len=8192 + + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-default-snmp-version="3" \ + --with-sys-contact="root@unknown" \ + --with-sys-location="unknown" \ + --with-logfile="/var/log/net-snmpd.log" \ + --enable-ucd-snmp-compatibility \ + --with-persistent-directory="/var/lib/net-snmp" \ + --with-openssl \ + --enable-pic \ + --enable-ipv6 \ + --enable-shared \ + --enable-as-needed \ + --enable-blumenthal-aes \ + --with-perl-modules="INSTALLDIRS=vendor" \ + --disable-embedded-perl + # embedded-perl seems to create TEXTREL's + make + + - uses: autoconf/make-install + + - uses: strip + +subpackages: + - name: net-snmp-doc + pipeline: + - uses: split/manpages + description: net-snmp manpages + + - name: net-snmp-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - net-snmp + - openssl-dev + description: net-snmp dev + # TODO: https://github.com/chainguard-dev/melange/issues/944 + options: + no-provides: true + + - name: net-snmp-libs + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/lib + mkdir -p "${{targets.subpkgdir}}"/usr/share/snmp + mv "${{targets.destdir}}"/usr/lib/libnetsnmp.so.* "${{targets.subpkgdir}}"/usr/lib/ + mv "${{targets.destdir}}"/usr/share/snmp/mibs "${{targets.subpkgdir}}"/usr/share/snmp/ + description: The NET-SNMP runtime client libraries + + - name: net-snmp-agent-libs + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/lib + mv "${{targets.destdir}}"/usr/lib/libnetsnmpagent*.so.* \ + "${{targets.destdir}}"/usr/lib/libnetsnmphelpers*.so.* \ + "${{targets.destdir}}"/usr/lib/libnetsnmpmibs*.so.* \ + "${{targets.destdir}}"/usr/lib/libnetsnmptrapd*.so.* \ + "${{targets.subpkgdir}}"/usr/lib/ + description: The NET-SNMP runtime agent libraries + + - name: net-snmp-perl + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/lib \ + "${{targets.subpkgdir}}"/usr/bin \ + "${{targets.subpkgdir}}"/usr/share/snmp + + mv "${{targets.destdir}}"/usr/bin/mib2c-update \ + "${{targets.destdir}}"/usr/bin/mib2c \ + "${{targets.destdir}}"/usr/bin/snmp-bridge-mib \ + "${{targets.destdir}}"/usr/bin/net-snmp-cert \ + "${{targets.destdir}}"/usr/bin/traptoemail \ + "${{targets.subpkgdir}}"/usr/bin/ + mv "${{targets.destdir}}"/usr/lib/perl* "${{targets.subpkgdir}}"/usr/lib/ + mv "${{targets.destdir}}"/usr/share/snmp/mib2c* \ + "${{targets.destdir}}"/usr/share/snmp/*.pl \ + "${{targets.subpkgdir}}"/usr/share/snmp/ + description: The perl NET-SNMP module and the mib2c tool + + - name: net-snmp-gui + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/bin + mv "${{targets.destdir}}"/usr/bin/tkmib "${{targets.subpkgdir}}"/usr/bin/ + description: An interactive graphical MIB browser for SNMP + dependencies: + runtime: + - net-snmp-perl + - perl-tk + + - name: net-snmp-tools + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr + mv "${{targets.destdir}}"/usr/bin "${{targets.subpkgdir}}"/usr + description: Network management utilities using SNMP + +update: + enabled: true + release-monitor: + identifier: 2062 diff --git a/net-snmp/snmpd.confd b/net-snmp/snmpd.confd new file mode 100644 index 00000000000..4b335c84847 --- /dev/null +++ b/net-snmp/snmpd.confd @@ -0,0 +1,2 @@ +# Default options +# OPTS="-LSwd -Lf /dev/null" \ No newline at end of file diff --git a/net-snmp/snmpd.initd b/net-snmp/snmpd.initd new file mode 100644 index 00000000000..139b49edd5e --- /dev/null +++ b/net-snmp/snmpd.initd @@ -0,0 +1,22 @@ +#!/sbin/openrc-run + +: ${OPTS:="-LSwd -Lf /dev/null"} + +pidfile="/run/${SVCNAME}.pid" +command="/usr/sbin/${SVCNAME}" +command_args="-f -p ${pidfile} ${OPTS}" +command_background="yes" +required_files="/etc/snmp/${SVCNAME}.conf" +extra_started_commands="reload" + +depend() { + use logger + need net + after firewall +} + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile ${pidfile} --name ${SVCNAME} + eend $? +} \ No newline at end of file diff --git a/net-snmp/snmptrapd.confd b/net-snmp/snmptrapd.confd new file mode 100644 index 00000000000..f9475c539d4 --- /dev/null +++ b/net-snmp/snmptrapd.confd @@ -0,0 +1,12 @@ +# extra flags to pass to snmptrapd +OPTS="" + +# ignore authentication failure traps +#OPTS="${OPTS} -a" + +# log messages to specified file +#OPTS="${OPTS} -Lf /var/log/snmptrapd.log" + +# log messages to syslog with the specified facility +# where facility is: 'd' = LOG_DAEMON, 'u' = LOG_USER, [0-7] = LOG_LOCAL[0-7] +#OPTS="${OPTS} -Ls d" \ No newline at end of file diff --git a/owfs.yaml b/owfs.yaml new file mode 100644 index 00000000000..80d1ece26e1 --- /dev/null +++ b/owfs.yaml @@ -0,0 +1,71 @@ +package: + name: owfs + version: 3.2.4 + epoch: 0 + description: OWFS — the one-wire filesystem + copyright: + - license: GPL-2.0-only + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - fuse3-dev + - libtool + - linux-headers + - pkgconf-dev + +# convert version to use p, e.g. 3.2.4 to 3.2p4 +var-transforms: + - from: ${{package.version}} + match: ^(\d+\.\d+)\.(\d+)$ + replace: ${1}p${2} + to: mangled-package-version + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/owfs/owfs + expected-commit: c68deb1fc6d30fcc5eabe0a0d9c9dc2ca54e455a + tag: v${{vars.mangled-package-version}} + + - runs: autoreconf -vif + + - uses: autoconf/configure + with: + opts: | + --with-fuseinclude=/usr/include \ + --with-fuselib=/usr/lib + + - uses: autoconf/make + + - uses: autoconf/make-install + + - uses: strip + +subpackages: + - name: owfs-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - owfs + description: owfs dev + + - name: owfs-doc + pipeline: + - uses: split/manpages + description: owfs manpages + +update: + enabled: true + version-transform: + - match: p(\d+)$ + replace: .$1 + github: + identifier: owfs/owfs + strip-prefix: v diff --git a/perl-net-snmp.yaml b/perl-net-snmp.yaml new file mode 100644 index 00000000000..b3fcb2b1c9c --- /dev/null +++ b/perl-net-snmp.yaml @@ -0,0 +1,47 @@ +package: + name: perl-net-snmp + version: 6.0.1 + epoch: 0 + description: Object oriented interface to SNMP + copyright: + - license: GPL-1.0-or-later OR Artistic-1.0-Perl + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - perl + - perl-dev + - perl-module-build + +pipeline: + - uses: fetch + with: + expected-sha256: 14c37bc1cbb3f3cdc7d6c13e0f27a859f14cdcfd5ea54a0467a88bc259b0b741 + uri: https://cpan.metacpan.org/authors/id/D/DT/DTOWN/Net-SNMP-v${{package.version}}.tar.gz + + - runs: | + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make + + - runs: | + make DESTDIR="${{targets.destdir}}" install + find "${{targets.destdir}}" \( -name perllocal.pod -o -name .packlist \) -delete + + - uses: strip + +subpackages: + - name: perl-net-snmp-doc + pipeline: + - uses: split/manpages + description: perl-net-snmp manpages + +update: + enabled: true + release-monitor: + identifier: 21727 diff --git a/perl-tk.yaml b/perl-tk.yaml new file mode 100644 index 00000000000..d74c14bfc3d --- /dev/null +++ b/perl-tk.yaml @@ -0,0 +1,50 @@ +package: + name: perl-tk + version: "804.036" + epoch: 0 + description: Tk - a Graphical User Interface Toolkit + copyright: + - license: unrestricted + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - file + - libpng-dev + - libx11-dev + - perl + - perl-dev + - zlib-dev + +pipeline: + - uses: fetch + with: + expected-sha256: 32aa7271a6bdfedc3330119b3825daddd0aa4b5c936f84ad74eabb932a200a5e + uri: https://cpan.metacpan.org/authors/id/S/SR/SREZIC/Tk-${{package.version}}.tar.gz + + - runs: | + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make + + - runs: | + make DESTDIR="${{targets.destdir}}" install + find "${{targets.destdir}}" \( -name perllocal.pod -o -name .packlist \) -delete + + - uses: strip + +subpackages: + - name: perl-tk-doc + pipeline: + - uses: split/manpages + description: perl-tk manpages + +update: + enabled: true + release-monitor: + identifier: 3471 diff --git a/riemann-c-client.yaml b/riemann-c-client.yaml new file mode 100644 index 00000000000..e315d7a1bb9 --- /dev/null +++ b/riemann-c-client.yaml @@ -0,0 +1,58 @@ +# Generated from https://git.alpinelinux.org/aports/plain/community/riemann-c-client/APKBUILD +package: + name: riemann-c-client + version: 2.1.0 + epoch: 0 + description: A C client library for the Riemann monitoring system + copyright: + - license: LGPL-3.0-or-later + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - json-c-dev + - libtool + - openssl-dev + - pkgconf-dev + - protobuf-c-dev + +pipeline: + - uses: fetch + with: + expected-sha256: 8a7aea4284e3505716de33d5408698d4c3dc4ba970e94fa11a171bfba2920f53 + uri: https://git.madhouse-project.org/algernon/riemann-c-client/archive/riemann-c-client-${{package.version}}.tar.gz + + - runs: autoreconf -iv + + - uses: autoconf/configure + + - uses: autoconf/make + + - uses: autoconf/make-install + + - uses: strip + +subpackages: + - name: riemann-c-client-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - riemann-c-client + - protobuf-c-dev + description: riemann-c-client dev + + - name: riemann-c-client-doc + pipeline: + - uses: split/manpages + description: riemann-c-client manpages + +update: + enabled: true + release-monitor: + identifier: 21389 diff --git a/rrdtool.yaml b/rrdtool.yaml new file mode 100644 index 00000000000..bab4322aa8a --- /dev/null +++ b/rrdtool.yaml @@ -0,0 +1,146 @@ +package: + name: rrdtool + version: 1.8.0 + epoch: 0 + description: Data logging and graphing application + copyright: + - license: GPL-2.0-or-later + +environment: + contents: + packages: + - autoconf + - automake + - bash + - build-base + - busybox + - ca-certificates-bundle + - cairo + - cairo-dev + - expat-dev + - font-sony-misc + - freetype-dev + - fribidi-dev + - glib-dev + - glibc-dev + - groff + - harfbuzz-dev + - libart-lgpl-dev + - libpng-dev + - libtool + - libxft-dev + - libxml2-dev + - lua5.4 + - lua5.4-dev + - pango + - pango-dev + - pcre2-dev + - perl-dev + - perl-xml-parser + - pkgconf-dev + - posix-libc-utils + - py3.12-setuptools + - python3-dev + - zlib-dev + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/oetiker/rrdtool-1.x + expected-commit: 3af04acd38bbc61bbdcdd931dcf234c971aa5336 + tag: v${{package.version}} + + - runs: autoupdate + + - runs: | + export CPPFLAGS="-I/usr/include/pango-1.0/pango" + ./configure \ + --prefix=/usr \ + --disable-nls \ + --disable-tcl \ + --disable-ruby \ + --enable-rrdcgi \ + --enable-perl-site-install \ + --enable-lua-site-install \ + --with-perl-options="INSTALLDIRS=vendor" + + - runs: | + export INSTALLDIRS=vendor + make DESTDIR="${{targets.destdir}}" install + find "${{targets.destdir}}" -name '.packlist' -delete + find "${{targets.destdir}}" -name 'perllocal.pod' -delete + + - uses: strip + +subpackages: + - name: rrdtool-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - rrdtool + - font-sony-misc + description: rrdtool dev + + - name: rrdtool-doc + pipeline: + - uses: split/manpages + description: rrdtool manpages + + - name: perl-rrd + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/lib \ + "${{targets.destdir}}"/usr/share + mv "${{targets.destdir}}"/usr/lib/perl* "${{targets.subpkgdir}}"/usr/lib/ + mv "${{targets.destdir}}"/usr/share/perl* "${{targets.subpkgdir}}"/usr/share/ + description: Perl interface for rrdtool + + - name: lua-rrd + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/lib/ + mv /usr/lib/lua* "${{targets.subpkgdir}}"/usr/lib/ + description: Lua interface for rrdtool + + - name: rrdtool-cached + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/sbin \ + "${{targets.subpkgdir}}"/var/lib/rrdcached/db \ + "${{targets.subpkgdir}}"/var/lib/rrdcached/journal + mv "${{targets.destdir}}"/usr/bin/rrdcached "${{targets.subpkgdir}}"/usr/sbin + description: RRDtool data caching daemon + dependencies: + runtime: + - rrdtool + + - name: rrdtool-cached-openrc + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/etc/init.d + install -Dm755 ./rrdcached.initd "${{targets.subpkgdir}}"/etc/init.d/rrdcached + description: RRDtool data caching daemon (OpenRC init scripts) + + - name: rrdtool-cgi + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/bin + mv "${{targets.destdir}}"/usr/bin/rrdcgi "${{targets.subpkgdir}}"/usr/bin + description: create web pages containing RRD graphs based on templates + + - name: rrdtool-utils + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}"/usr/bin + mv "${{targets.destdir}}"/usr/bin/rrdinfo \ + "${{targets.destdir}}"/usr/bin/rrdcreate \ + "${{targets.destdir}}"/usr/bin/rrdupdate \ + "${{targets.subpkgdir}}"/usr/bin + description: RRDtool standalone create,update,info utilities + +update: + enabled: true + github: + identifier: oetiker/rrdtool-1.x + strip-prefix: v diff --git a/rrdtool/rrdcached.initd b/rrdtool/rrdcached.initd new file mode 100644 index 00000000000..de121b4db1f --- /dev/null +++ b/rrdtool/rrdcached.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run + +description="RRDtool data caching daemon" +pidfile=${pidfile:-/run/rrdcached/rrdcached.pid} +socket=${socket:-unix:/run/rrdcached/rrdcached.sock} +command="/usr/sbin/rrdcached" +command_args="-l $socket -j /var/lib/rrdcached/journal/ -F -b /var/lib/rrdcached/db/ -B -p $pidfile" +start_stop_daemon_args="--quiet" + +depend() { + need localmount net + use logger +} + +start_pre() { + checkpath --directory ${pidfile%/*} +} \ No newline at end of file diff --git a/scons.yaml b/scons.yaml new file mode 100644 index 00000000000..99049be5f0f --- /dev/null +++ b/scons.yaml @@ -0,0 +1,62 @@ +package: + name: scons + version: 4.6.0 + epoch: 0 + description: Software construction system + copyright: + - license: MIT + +environment: + contents: + packages: + - autoconf + - automake + - build-base + - busybox + - ca-certificates-bundle + - curl + - py3-gpep517 + - py3-setuptools + - py3-wheel + - python3 + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/SCons/scons + expected-commit: 72c1ee33fda0536b34ce658c12c5758cf47cab77 + tag: ${{package.version}} + + - uses: fetch + with: + uri: https://downloads.sourceforge.net/project/scons/scons/${{package.version}}/SCons-${{package.version}}.tar.gz + expected-sha256: 7db28958b188b800f803c287d0680cc3ac7c422ed0b1cf9895042c52567803ec + strip-components: 0 + extract: false + + - uses: patch + with: + patches: dont-install-manpages.patch + + - runs: | + tar -xzf SCons-${{package.version}}.tar.gz + + python3 -m gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 + install -vDm 644 ./SCons-${{package.version}}/*.1 -t "${{targets.destdir}}/usr/share/man/man1/" + + python3 -m installer -d "${{targets.destdir}}" .dist/*.whl + # remove docbook dirs + find "${{targets.destdir}}" -name 'docbook' -type d -exec rm -rf {} + + + - uses: strip + +subpackages: + - name: scons-doc + pipeline: + - uses: split/manpages + description: scons manpages + +update: + enabled: true + github: + identifier: SCons/scons diff --git a/scons/dont-install-manpages.patch b/scons/dont-install-manpages.patch new file mode 100644 index 00000000000..7f0b7d789f3 --- /dev/null +++ b/scons/dont-install-manpages.patch @@ -0,0 +1,29 @@ +From 6eb781b3339b6c89fda40da950be53cb9ed95411 Mon Sep 17 00:00:00 2001 +From: Batuhan Apaydin +Date: Wed, 17 Jan 2024 17:41:57 +0300 +Subject: [PATCH] test + +Signed-off-by: Batuhan Apaydin +--- + setup.cfg | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/setup.cfg b/setup.cfg +index 7c6af765c..c27b36111 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -66,11 +66,6 @@ console_scripts = + SCons.Tool.docbook = *.* + + +-[options.data_files] +-. = scons.1 +- scons-time.1 +- sconsign.1 +- + [sdist] + dist_dir=build/dist + +-- +2.39.3 (Apple Git-145) +