Patrick Venture | d75b58d | 2018-11-25 10:11:01 -0800 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | |
Richard Marian Thomaiyar | 216f213 | 2018-06-12 19:20:48 +0530 | [diff] [blame] | 3 | CLEANFILES = *~ |
| 4 | |
Tim Lee | 8e5d061 | 2022-11-09 11:21:32 +0800 | [diff] [blame] | 5 | sysconf_DATA = key_file ipmi_pass_32 ipmi_pass_64 |
| 6 | |
| 7 | FILE_32 := ipmi_pass_32 |
| 8 | FILE_64 := ipmi_pass_64 |
| 9 | |
| 10 | CP_FILE := $(FILE_$(TARGET_OS_ARCH)) |
| 11 | |
Patrick Williams | 9dbd022 | 2020-12-09 09:35:55 -0600 | [diff] [blame] | 12 | install-exec-hook: |
Tim Lee | 8e5d061 | 2022-11-09 11:21:32 +0800 | [diff] [blame] | 13 | cp $(DESTDIR)$(sysconfdir)/$(CP_FILE) $(DESTDIR)$(sysconfdir)/ipmi_pass |
| 14 | rm $(DESTDIR)$(sysconfdir)/ipmi_pass_64 |
| 15 | rm $(DESTDIR)$(sysconfdir)/ipmi_pass_32 |
Vernon Mauery | c2ef331 | 2020-04-09 09:58:25 -0700 | [diff] [blame] | 16 | chmod 0600 $(DESTDIR)$(sysconfdir)/key_file |
| 17 | chmod 0600 $(DESTDIR)$(sysconfdir)/ipmi_pass |
| 18 | |
Patrick Williams | 27f845c | 2023-05-18 10:20:05 -0500 | [diff] [blame] | 19 | securelibdir = ${libdir}/security |
Richard Marian Thomaiyar | 216f213 | 2018-06-12 19:20:48 +0530 | [diff] [blame] | 20 | securelib_LTLIBRARIES = pam_ipmicheck.la pam_ipmisave.la |
| 21 | |
| 22 | pam_ipmicheck_la_SOURCES = src/pam_ipmicheck/pam_ipmicheck.c |
Patrick Venture | edeae56 | 2018-11-23 08:45:28 -0800 | [diff] [blame] | 23 | pam_ipmicheck_la_LDFLAGS = \ |
| 24 | -module \ |
| 25 | -avoid-version \ |
| 26 | -shared \ |
Patrick Venture | bca65ee | 2018-11-23 15:32:18 -0800 | [diff] [blame] | 27 | $(LIBS) |
Richard Marian Thomaiyar | 216f213 | 2018-06-12 19:20:48 +0530 | [diff] [blame] | 28 | |
| 29 | pam_ipmisave_la_SOURCES = src/pam_ipmisave/pam_ipmisave.c |
Patrick Venture | edeae56 | 2018-11-23 08:45:28 -0800 | [diff] [blame] | 30 | pam_ipmisave_la_LDFLAGS = \ |
| 31 | -module \ |
| 32 | -avoid-version \ |
| 33 | -shared \ |
Patrick Venture | bca65ee | 2018-11-23 15:32:18 -0800 | [diff] [blame] | 34 | $(LIBS) \ |
| 35 | $(OPENSSL_LIBS) |