First check in
This commit is contained in:
83
Makefile
Normal file
83
Makefile
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
# This file is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
|
# published by the Free Software Foundation here:
|
||||||
|
# (http://www.gnu.org/licenses/gpl-2.0.html)
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
DEPENDS =
|
||||||
|
ARCH = x86_64
|
||||||
|
URL = http://kbd-project.org/
|
||||||
|
DESC = This package contains tools for managing Linux console (Linux console, \
|
||||||
|
virtual terminals, keyboard, etc.)
|
||||||
|
SNAPVER = sr0
|
||||||
|
|
||||||
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
||||||
|
PATCHDIR := $(PWD)/SRC/patches
|
||||||
|
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER)
|
||||||
|
|
||||||
|
MAKE = make
|
||||||
|
MAKEINST = make install
|
||||||
|
SNAPHACKS =
|
||||||
|
|
||||||
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
|
$(SRCDIR)/configure: $(ARCHIVE)
|
||||||
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
|
tar -jxf $(ARCHIVE); \
|
||||||
|
elif [ '$(TYPE)' == 'application/x-gzip' ]; then \
|
||||||
|
tar -zxf $(ARCHIVE); \
|
||||||
|
elif [ '$(TYPE)' == 'application/x-tar' ]; then \
|
||||||
|
tar -xf $(ARCHIVE); \
|
||||||
|
elif [ '$(TYPE)' == 'application/x-xz' ]; then \
|
||||||
|
tar -xf $(ARCHIVE); \
|
||||||
|
else \
|
||||||
|
echo 'Unable to determine archive type'; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
@touch $(SRCDIR)/configure
|
||||||
|
|
||||||
|
$(SRCDIR)/config.log: $(SRCDIR)/configure
|
||||||
|
@cd $(SRCDIR) && for patch in `find $(PATCHDIR) -name \*.patch`; do \
|
||||||
|
patch --verbose -Np1 -i $$patch; \
|
||||||
|
done
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--disable-vlock \
|
||||||
|
--build=x86_64-snap-linux-gnu \
|
||||||
|
--host=x86_64-snap-linux-gnu \
|
||||||
|
--target=x86_64-snap-linux-gnu
|
||||||
|
|
||||||
|
$(SRCDIR)/src/setkeycodes: $(SRCDIR)/config.log
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
$(MAKE)
|
||||||
|
|
||||||
|
$(ROOT): $(SRCDIR)/src/setkeycodes
|
||||||
|
@if [ -d $(ROOT) ]; then \
|
||||||
|
touch $(ROOT); \
|
||||||
|
else \
|
||||||
|
mkdir -v $(ROOT); \
|
||||||
|
fi
|
||||||
|
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
$(MAKEINST) DESTDIR=$(ROOT)
|
||||||
|
|
||||||
|
@$(SNAPHACKS)
|
||||||
|
|
||||||
|
test: $(ROOT)
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
make check
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@rm -rvf $(ROOT) \
|
||||||
|
$(SNAPINFO) \
|
||||||
|
$(MANIFEST) \
|
||||||
|
$(FILES) \
|
||||||
|
$(SRCDIR)
|
||||||
|
|
||||||
3
SNAP/README
Normal file
3
SNAP/README
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
This is the directory where the manifest, snapinfo, and files.tar.gz
|
||||||
|
files will be created. It is also where the usher file should be
|
||||||
|
placed if it is required by the package.
|
||||||
17
SRC/kbd-2.0.3.tar.sign
Normal file
17
SRC/kbd-2.0.3.tar.sign
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Version: GnuPG v1
|
||||||
|
|
||||||
|
iQIcBAABAgAGBQJVpDxuAAoJEKRaulRM/9Q07qIQAICwHbmFX33zP0K5AuYnekib
|
||||||
|
+e1rKF0gxMJYxiS6j5FLexMrvd/txc+6yC9h+bJEMeK85j6+YtNC/NZzmolAxtAH
|
||||||
|
XodewViMao0lIckl+pVr67HwMiqu3kR4e73j3hbSxTQb5YB44eouX3MDau7bjYQN
|
||||||
|
fNW/NwGmnrRaUuVEix4ZGpwYnLnDWC3A2hqtnqrcjaUFLg5ymYRS0rex+9mNafFG
|
||||||
|
5I4HG56jma6dOnVB5dAB2wE2S5R7S0evCpmxpfhX8zpShvFBOxAm2Ly6Gx5DNM6Z
|
||||||
|
uysYlc9+6lP8tSGOpvNzQ6hZNB5g5tYN8PcPcO2g9VR/lQkp3nI3i3jcV+YzJwpA
|
||||||
|
0n8sqWpq5QcF17RAdk0Y3uTeLr0P2gbufnLEQH/QwQtMwKfBqs13S+9khaGE6gv0
|
||||||
|
xbmGtms9AYPWOQ5BgVVe9daho0QT597TgH1G1mv73wCwIQXF09rmbrSEWGdkUcoc
|
||||||
|
uZ6XitzLw2/0G4TcfhNc+3ZVQNZDgKm37fQhSA/eNruOjQX3SkGDS894Y7TGQ8WW
|
||||||
|
zJlJf76sOVrHSViV19pgWhj4DMB0eLMZvGjIzsVE10wlQOL0EElK9sN/eqinHDYI
|
||||||
|
lij5FFoAIzL9hrq/k3spTTlk6sRSJ/qCUMYZAanw17DqsrHbsGaYjg0AM19XbE3Y
|
||||||
|
/w+uGLlfYt7hBAB+8Ktw
|
||||||
|
=zgX9
|
||||||
|
-----END PGP SIGNATURE-----
|
||||||
BIN
SRC/kbd-2.0.3.tar.xz
Normal file
BIN
SRC/kbd-2.0.3.tar.xz
Normal file
Binary file not shown.
26
SRC/patches/01_disable-resizecons.patch
Normal file
26
SRC/patches/01_disable-resizecons.patch
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
diff -Naur a/configure b/configure
|
||||||
|
--- a/configure 2015-07-13 17:17:12.000000000 -0500
|
||||||
|
+++ b/configure 2016-09-29 06:39:37.672000000 -0500
|
||||||
|
@@ -14990,8 +14990,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
case $host_cpu in
|
||||||
|
- i?86*) RESIZECONS_PROGS=yes ;;
|
||||||
|
- x86_64*) RESIZECONS_PROGS=yes ;;
|
||||||
|
+ i?86*) RESIZECONS_PROGS=no ;;
|
||||||
|
+ x86_64*) RESIZECONS_PROGS=no ;;
|
||||||
|
*) RESIZECONS_PROGS=no ;;
|
||||||
|
esac
|
||||||
|
if test "$RESIZECONS_PROGS" = "yes"; then
|
||||||
|
diff -Naur a/docs/man/man8/Makefile.in b/docs/man/man8/Makefile.in
|
||||||
|
--- a/docs/man/man8/Makefile.in 2015-07-13 17:17:11.000000000 -0500
|
||||||
|
+++ b/docs/man/man8/Makefile.in 2016-09-29 06:39:43.088000000 -0500
|
||||||
|
@@ -253,7 +253,7 @@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
gen_MANS = loadunimap.8 mapscrn.8 setfont.8
|
||||||
|
-dist_man_MANS = getkeycodes.8 kbdrate.8 resizecons.8 setkeycodes.8 \
|
||||||
|
+dist_man_MANS = getkeycodes.8 kbdrate.8 setkeycodes.8 \
|
||||||
|
showconsolefont.8 setvtrgb.8 $(gen_MANS)
|
||||||
|
|
||||||
|
all: all-am
|
||||||
2
SRC/patches/README
Normal file
2
SRC/patches/README
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
Place any patch files here and preface each with a number indicating
|
||||||
|
the order of execution. Patch files are expected to use a .patch extension.
|
||||||
Reference in New Issue
Block a user