~ubuntu-branches/ubuntu/saucy/openvpn/saucy-proposed

« back to all changes in this revision

Viewing changes to .pc/use-dpkg-buildflags.patch/plugin/auth-pam/Makefile

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-03-30 13:19:09 UTC
  • mfrom: (10.2.20 sid)
  • Revision ID: package-import@ubuntu.com-20120330131909-f9c2sqz2qhy0m2b6
Tags: 2.2.1-8ubuntu1
* Merge at Simon Deziel's request to build with PIE.
* Merge from Debian unstable. Remaining changes:
  + debian/openvpn.init.d:
    - Do not use start-stop-daemon and </dev/null to avoid blocking boot.
    - Show per-VPN result messages.
    - Add "--script-security 2" by default for backwards compatabliity.
  + debian/control: Add lsb-base >= 3.2-14 to allow status_of_proc()

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Build the OpenVPN auth-pam plugin module.
 
3
#
 
4
 
 
5
# If PAM modules are not linked against libpam.so, set DLOPEN_PAM to 1. This
 
6
# must be done on SUSE 9.1, at least.
 
7
DLOPEN_PAM=0
 
8
 
 
9
ifeq ($(DLOPEN_PAM),1)
 
10
        LIBPAM=-ldl
 
11
else
 
12
        LIBPAM=-lpam
 
13
endif
 
14
 
 
15
# This directory is where we will look for openvpn-plugin.h
 
16
INCLUDE=-I../..
 
17
 
 
18
CC_FLAGS=-O2 -Wall -DDLOPEN_PAM=$(DLOPEN_PAM)
 
19
 
 
20
openvpn-auth-pam.so : auth-pam.o pamdl.o
 
21
        gcc ${CC_FLAGS} -fPIC -shared -Wl,-soname,openvpn-auth-pam.so -o openvpn-auth-pam.so auth-pam.o pamdl.o -lc $(LIBPAM)
 
22
 
 
23
auth-pam.o : auth-pam.c pamdl.h
 
24
        gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} auth-pam.c
 
25
 
 
26
pamdl.o : pamdl.c pamdl.h
 
27
        gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} pamdl.c
 
28
 
 
29
clean :
 
30
        rm -f *.o *.so