Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dcron: improve runjobs script #3

Open
2 tasks
sighook opened this issue Jan 17, 2024 · 2 comments
Open
2 tasks

dcron: improve runjobs script #3

sighook opened this issue Jan 17, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sighook
Copy link
Contributor

sighook commented Jan 17, 2024

The package ships with runjobs script. It will be cool to improve this script, to follow GNU standards for usage/help/cmdline options, etc. Like other utilities in GNU/Linux.

  • add manual page (document exit codes!)
  • configurable niceless?
@sighook sighook added enhancement New feature or request good first issue Good for newcomers labels Jan 17, 2024
@sighook sighook moved this to Packages in Zeppe-Lin tasks and issues Jan 17, 2024
@sighook
Copy link
Contributor Author

sighook commented Mar 9, 2024

Maybe add the run-parts utility and use it instead? However, it has different implementations, and there is a need to pick a suitable one.

@sighook
Copy link
Contributor Author

sighook commented Mar 25, 2024

The Hyperbola uses the one from debian:

# Maintainer (Arch): Pierre Schmitz <[email protected]>
# Maintainer: André Silva <[email protected]>
# Contributor: Jesús E. <[email protected]>

pkgname=run-parts
pkgver=4.9.1
pkgrel=1
pkgdesc='run scripts or programs in a directory'
arch=('i686' 'x86_64')
url='https://packages.qa.debian.org/d/debianutils.html'
license=('GPL-2')
depends=('glibc')
source=("https://deb.debian.org/debian/pool/main/d/debianutils/debianutils_${pkgver}.tar.xz"
        "COPYING")
sha512sums=('b442950febe6df9e15ec04a6fec0ee8be12d3eac38dc3f9331438d871e3382f4e0f599da0eaeff0e7e9ba0fa5136ce3c3b51c6718e4d7f11c1675f745052a9b1'
            'aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957')

build() {
  cd $srcdir/debianutils-$pkgver
  ./configure --prefix=/usr
  make run-parts
}

package() {
  cd $srcdir/debianutils-$pkgver
  install -D -m755 run-parts $pkgdir/bin/run-parts
  install -D -m644 run-parts.8 $pkgdir/usr/share/man/man8/run-parts.8
  for l in po4a/*/run-parts.8; do
    install -D -m644  ${l} $pkgdir/usr/share/man/${l:5:2}/man8/run-parts.8
  done
  install -D -m644 ../COPYING $pkgdir/usr/share/licenses/run-parts/COPYING
}

# vim:set ts=2 sw=2 et:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Development

No branches or pull requests

1 participant