Tristan Le Guern <aversi...@gmail.com> writes:

> Hi,

Hi Tristan,

> Attached is an unfinished port of xkb-qwerty-fr, a qwerty layout with
> French extensions but no dead-keys. It's on openbsd-wip for those who
> cares.
>
> The port install a file under "/usr/X11R6/share/X11/xkb/symbols/", but
> systrace complains and forbids it. How can I do that? Is there a
> standard place under "/usr/local" for additional keymap files?

I think the cleanest way would be to just install the file in
${PREFIX}/share/X11/xkb/, and then tell users to use setxkbmap -I ...
Just tried this but it seems I can't make it work. :)

Possible other ways to do it:
2. include the mapping into xenocara.  Perhaps you could ask the author
   to change the licence?
3. install in ${PREFIX}/share/examples/xkb-qwerty-fr and then @sample it
   in /usr/X11R6. Dunno if that's ok for other porters and X11 people.
4. patch setxkbmap so that it also looks at /usr/local/share/X11/xkb/.
   But a custom PREFIX at port build time to would break this, and
   that'd be one more patch Matthieu has to deal with.

> Also I put it in the "misc" section, but it should probably use "x11",
> what do you think?

I think x11 would be nicer too.

Some hints for your port:
- I'd tweak COMMENT, something like "qwerty keyboard layout for french
  users"
- your PKGNAME doesn't include a version number, it should. You could
  set V = 0.5 and then use it in PKGNAME and INTERNAL
- PERMIT_PACKAGE_FTP and PERMIT_DISTFILES_FTP are not needed anymore.
  Also I think it would be better to install the copyright notice.
  (I've seen some ports removing them in the past and felt a bit
  puzzled...)
- it's better not to try to be smart about MASTER_SITES
- most if not all porters prefer variable assignements to be properly
  aligned with tabs

-- 
Jérémie Courrèges-Anglas
PGP Key fingerprint: 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494

Reply via email to