Skip to content

Commit

Permalink
Use autoconf sbindir in systemd units
Browse files Browse the repository at this point in the history
  • Loading branch information
seblu committed Apr 19, 2015
1 parent f74595c commit 632064d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ datarootdir =

.PHONY: clean distclean

all: fcgiwrap
all: fcgiwrap systemd/[email protected] systemd/[email protected]
install: all
install -d -m 755 $(targetdir)
install -m 755 fcgiwrap $(targetdir)
Expand All @@ -21,9 +21,16 @@ CFLAGS = @AM_CFLAGS@

fcgiwrap: fcgiwrap.c

systemd/[email protected]: systemd/[email protected]
$(SED) -e 's,[@]sbindir[@],@sbindir@,g' < $< > $@

systemd/[email protected]: systemd/[email protected]
$(SED) -e 's,[@]sbindir[@],@sbindir@,g' < $< > $@

#>+ 21
clean:
-rm -f fcgiwrap
-rm -f systemd/[email protected] systemd/[email protected]

#>+ 21
distclean: clean
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ AC_SUBST([AM_CFLAGS])
# Checks for programs.
AC_PROG_CC
PKG_PROG_PKG_CONFIG
AC_PROG_SED

# Create the config.h.
AC_CONFIG_HEADERS([config.h])
Expand Down
2 changes: 1 addition & 1 deletion systemd/[email protected] → systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Description=Simple CGI Server for user %I
After=nss-user-lookup.target

[Service]
ExecStart=/usr/sbin/fcgiwrap -s /run/fcgiwrap-%I.sock
ExecStart=@sbindir@/fcgiwrap -s /run/fcgiwrap-%I.sock
User=%I
File renamed without changes.

0 comments on commit 632064d

Please sign in to comment.