You are not logged in.

#1 2009-11-06 14:09:44

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Avoid /usr/local hardcoded paths in binary driver

Hi, I just created the scmccid package in AUR

I have created the PKGBUILD following the install script supplied for the manufacturer.

Unafortunately it generates the files
/usr/local/scm/ini/scmccid.ini
/usr/local/pcsc/drivers/scmcciddriver.bundle (which is a link to /usr/lib/pcsc/drivers/scmcciddriver.bundle)

It doesn't seem to be a good idea to have files in /usr/local/ but they seems to be hardcoded on the binary driver

$ strings libscmccid.so.5.0.11 | grep local
/usr/local/scm/%s
/usr/local/scm/ini/scmccid.ini

But in the chromium package I have seen that the creator uses sed to modify things on the binary executable, so maybe it would be viable to do

sed -i 's,/usr/local/scm/,/usr/share/scm/,g' libscmccid.so.$pkgver || return 1

and then put the .ini file on /usr/share/scm/

That lefts me with /usr/local/pcsc/drivers/scmcciddriver.bundle which I'm not sure what to do with.

Offline

Board footer

Powered by FluxBB