summaryrefslogtreecommitdiffstats
path: root/kdesu/kdesud/Makefile.am
blob: 07e11dd15b3455321ea941f87ee31a9bc5c6d446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Makefile.am for kdesud

INCLUDES = $(all_includes)

KDE_CXXFLAGS = $(KDE_USE_FPIE)

bin_PROGRAMS = kdesud
kdesud_SOURCES = kdesud.cpp repo.cpp lexer.cpp handler.cpp secure.cpp 
kdesud_LDFLAGS = $(KDE_USE_PIE) $(all_libraries) $(KDE_RPATH)
kdesud_LDADD = $(LIB_KDECORE) -lkdesu $(LIBSOCKET)
noinst_HEADERS = repo.h handler.h lexer.h secure.h

## kdesud needs to be suid or sgid something
install-data-local:
	@echo "********************************************************"
	@echo ""
	@echo "For security reasons, kdesud is installed setgid nogroup."
	@echo "Kdesud is the daemon that implements the password caching."
	@echo ""
	@echo "You should NOT use the password caching feature if kdesud is"
	@echo "not installed setgid nogroup."
	@echo ""
	@echo "********************************************************"

install-exec-hook: 
	@(chown root:@nogroup@ $(DESTDIR)$(bindir)/kdesud && chmod 2755  $(DESTDIR)$(bindir)/kdesud) \
	|| echo "Error: Could not install kdesud as setgid nogroup!!\n" \
	"The password caching feature is disabled."

messages:
	$(XGETTEXT) $(kdesud_SOURCES) -o $(podir)/kdesud.pot