source: pkg/boss/main/network-manager-pptp/trunk/debian/patches/pppd-installation.dpatch @ 4792

Revision 4792, 1.2 KB checked in by alanbach-guest, 5 years ago (diff)
  • Added network-manager-pptp to BOSS
Line 
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## pppd-installation.dpatch by Enrico Tassi <gareuselesinge@debian.org>
3##
4## All lines beginning with `## DP:' are a description of the patch.
5## DP: substitue PPPD_PLUGIN_DIR and use to to install the ppp plugin
6
7@DPATCH@
8diff -urNad trunk~/configure.in trunk/configure.in
9--- trunk~/configure.in 2007-09-14 15:38:54.000000000 +0200
10+++ trunk/configure.in  2008-04-07 23:17:53.000000000 +0200
11@@ -104,6 +104,10 @@
12        AC_MSG_RESULT(no)
13 fi
14 
15+PPPD_VERSION=`grep VERSION /usr/include/pppd/patchlevel.h | awk '{print $3}' | sed -e 's/\s*"\s*//g'`
16+PPPD_PLUGIN_DIR="$libdir/pppd/$PPPD_VERSION"
17+AC_SUBST(PPPD_PLUGIN_DIR)
18+
19 AC_OUTPUT([
20 Makefile
21 src/Makefile
22diff -urNad trunk~/src/Makefile.am trunk/src/Makefile.am
23--- trunk~/src/Makefile.am      2007-07-26 15:31:26.000000000 +0200
24+++ trunk/src/Makefile.am       2008-04-07 23:16:55.000000000 +0200
25@@ -17,7 +17,9 @@
26        -DDATADIR=\"$(datadir)\"                                \
27        -fPIC
28 
29-bin_PROGRAMS = nm-pptp-service nm-pptp-service-pppd-plugin.so
30+bin_PROGRAMS = nm-pptp-service
31+pppdplugindir = $(PPPD_PLUGIN_DIR)
32+pppdplugin_PROGRAMS = nm-pptp-service-pppd-plugin.so
33 
34 nm_pptp_service_SOURCES =                              \
35                                nm-pptp-service.c       \
Note: See TracBrowser for help on using the repository browser.