aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-06-06 23:09:53 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-06-06 23:09:53 +0200
commit5c66009c0c2c3c5d32eaf373a44e7c729230b2ed (patch)
tree2ca587d16210f819b11b159802adeadf1682c2ad
parent3a700aeb1c0f8b4ec2f3ffd3450d918d9597105f (diff)
downloadoverlay-5c66009c0c2c3c5d32eaf373a44e7c729230b2ed.tar.gz
overlay-5c66009c0c2c3c5d32eaf373a44e7c729230b2ed.tar.xz
overlay-5c66009c0c2c3c5d32eaf373a44e7c729230b2ed.zip
dev-uitl/mfcuk: add data files, patch path to data files
-rw-r--r--dev-util/mfcuk/Manifest3
-rw-r--r--dev-util/mfcuk/files/mfcuk-fix-data-path.patch17
-rw-r--r--dev-util/mfcuk/mfcuk-9999.ebuild3
3 files changed, 22 insertions, 1 deletions
diff --git a/dev-util/mfcuk/Manifest b/dev-util/mfcuk/Manifest
index 9f11b9b..ba5749c 100644
--- a/dev-util/mfcuk/Manifest
+++ b/dev-util/mfcuk/Manifest
@@ -1,2 +1,3 @@
+AUX mfcuk-fix-data-path.patch 1226 RMD160 7235297ca5a00e539ceff7d5bdcbc021e630bc74 SHA1 e1c507605309b12ae2c9c5500133001d1ace9495 SHA256 16cb59372aad86b7d0c047f63fddc4ca22180b274d1a6bfbd3321fc272657347
AUX mfcuk-new-libnfc-version.patch 39765 RMD160 0540e930a10c5ccfee906a31ad1fd1d72ed5138c SHA1 6bf67f260cf6a82092e834370406c89c3346d665 SHA256 8ca8c70cfde48e352434b7ada479233111b3fdea35d00c68b3dc25f11a83a53f
-EBUILD mfcuk-9999.ebuild 673 RMD160 caa2bb386142f38a38db4999c7fd3db5c7966571 SHA1 d21cb4cc4ac8653f682810001ab28bbf31ae8842 SHA256 4a175240f4ff0c0b2d859d1156e788bf4ae7785ea752309e197dd6a68c38da46
+EBUILD mfcuk-9999.ebuild 771 RMD160 560c8ae701b268bf0a034f6e705bf172a9fc6318 SHA1 6c9a332769bbcf4e0b4b1241067153acd5ca0a81 SHA256 95570149750251a53b2edd4c56a2ddd18b2f417fbb3d660b941575167dd6daf2
diff --git a/dev-util/mfcuk/files/mfcuk-fix-data-path.patch b/dev-util/mfcuk/files/mfcuk-fix-data-path.patch
new file mode 100644
index 0000000..41b4060
--- /dev/null
+++ b/dev-util/mfcuk/files/mfcuk-fix-data-path.patch
@@ -0,0 +1,17 @@
+Index: mfcuk_finger.c
+===================================================================
+--- src/mfcuk_finger.c (revision 62)
++++ src/mfcuk_finger.c (working copy)
+@@ -40,9 +40,9 @@
+
+ mfcuk_finger_tmpl_entry mfcuk_finger_db[] =
+ {
+- { "./data/tmpls_fingerprints/mfcuk_tmpl_skgt.mfd", "Sofia SKGT", mfcuk_finger_default_comparator, mfcuk_finger_skgt_decoder, NULL },
+- { "./data/tmpls_fingerprints/mfcuk_tmpl_ratb.mfd", "Bucharest RATB", mfcuk_finger_default_comparator, mfcuk_finger_default_decoder, NULL },
+- { "./data/tmpls_fingerprints/mfcuk_tmpl_oyster.mfd", "London OYSTER", mfcuk_finger_default_comparator, mfcuk_finger_default_decoder, NULL },
++ { "/usr/share/mfcuk/data/tmpls_fingerprints/mfcuk_tmpl_skgt.mfd", "Sofia SKGT", mfcuk_finger_default_comparator, mfcuk_finger_skgt_decoder, NULL },
++ { "/usr/share/mfcuk/data/tmpls_fingerprints/mfcuk_tmpl_ratb.mfd", "Bucharest RATB", mfcuk_finger_default_comparator, mfcuk_finger_default_decoder, NULL },
++ { "/usr/share/mfcuk/data/tmpls_fingerprints/mfcuk_tmpl_oyster.mfd", "London OYSTER", mfcuk_finger_default_comparator, mfcuk_finger_default_decoder, NULL },
+ };
+
+ int mfcuk_finger_db_entries = sizeof(mfcuk_finger_db)/sizeof(mfcuk_finger_db[0]);
diff --git a/dev-util/mfcuk/mfcuk-9999.ebuild b/dev-util/mfcuk/mfcuk-9999.ebuild
index fe45531..3fdac00 100644
--- a/dev-util/mfcuk/mfcuk-9999.ebuild
+++ b/dev-util/mfcuk/mfcuk-9999.ebuild
@@ -20,10 +20,13 @@ RDEPEND="${CDEPEND}"
src_prepare() {
epatch "${FILESDIR}/mfcuk-new-libnfc-version.patch"
+ epatch "${FILESDIR}/mfcuk-fix-data-path.patch"
eautoreconf || die "autoreconf failed"
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
dodoc README ChangeLog AUTHORS NEWS TODO || die
+ insinto "/usr/share/${PN}"
+ doins -r "src/data/"
}