Skip to content
Snippets Groups Projects
Commit 47d62cd8 authored by Sören Tempel's avatar Sören Tempel
Browse files

main/kbd: move vlock to a subpackage

This is the only binary needing linux-pam.
parent f8e641f6
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kbd
pkgver=2.0.3
pkgrel=0
pkgrel=1
pkgdesc="Tools for configuring the console (keyboard, virtual terminals, etc.)"
url="http://ftp.altlinux.org/pub/people/legion/kbd"
arch="all"
......@@ -10,20 +10,15 @@ license="GPL2+"
depends="kbd-misc"
makedepends="linux-headers bison flex autoconf automake linux-pam-dev check-dev"
install=""
subpackages="$pkgname-misc $pkgname-doc"
subpackages="$pkgname-misc $pkgname-doc $pkgname-vlock"
source="ftp://ftp.altlinux.org/pub/people/legion/kbd/kbd-$pkgver.tar.gz
error.h
"
_builddir="$srcdir"/kbd-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
# apply patches (if any)
default_prepare || return 1
# install our error.h
cp "$srcdir"/error.h . || return 1
......@@ -86,6 +81,18 @@ package() {
ln -s openvt "$pkgdir"/usr/bin/open
}
vlock() {
pkgdesc="$pkgname vlock implemantation"
depends=
# This is the only binary needing linux-pam moving this to a
# subpackage reduce the amount of depencies of the kbd package.
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/vlock \
"$subpkgdir"/usr/bin/ || return 1
}
misc() {
pkgdesc="Data for kbd package"
arch="noarch"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment