1

Topic: [vlock] Package to be fixed being reported not fully working

Hey together,

yesterday we have got the report that vlock is not working as it should. So here is a first draft for fixing to tryout. Please give feedback when possible thanks.

# Maintainer: Márcio Silva <coadde@hyperbola.info>
# Contributor: Tobias Dausend <throgh@hyperbola.info>

pkgname=vlock
pkgver=2.2.2
_debver=$pkgver
_debrel=10
pkgrel=2
pkgdesc="Virtual Console locking program"
arch=('i686' 'x86_64')
url='https://packages.debian.org/source/bullseye/$pkgname'
license=('GPL-2')
depends=('shadow')
makedepends=('quilt')
source=("https://deb.debian.org/debian/pool/main/v/$pkgname/${pkgname}_${pkgver}.orig.tar.gz"
        "https://deb.debian.org/debian/pool/main/v/$pkgname/${pkgname}_${_debver}-${_debrel}.debian.tar.xz")
sha512sums=('694da52fba3a73f342c4217f6e3556e8c49cab6a991f0a3b96f6adfdb4a718e8e66ce9b5cc83f74475675a9d31d3956545acd11decf9e3b2db61df53ae863b52'
            '5aabc89f111f6a08f868aa2d3dd37fd7a09a8f0245850cccd7a1c1f2bbc3eeeb13c45222f4cfd6bf7f3a35d1dce910ed53103aae27da16195185a88597247499')

prepare() {
  cd ${srcdir}/${pkgname}-${pkgver}
  if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    mv "$srcdir"/debian .

    quilt push -av
  fi
}

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure \
    VLOCK_GROUP=root \
    --prefix=/usr \
    --enable-shadow
  sed -i 's/new\.so//' config.mk
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}

  # current makefile contains errors
  make DESTDIR=${pkgdir} install

  # fix modules permissions
  chmod 0755 ${pkgdir}/usr/lib/vlock/modules/*.so

  # license
  install -Dm644 COPYING -t ${pkgdir}/usr/share/licenses/${pkgname}
}

When package is working fully, we can close this thread marking the problem aslo as solved. Sure the issue-tracker is also a place to do. But binding in all the community is nevertheless a point to go. smile

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

2

Re: [vlock] Package to be fixed being reported not fully working

It works both logged as root and with doas.

3

Re: [vlock] Package to be fixed being reported not fully working

Super, thanks for approval.
Will be getting a commit then today within core so marked also for the next build.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

4

Re: [vlock] Package to be fixed being reported not fully working

Nice. I found another gem: the Ted word processor. Less features than Abiword, but complete enough.
It uses the RTF format.

And far less dependencies, too.

The GTK2 build it's recommended for internationalization. Also, spelling and dictionaries
for different languages than English can be in another separate package.

https://nllgg.nl/Ted/

For printing, it uses PostScript as the output. Hyperbola has no PostScript viewer, but
GV (./configure --enable-international it's recommended for localized menues) just
requires xaw3D and ghostscript. Maybe 'gsfonts' as recommended for complete
compatibilty.

5

Re: [vlock] Package to be fixed being reported not fully working

It would be good not to use this thread for such: Please open another one. Also important: Is there a BSD-port for that possible? wink
Closing this one for the moment. Okay, there is one: https://openports.se/editors/ted

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!