summaryrefslogtreecommitdiffstats
path: root/proxy/Makefile.am
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-12-12 15:43:17 -0500
committerSimo Sorce <simo@redhat.com>2012-01-04 19:19:54 -0500
commit0d39e7a43a585a46e9cb6c755d97003470c5bd54 (patch)
tree6f54cf7e09f0188d46e8e6ecf85e4c58d9412d31 /proxy/Makefile.am
parentd82bf26a6d4d44e3c6f5473f4dad508564e4cdd7 (diff)
downloadgss-proxy-0d39e7a43a585a46e9cb6c755d97003470c5bd54.tar.gz
gss-proxy-0d39e7a43a585a46e9cb6c755d97003470c5bd54.tar.xz
gss-proxy-0d39e7a43a585a46e9cb6c755d97003470c5bd54.zip
Intial skeleton gssproxy daemon
Diffstat (limited to 'proxy/Makefile.am')
-rw-r--r--proxy/Makefile.am198
1 files changed, 198 insertions, 0 deletions
diff --git a/proxy/Makefile.am b/proxy/Makefile.am
new file mode 100644
index 0000000..9f5f8f1
--- /dev/null
+++ b/proxy/Makefile.am
@@ -0,0 +1,198 @@
+SUBDIRS =
+#SUBDIRS += po
+
+if HAVE_MANPAGES
+SUBDIRS += man
+endif
+
+# Some old versions of automake don't define builddir
+builddir ?= .
+
+DOXYGEN = @DOXYGEN@
+
+DISTSETUPOPTS =
+if HAVE_DEBIAN
+DISTSETUPOPTS += --install-layout=deb
+endif
+
+gssplibdir = $(libdir)/gssproxy
+gsspconfdir = $(sysconfdir)/gssproxy
+localedir = @localedir@
+
+pidpath = @pidpath@
+pipepath = @pipepath@
+initdir = @initdir@
+systemdunitdir = @systemdunitdir@
+logpath = @logpath@
+pubconfpath = @pubconfpath@
+pkgconfigdir = $(libdir)/pkgconfig
+
+AM_CFLAGS =
+if WANT_AUX_INFO
+ AM_CFLAGS += -aux-info $@.X
+endif
+if HAVE_GCC
+ AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
+ -Wcast-qual -Wcast-align -Wwrite-strings \
+ -Werror-implicit-function-declaration \
+ -fno-strict-aliasing
+endif
+
+dist_pkgconfig_DATA =
+
+ACLOCAL_AMFLAGS = -I m4 -I .
+
+sbin_PROGRAMS = \
+ gssproxy
+
+dist_noinst_SCRIPTS =
+
+dist_noinst_DATA =
+
+###############################
+# Global compilation settings #
+###############################
+
+AM_CPPFLAGS = \
+ -Wall \
+ -Iinclude \
+ -I.. \
+ -I$(srcdir)/include \
+ -I$(srcdir) \
+ -Iinclude \
+ -I. \
+ $(POPT_CFLAGS) \
+ -DLIBDIR=\"$(libdir)\" \
+ -DVARDIR=\"$(localstatedir)\" \
+ -DSHLIBEXT=\"$(SHLIBEXT)\" \
+ -DGSS_PROXY_CONF_DIR=\"$(gsspconfdir)\" \
+ -DGSS_PROXY_SOCKET_NAME=\"$(pipepath)/gssproxy.socket\" \
+ -DLOCALEDIR=\"$(localedir)\"
+
+EXTRA_DIST = build/config.rpath
+
+GSS_PROXY_LIBS = $(POPT_LIBS) $(KRB5_LIBS)
+
+if BUILD_SELINUX
+ GSS_PROXY_LIBS += $(SELINUX_LIBS)
+endif
+
+dist_noinst_HEADERS =
+
+####################
+# Program Binaries #
+####################
+gssproxy_SOURCES = \
+ src/gssproxy.c
+gssproxy_LDADD = \
+ $(GSS_PROXY_LIBS)
+
+dist_noinst_DATA += \
+ examples/gssproxy-example.conf \
+ m4
+
+noinst_PROGRAMS =
+
+################
+# TRANSLATIONS #
+################
+update-po:
+if HAVE_MANPAGES
+ $(MAKE) -C man update-po
+endif
+# $(MAKE) -C po update-po
+
+#######################
+# Installation Extras #
+#######################
+
+dist_init_SCRIPTS =
+dist_systemdunit_DATA =
+if HAVE_SYSTEMD_UNIT
+ dist_systemdunit_DATA += \
+ systemd/gssproxy.service
+endif
+
+installgsspdirs::
+ mkdir -p \
+ $(DESTDIR)$(includedir) \
+ $(DESTDIR)$(libdir) \
+ $(DESTDIR)$(sbindir) \
+ $(DESTDIR)$(mandir) \
+ $(DESTDIR)$(gsspconfdir) \
+ $(DESTDIR)$(pidpath) \
+ $(DESTDIR)$(pipepath) \
+ $(DESTDIR)$(logpath) \
+ $(DESTDIR)$(pubconfpath)
+
+if HAVE_DOXYGEN
+docs:
+ $(DOXYGEN) doxy.config
+else
+docs:
+ @echo "Doxygen not installed, cannot generate documentation"
+ @exit 1
+endif
+
+install-exec-hook: installgsspdirs
+ mkdir -p doc $(DESTDIR)/$(docdir); cp -a doc $(DESTDIR)/$(docdir)/
+if HAVE_SYSTEMD_UNIT
+ mkdir -p $(DESTDIR)$(systemdunitdir)
+else
+ mkdir -p $(DESTDIR)$(initdir)
+endif
+
+clean-local:
+ rm -Rf doc
+
+CLEANFILES = *.X */*.X */*/*.X
+
+# RPM-related tasks
+
+RPMBUILD ?= $(PWD)/rpmbuild
+
+dist_noinst_DATA += \
+ m4 \
+ contrib/gssproxy.spec.in \
+ BUILD.txt \
+ COPYING
+
+rpmroot:
+ mkdir -p $(RPMBUILD)/BUILD
+ mkdir -p $(RPMBUILD)/RPMS
+ mkdir -p $(RPMBUILD)/SOURCES
+ mkdir -p $(RPMBUILD)/SPECS
+ mkdir -p $(RPMBUILD)/SRPMS
+
+rpms: dist-gzip rpmroot
+ cp $(builddir)/contrib/gssproxy.spec $(RPMBUILD)/SPECS
+ cp $(distdir).tar.gz $(RPMBUILD)/SOURCES
+ cd $(RPMBUILD); \
+ rpmbuild --define "_topdir $(RPMBUILD)" -ba SPECS/gssproxy.spec
+
+if GIT_CHECKOUT
+prerelease-rpms:
+ cp $(srcdir)/version.m4 $(srcdir)/version.m4.orig
+ sed -e "s/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.*\])/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.`date +%Y%m%d.%H%M`.git`git log -1 --pretty=format:%h`\])/" < $(srcdir)/version.m4.orig > $(srcdir)/version.m4
+ $(MAKE) rpms
+ mv $(srcdir)/version.m4.orig $(srcdir)/version.m4
+endif
+
+# make srpms will use the old digest algorithm to be compatible
+# with RHEL5
+srpm: dist-gzip rpmroot
+ cp $(builddir)/contrib/gssproxy.spec $(RPMBUILD)/SPECS
+ cp $(distdir).tar.gz $(RPMBUILD)/SOURCES
+ cd $(RPMBUILD); \
+ rpmbuild --define "_topdir $(RPMBUILD)" \
+ --define _source_filedigest_algorithm=1 \
+ -bs SPECS/gssproxy.spec
+
+if GIT_CHECKOUT
+prerelease-srpm:
+ cp $(srcdir)/version.m4 $(srcdir)/version.m4.orig
+ sed -e "s/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.*\])/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.`date +%Y%m%d.%H%M`.git`git log -1 --pretty=format:%h`\])/" < $(srcdir)/version.m4.orig > $(srcdir)/version.m4
+ $(MAKE) srpm
+ mv $(srcdir)/version.m4.orig $(srcdir)/version.m4
+endif
+