]> git.ozlabs.org Git - ppp.git/commit
Add pkgconfig support to PPP project (#270)
authorEivind Næss <eivnaes@yahoo.com>
Sat, 24 Apr 2021 05:26:06 +0000 (22:26 -0700)
committerGitHub <noreply@github.com>
Sat, 24 Apr 2021 05:26:06 +0000 (15:26 +1000)
commit750475927f15964be39a8bdda8ea2f57c764f846
tree8f75ea4153d16d3d5243fd2bc6d155df32738861
parent6cc7077fffa65c81a7b13c200e666c35419b8265
Add pkgconfig support to PPP project (#270)

This adds pppd.pc into $(INSTROOT)/$(LIBDIR)/pkgconfig. On some distributions
this would be /lib/pkgconfig, or /usr/lib/pkgconfig, but other distributions
may consider specifying --libdir=/usr/lib/x86_x64-linux-gnu/ and the pkgconfig
directory would be under that. Allowing --libdir to be specified at configure
time fixes #223, providing pkgconfig support fixes #19 and allows third party
packages pickup the plugin directory.

Manually cherry picking parts of two commits by @lkundrak from:
    https://github.com/NetworkManager/ppp/tree/lr/pkgconfig

Mainly, the difference between the original commit is not to replace DESTDIR
with "prefix". Leave DESTDIR alone, and add needed pkgconfig (pppd.pc.in)
as a part of the linux distribution (previously in pppd/plugin directory).

This fixes GitHub issues: #19 #47 and #223

Signed-off-by: Eivind Naess <eivnaes@yahoo.com>
12 files changed:
.gitignore
chat/Makefile.linux
configure
linux/pppd.pc.in [new file with mode: 0644]
pppd/Makefile.linux
pppd/plugins/Makefile.linux
pppd/plugins/pppoatm/Makefile.linux
pppd/plugins/pppoe/Makefile.linux
pppd/plugins/pppol2tp/Makefile.linux
pppd/plugins/radius/Makefile.linux
pppdump/Makefile.linux
pppstats/Makefile.linux