Skip to content

Commit

Permalink
add hwids (close #31)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpimh committed Jan 13, 2019
1 parent f5f3f4b commit e4eef17
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hwids/opkg/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Package: hwids
Version: 20180917
Architecture: all
Maintainer: Dmitry Golovin <dima@golovin.in>
Description: hardware id database
26 changes: 26 additions & 0 deletions hwids/opkg/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh
set -e

PACKAGE=hwids

case "$1" in
build)
patch -p1 < opkg/share-location.patch
make
;;

install)
rm -rf /tmp/$PACKAGE
mkdir -p /tmp/$PACKAGE
DESTDIR=/tmp/$PACKAGE
make install DESTDIR=$DESTDIR
;;

clean)
rm -f *.gz
;;

*)
echo unknown argument $1
;;
esac
14 changes: 14 additions & 0 deletions hwids/opkg/share-location.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- hwids-hwids-20180917/Makefile
+++ hwids/Makefile
@@ -67,9 +67,9 @@
%.gz: %
gzip -c $< > $@

-MISCDIR=/usr/share/misc
+MISCDIR=/share/misc
HWDBDIR=$(shell $(PKG_CONFIG) --variable=udevdir udev)/hwdb.d
-DOCDIR=/usr/share/doc/hwids
+DOCDIR=/share/doc/hwids

install-base: $(DATA_FILES-yes)
mkdir -p $(DESTDIR)$(DOCDIR)
2 changes: 2 additions & 0 deletions hwids/opkg/source
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Repo: https://github.com/gentoo/${PKG}/archive/
MD5: 4d455e802edd4df308e0fb0199f7ee27

0 comments on commit e4eef17

Please sign in to comment.