Skip to content

Commit 8c09bbb

Browse files
Lukas Slebodniksimo5
authored andcommitted
Fix few build issues
- use automake variables for simplification of file installation instead of make install hooks - if configure is not called from $srcdir then few directories were not created. - few files were not removed with make unistall Signed-off-by: Lukas Slebodnik <[email protected]> Reviewed-by: Simo Sorce <[email protected]>
1 parent 72052a8 commit 8c09bbb

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

proxy/Makefile.am

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,13 @@ endif
222222
#######################
223223

224224
dist_init_SCRIPTS =
225+
systemdunit_DATA =
226+
if HAVE_SYSTEMD_UNIT
227+
systemdunit_DATA += \
228+
systemd/gssproxy.service
229+
endif
230+
231+
noinst_DATA = examples/gssproxy.conf examples/mech
225232

226233
edit_cmd = $(SED) \
227234
-e 's|@sbindir[@]|$(sbindir)|g' \
@@ -242,12 +249,15 @@ EXTRA_DIST = \
242249
examples/mech.in
243250

244251
systemd/gssproxy.service: systemd/gssproxy.service.in Makefile
252+
@$(MKDIR_P) systemd/
245253
$(replace_script)
246254

247255
examples/gssproxy.conf: examples/gssproxy.conf.in Makefile
256+
@$(MKDIR_P) examples/
248257
$(replace_script)
249258

250259
examples/mech: examples/mech.in Makefile
260+
@$(MKDIR_P) examples/
251261
$(replace_script)
252262

253263
installgsspdirs::
@@ -280,15 +290,12 @@ else
280290
mkdir -p $(DESTDIR)$(initdir)
281291
endif
282292

283-
install-data-hook: systemd/gssproxy.service examples/mech examples/gssproxy.conf
284-
if HAVE_SYSTEMD_UNIT
285-
cp systemd/gssproxy.service $(DESTDIR)$(systemdunitdir)
286-
endif
287-
288293
clean-local:
289294
rm -Rf doc
290295

291-
CLEANFILES = *.X */*.X */*/*.X
296+
CLEANFILES = *.X */*.X */*/*.X \
297+
examples/mech \
298+
examples/gssproxy.conf
292299

293300
tests: all $(check_PROGRAMS)
294301
$(srcdir)/tests/runtests.py

proxy/contrib/gssproxy.spec.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ rm -rf %{buildroot}
7171
make install DESTDIR=%{buildroot}
7272
rm -f %{buildroot}%{_libdir}/gssproxy/proxymech.la
7373
install -d -m755 %{buildroot}%{_sysconfdir}/gssproxy
74-
install -d -m755 %{buildroot}%{_unitdir}
7574
install -m644 examples/gssproxy.conf %{buildroot}%{_sysconfdir}/gssproxy/gssproxy.conf
7675
mkdir -p %{buildroot}%{_sysconfdir}/gss/mech.d
7776
install -m644 examples/mech %{buildroot}%{_sysconfdir}/gss/mech.d/gssproxy.conf
78-
install -m644 systemd/gssproxy.service %{buildroot}%{_unitdir}/gssproxy.service
7977

8078
%clean
8179
rm -rf %{buildroot}

0 commit comments

Comments
 (0)