~ubuntu-branches/ubuntu/trusty/libpam-mount/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/add-fd0ssh/src/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Kleineidam
  • Date: 2010-12-03 20:27:54 UTC
  • mfrom: (1.4.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101203202754-ki2m85culrxwklox
Tags: 2.7-1
* New upstream release.
  + Remove mnt_fallback patch since squeeze will have 2.5 and upgrading
    from 0.4x versions is not needed anymore.
  + Readd copy of ofl and fd0ssh to avoid installing a complete new
    package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Makefile -*-
 
2
 
 
3
AM_CFLAGS = ${regular_CFLAGS} ${GCC_FVISIBILITY_HIDDEN} \
 
4
                ${libHX_CFLAGS} ${libcryptsetup_CFLAGS} ${libxml_CFLAGS} \
 
5
                -DLOCALSTATEDIR=\"${varrundir}\"
 
6
 
 
7
varrundir               = ${localstatedir}/run
 
8
 
 
9
moduledir               = @PAM_MODDIR@
 
10
module_LTLIBRARIES      = pam_mount.la
 
11
sbin_PROGRAMS           = pmvarrun
 
12
if HAVE_LIBCRYPTO
 
13
sbin_PROGRAMS           += pmt-ehd
 
14
endif
 
15
ssbin_PROGRAMS          = mount.crypt mount.encfs13
 
16
noinst_PROGRAMS         = autoloop ismnt
 
17
noinst_SCRIPTS          = umount.crypt
 
18
 
 
19
crypto_sources          = crypto.c ${loop_sources}
 
20
if HAVE_LIBCRYPTSETUP
 
21
crypto_sources          += crypto-dmc.c
 
22
endif
 
23
if HAVE_CGD
 
24
crypto_sources          += crypto-cgd.c
 
25
endif
 
26
crypto_libs             = ${libcrypto_LIBS} ${libcryptsetup_LIBS}
 
27
loop_sources            = loop.c loop-linux.c
 
28
if HAVE_MDIO
 
29
loop_sources            += loop-mdvn.c
 
30
endif
 
31
if HAVE_VND
 
32
loop_sources            += loop-vnd.c
 
33
endif
 
34
mtab_sources            = log.c misc.c mtab.c
 
35
 
 
36
pam_mount_la_SOURCES    = log.c misc.c mount.c mount-bsd.c \
 
37
                          mount-sysv.c mtab.c pam_mount.c \
 
38
                          rdconf1.c rdconf2.c spawn.c
 
39
pam_mount_la_CFLAGS     = ${AM_CFLAGS}
 
40
pam_mount_la_LIBADD     = -lpam ${libHX_LIBS} ${crypto_libs} \
 
41
                          ${libxml_LIBS}
 
42
pam_mount_la_LDFLAGS    = -module -avoid-version
 
43
 
 
44
autoloop_SOURCES        = autoloop.c ${loop_sources} log.c misc.c spawn.c
 
45
autoloop_LDADD          = ${libHX_LIBS}
 
46
 
 
47
ismnt_SOURCES           = ismnt.c ${mtab_sources}
 
48
ismnt_LDADD             = ${libHX_LIBS}
 
49
 
 
50
mount_crypt_SOURCES     = mtcrypt.c spawn.c \
 
51
                          ${crypto_sources} ${mtab_sources}
 
52
mount_crypt_LDADD       = ${libHX_LIBS} ${crypto_libs}
 
53
 
 
54
mount_encfs13_SOURCES   = mtencfs13.c
 
55
mount_encfs13_LDADD     = ${libHX_LIBS}
 
56
 
 
57
pmt_ehd_SOURCES         = ehd.c log.c misc.c spawn.c ${crypto_sources}
 
58
pmt_ehd_LDADD           = ${libHX_LIBS} ${crypto_libs}
 
59
 
 
60
pmvarrun_SOURCES = pmvarrun.c log.c
 
61
pmvarrun_LDADD   = ${libHX_LIBS}
 
62
 
 
63
EXTRA_DIST = misc.h mount.h pam_mount.h readconfig.h spawn.h
 
64
 
 
65
umount.crypt${EXEEXT}: mount.crypt${EXEEXT}
 
66
        -${LN_S} $^ $@;
 
67
 
 
68
if !KEEP_LA
 
69
install-data-hook:
 
70
        rm -f $(DESTDIR)$(moduledir)/pam_mount.la;
 
71
endif
 
72
 
 
73
#
 
74
#       udev/libvolume_id detects LUKS volumes as "crypto_LUKS", while
 
75
#       blkid/libblkid detects them as "crypt_LUKS".
 
76
#       Talking to the maintainers, crypto_LUKS is what was wanted.
 
77
#       Providing symlinks for compat...
 
78
#
 
79
mtcrypt_symlinks = \
 
80
        umount.crypt${EXEEXT} \
 
81
        mount.crypto_LUKS${EXEEXT} umount.crypto_LUKS${EXEEXT} \
 
82
        mount.crypt_LUKS${EXEEXT} umount.crypt_LUKS${EXEEXT}
 
83
 
 
84
install-exec-hook:
 
85
        ${MKDIR_P} ${DESTDIR}${ssbindir};
 
86
        -for i in ${mtcrypt_symlinks}; do \
 
87
                ${LN_S} -f mount.crypt${EXEEXT} "${DESTDIR}${ssbindir}/$$i"; \
 
88
        done;
 
89
 
 
90
uninstall-hook:
 
91
        -for i in ${mtcrypt_symlinks}; do \
 
92
                rm "${DESTDIR}${ssbindir}/$$i"; \
 
93
        done;
 
94