]> code.delx.au - pulseaudio/commitdiff
make daemon.conf/client.conf autogenerated
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Sep 2004 19:52:38 +0000 (19:52 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Sep 2004 19:52:38 +0000 (19:52 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@211 fefdeb5f-60dc-0310-8127-8f9354f1896f

polyp/Makefile.am
polyp/client.conf.in [moved from polyp/client.conf with 97% similarity]
polyp/daemon.conf.in [moved from polyp/daemon.conf with 100% similarity]

index d49c7c48182382357cca10213453ad2b9f6b9b3a..76f4f2c718c2980959987adcf07b9157572acbc3 100644 (file)
@@ -32,7 +32,7 @@ AM_CFLAGS+=-DPOLYPAUDIO_BINARY=\"$(bindir)/polypaudio\"
 AM_LDADD=$(PTHREAD_LIBS) -lm
 AM_LIBADD=$(PTHREAD_LIBS) -lm
 
-EXTRA_DIST = default.pa daemon.conf client.conf config depmod.py esdcompat.sh.in
+EXTRA_DIST = default.pa daemon.conf.in client.conf.in config depmod.py esdcompat.sh.in
 bin_PROGRAMS = polypaudio pacat pactl
 bin_SCRIPTS = esdcompat.sh
 noinst_PROGRAMS = \
@@ -541,6 +541,13 @@ esdcompat.sh: esdcompat.sh.in Makefile
        sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
                -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
                -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
+               
+client.conf: client.conf.in Makefile
+       sed -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
+
+daemon.conf: daemon.conf.in Makefile
+       sed -e 's,@DLSEARCHPATH\@,$(modlibdir),g' \
+               -e 's,@DEFAULT_CONFIG_FILE\@,$(polypconfdir)/daemon.conf,g' < $< > $@
 
 install-exec-hook:
        chown root:root $(DESTDIR)$(bindir)/polypaudio
similarity index 97%
rename from polyp/client.conf
rename to polyp/client.conf.in
index 070d75bd204196c2d650e7f826440e4088b6aaa8..7ba6549bedea1939ca650117e815b33a481ff7b6 100644 (file)
@@ -21,7 +21,7 @@
 ## commented out.  Use either ; or # for commenting
 
 ## Path to the polypaudio daemon to run when autospawning.
-; daemon_binary = @POLYPAUDIO_BINARY
+; daemon_binary = @POLYPAUDIO_BINARY@
 
 ## Extra arguments to pass to the polypaudio daemon
 ; extra_arguments = --daemonize=yes --log-target=syslog
similarity index 100%
rename from polyp/daemon.conf
rename to polyp/daemon.conf.in