Skip to content

Commit

Permalink
Always generate gdnsd.service
Browse files Browse the repository at this point in the history
Some packaging systems that are systemd-aware might deal with
things better if "make install" doesn't install the unit file.
This gives them the option to use --without-systemdsystemunitdir
to avoid installation, but still have a generated unit file at a
known path in the build tree to pick up with their own tools.
  • Loading branch information
blblack committed Oct 17, 2014
1 parent 79ba581 commit bd0e907
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions INSTALL
Expand Up @@ -41,10 +41,10 @@ Interesting / Non-standard autoconf options
autoconf's prefix at all; it will still pick e.g.
"/usr/lib/systemd/system" even when --prefix is "/usr/local".
If pkg-config and/or systemd do not exist and this is not set manually
the unit file is neither generated nor installed.
To disable the generation and installation of the unit file on systems
which have systemd software installed (but e.g. are not using it for
the init system), use --without-systemdsystemunitdir.
the unit file is generated, but not installed.
To disable the installation of the unit file on systems which have
systemd software installed (but e.g. are not using it for the init
system), use --without-systemdsystemunitdir

--without-urcu
Explicitly disable support for liburcu (falls back to pthread rwlocks)
Expand Down
8 changes: 6 additions & 2 deletions sysd/Makefile.am
@@ -1,13 +1,13 @@
EXTRA_DIST = gdnsd.service.tmpl

if DO_SYSD_UNITFILE

gdnsd.service: gdnsd.service.tmpl
$(AM_V_GEN)sed 's|@GDNSD_SBINDIR[@]|$(sbindir)|g' <$< >$@

clean-local:
rm -f $(builddir)/gdnsd.service

if DO_SYSD_UNITFILE

systemdsystemunit_DATA = gdnsd.service

install-exec-hook:
Expand All @@ -21,4 +21,8 @@ install-exec-hook:
@echo systemctl start gdnsd
@echo

else

noinst_SCRIPTS = gdnsd.service

endif

0 comments on commit bd0e907

Please sign in to comment.