Subject: choosing dependencies and suggested USE_LINUX_PAM_PKG
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 01/16/2003 12:32:24
I am using pkgsrc for entire (Linux) OS.

I would like to suggest some new options for using packaged software
(usually libraries) instead of assuming to use system provided versions.

For example, pine under Linux uses -lpam and -lncurses.

I made a security/linux-pam package with

Then under my pine I have:

 .elif ${OPSYS} == "Linux"
+. if defined(USE_LINUX_PAM_PKG)
+.   include "../../security/linux-pam/"
+. endif

(I moved  .include "../../mk/"  higher.)

I'll assume USE_LINUX_PAM_PKG if defined (not be default) means USE_PAM

I plan to do same for ncurses too, like "USE_NCURSES_PKG" will
include devel/ncurses/

Related to this idea would be for other dependencies too that are not
currently recorded. So maybe I should just have one switch for all instead
of multiple USE_*_PKG.

Any comments or suggestions?

   Jeremy C. Reed