mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
main/kbd: move vlock to a subpackage
This is the only binary needing linux-pam.
This commit is contained in:
parent
f8e641f669
commit
47d62cd8ee
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user