Blame SOURCES/system-config-printer-smp-mflags.patch

0a882b
diff -up system-config-printer-1.4.1/Makefile.am.smp-mflags system-config-printer-1.4.1/Makefile.am
0a882b
--- system-config-printer-1.4.1/Makefile.am.smp-mflags	2013-05-09 12:10:43.000000000 +0100
0a882b
+++ system-config-printer-1.4.1/Makefile.am	2013-12-06 15:54:31.284123059 +0000
0a882b
@@ -82,6 +82,7 @@ clean-local:
0a882b
 		done;						\
0a882b
 	fi
0a882b
 	rm -f .stamp-distutils-in-builddir
0a882b
+	rm -f .stamp-man-pages-built
0a882b
 
0a882b
 nobase_pkgdata_SCRIPTS=				\
0a882b
 	check-device-ids.py			\
0a882b
@@ -179,21 +180,17 @@ bin_SCRIPTS=					\
0a882b
 	dbus/scp-dbus-service
0a882b
 
0a882b
 if UDEV_RULES
0a882b
-udevrulesdir=$(sysconfdir)/udev/rules.d
0a882b
 udevrules_DATA=udev/70-printers.rules
0a882b
 udev_udev_configure_printer_SOURCES=\
0a882b
 	udev/udev-configure-printer.c
0a882b
 udev_udev_configure_printer_LDADD= -lcups -ludev $(libusb_LIBS) $(GLIB_LIBS)
0a882b
 udev_udev_configure_printer_CFLAGS= $(AM_CFLAGS) $(libusb_CFLAGS) $(GLIB_CFLAGS)
0a882b
-udevhelperdir=$(sysconfdir)/udev
0a882b
-udevhelper_PROGRAMS=\
0a882b
+udev_PROGRAMS=\
0a882b
 	udev/udev-configure-printer
0a882b
-udevhelper_SCRIPTS=\
0a882b
+udev_SCRIPTS=\
0a882b
 	udev/udev-add-printer
0a882b
 
0a882b
 if HAVE_SYSTEMD
0a882b
-%.service: %.service.in
0a882b
-	$(AM_V_GEN)sed -e 's,@udevhelperdir\@,$(udevhelperdir),g' $< > $@
0a882b
 systemdsystemunit_DATA = \
0a882b
 	udev/configure-printer@.service
0a882b
 CLEANFILES = \
0a882b
@@ -281,8 +278,11 @@ EXTRA_DIST=\
0a882b
 @INTLTOOL_DESKTOP_RULE@
0a882b
 
0a882b
 # The man pages are generated from DocBook XML.
0a882b
-$(man_MANS): $(top_srcdir)/man/system-config-printer.xml
0a882b
+.stamp-man-pages-built: $(top_srcdir)/man/system-config-printer.xml
0a882b
 	xmlto man -o man $<
0a882b
+	touch .stamp-man-pages-built
0a882b
+
0a882b
+$(man_MANS): .stamp-man-pages-built
0a882b
 
0a882b
 html:	$(EXPORT_MODULES) $(EXPORT_MODULES_GEN)
0a882b
 	rm -rf html
0a882b
diff -up system-config-printer-1.4.1/configure.in.smp-mflags system-config-printer-1.4.1/configure.in
0a882b
--- system-config-printer-1.4.1/configure.in.smp-mflags	2013-05-09 15:21:54.000000000 +0100
0a882b
+++ system-config-printer-1.4.1/configure.in	2013-12-06 15:54:31.284123059 +0000
0a882b
@@ -44,13 +44,22 @@ AC_ARG_WITH(udev-rules,
0a882b
 	    [with_udev_rules=no])
0a882b
 AM_CONDITIONAL([UDEV_RULES], [test x$with_udev_rules != xno])
0a882b
 
0a882b
-if test x$with_udev_rules != xno; then
0a882b
+AC_ARG_WITH([udevdir],
0a882b
+	AS_HELP_STRING([--with-udevdir=DIR], [Directory for udev helper programs]),
0a882b
+	[], [with_udevdir=$($PKG_CONFIG --variable=udevdir udev)])
0a882b
+if test "x$with_udevdir" != xno; then
0a882b
+	AC_SUBST([udevdir], [$with_udevdir])
0a882b
+	AC_SUBST([udevrulesdir], [$with_udevdir/rules.d])
0a882b
+fi
0a882b
+
0a882b
+if test "x$with_udev_rules" != xno -a "x$with_udevdir" != xno; then
0a882b
    PKG_CHECK_MODULES(libudev, [libudev >= 172], has_libudev=yes, has_libudev=no)
0a882b
    PKG_CHECK_MODULES(libusb, libusb-1.0, has_libusb=yes, has_libusb=no)
0a882b
    if test x$has_glib == xno -o \
0a882b
+           x$has_udev == xno -o \
0a882b
            x$has_libudev == xno -o \
0a882b
-           x$has_libusb == xno; then
0a882b
-      AC_MSG_ERROR([Missing libraries])
0a882b
+           x$has_libusb == xno ; then
0a882b
+      AC_MSG_ERROR([Missing packages])
0a882b
    fi
0a882b
 
0a882b
    AM_PROG_CC_C_O
0a882b
@@ -73,5 +82,6 @@ system-config-printer
0a882b
 system-config-printer-applet
0a882b
 install-printerdriver
0a882b
 dbus/scp-dbus-service
0a882b
+udev/configure-printer@.service
0a882b
 ])
0a882b
 AC_OUTPUT
0a882b
diff -up system-config-printer-1.4.1/aclocal.m4.smp-mflags system-config-printer-1.4.1/aclocal.m4
0a882b
--- system-config-printer-1.4.1/aclocal.m4.smp-mflags	2013-05-09 15:22:20.000000000 +0100
0a882b
+++ system-config-printer-1.4.1/aclocal.m4	2013-12-06 15:55:20.292345927 +0000
0a882b
@@ -6,7 +6,7 @@
0a882b
 # gives unlimited permission to copy and/or distribute it,
0a882b
 # with or without modifications, as long as this notice is preserved.
0a882b
 
0a882b
-# This program is distributed in the hope that it will be useful,
0a882b
+# This program is distributed in the hope that it will be useful,
0a882b
 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
0a882b
 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
0a882b
 # PARTICULAR PURPOSE.
0a882b
diff -up system-config-printer-1.4.1/Makefile.in.smp-mflags system-config-printer-1.4.1/Makefile.in
0a882b
--- system-config-printer-1.4.1/Makefile.in.smp-mflags	2013-05-09 15:22:22.000000000 +0100
0a882b
+++ system-config-printer-1.4.1/Makefile.in	2013-12-06 15:54:31.286123068 +0000
0a882b
@@ -52,8 +52,7 @@ PRE_UNINSTALL = :
0a882b
 POST_UNINSTALL = :
0a882b
 build_triplet = @build@
0a882b
 host_triplet = @host@
0a882b
-@UDEV_RULES_TRUE@udevhelper_PROGRAMS =  \
0a882b
-@UDEV_RULES_TRUE@	udev/udev-configure-printer$(EXEEXT)
0a882b
+@UDEV_RULES_TRUE@udev_PROGRAMS = udev/udev-configure-printer$(EXEEXT)
0a882b
 subdir = .
0a882b
 DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
0a882b
 	$(srcdir)/Makefile.in $(srcdir)/Makefile.am \
0a882b
@@ -61,8 +60,9 @@ DIST_COMMON = INSTALL NEWS README AUTHOR
0a882b
 	$(srcdir)/system-config-printer.in \
0a882b
 	$(srcdir)/system-config-printer-applet.in \
0a882b
 	$(srcdir)/install-printerdriver.in \
0a882b
-	$(top_srcdir)/dbus/scp-dbus-service.in ABOUT-NLS depcomp \
0a882b
-	test-driver COPYING compile config.guess config.rpath \
0a882b
+	$(top_srcdir)/dbus/scp-dbus-service.in \
0a882b
+	$(top_srcdir)/udev/configure-printer@.service.in ABOUT-NLS \
0a882b
+	depcomp test-driver COPYING compile config.guess config.rpath \
0a882b
 	config.sub install-sh missing
0a882b
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
0a882b
 am__aclocal_m4_deps = $(top_srcdir)/configure.in
0a882b
@@ -73,16 +73,16 @@ am__CONFIG_DISTCLEAN_FILES = config.stat
0a882b
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
0a882b
 CONFIG_CLEAN_FILES = system-config-printer \
0a882b
 	system-config-printer-applet install-printerdriver \
0a882b
-	dbus/scp-dbus-service
0a882b
+	dbus/scp-dbus-service udev/configure-printer@.service
0a882b
 CONFIG_CLEAN_VPATH_FILES =
0a882b
-am__installdirs = "$(DESTDIR)$(udevhelperdir)" "$(DESTDIR)$(bindir)" \
0a882b
-	"$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(udevhelperdir)" \
0a882b
+am__installdirs = "$(DESTDIR)$(udevdir)" "$(DESTDIR)$(bindir)" \
0a882b
+	"$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(udevdir)" \
0a882b
 	"$(DESTDIR)$(man1dir)" "$(DESTDIR)$(cupshelpersdir)" \
0a882b
 	"$(DESTDIR)$(dbusdir)" "$(DESTDIR)$(dbusinterfacesdir)" \
0a882b
 	"$(DESTDIR)$(dbusservicesdir)" "$(DESTDIR)$(desktopdir)" \
0a882b
 	"$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(systemdsystemunitdir)" \
0a882b
 	"$(DESTDIR)$(udevrulesdir)"
0a882b
-PROGRAMS = $(udevhelper_PROGRAMS)
0a882b
+PROGRAMS = $(udev_PROGRAMS)
0a882b
 am__udev_udev_configure_printer_SOURCES_DIST =  \
0a882b
 	udev/udev-configure-printer.c
0a882b
 am__dirstamp = $(am__leading_dot)dirstamp
0a882b
@@ -122,8 +122,7 @@ am__uninstall_files_from_dir = { \
0a882b
     || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
0a882b
          $(am__cd) "$$dir" && rm -f $$files; }; \
0a882b
   }
0a882b
-SCRIPTS = $(bin_SCRIPTS) $(nobase_pkgdata_SCRIPTS) \
0a882b
-	$(udevhelper_SCRIPTS)
0a882b
+SCRIPTS = $(bin_SCRIPTS) $(nobase_pkgdata_SCRIPTS) $(udev_SCRIPTS)
0a882b
 AM_V_P = $(am__v_P_@AM_V@)
0a882b
 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
0a882b
 am__v_P_0 = false
0a882b
@@ -572,6 +571,8 @@ target_alias = @target_alias@
0a882b
 top_build_prefix = @top_build_prefix@
0a882b
 top_builddir = @top_builddir@
0a882b
 top_srcdir = @top_srcdir@
0a882b
+udevdir = @udevdir@
0a882b
+udevrulesdir = @udevrulesdir@
0a882b
 SUBDIRS = po
0a882b
 EXPORT_MODULES = \
0a882b
 	cupshelpers/__init__.py			\
0a882b
@@ -679,15 +680,13 @@ bin_SCRIPTS = \
0a882b
 	system-config-printer-applet		\
0a882b
 	dbus/scp-dbus-service
0a882b
 
0a882b
-@UDEV_RULES_TRUE@udevrulesdir = $(sysconfdir)/udev/rules.d
0a882b
 @UDEV_RULES_TRUE@udevrules_DATA = udev/70-printers.rules
0a882b
 @UDEV_RULES_TRUE@udev_udev_configure_printer_SOURCES = \
0a882b
 @UDEV_RULES_TRUE@	udev/udev-configure-printer.c
0a882b
 
0a882b
 @UDEV_RULES_TRUE@udev_udev_configure_printer_LDADD = -lcups -ludev $(libusb_LIBS) $(GLIB_LIBS)
0a882b
 @UDEV_RULES_TRUE@udev_udev_configure_printer_CFLAGS = $(AM_CFLAGS) $(libusb_CFLAGS) $(GLIB_CFLAGS)
0a882b
-@UDEV_RULES_TRUE@udevhelperdir = $(sysconfdir)/udev
0a882b
-@UDEV_RULES_TRUE@udevhelper_SCRIPTS = \
0a882b
+@UDEV_RULES_TRUE@udev_SCRIPTS = \
0a882b
 @UDEV_RULES_TRUE@	udev/udev-add-printer
0a882b
 
0a882b
 @HAVE_SYSTEMD_TRUE@@UDEV_RULES_TRUE@systemdsystemunit_DATA = \
0a882b
@@ -802,12 +801,14 @@ install-printerdriver: $(top_builddir)/c
0a882b
 	cd $(top_builddir) && $(SHELL) ./config.status $@
0a882b
 dbus/scp-dbus-service: $(top_builddir)/config.status $(top_srcdir)/dbus/scp-dbus-service.in
0a882b
 	cd $(top_builddir) && $(SHELL) ./config.status $@
0a882b
-install-udevhelperPROGRAMS: $(udevhelper_PROGRAMS)
0a882b
+udev/configure-printer@.service: $(top_builddir)/config.status $(top_srcdir)/udev/configure-printer@.service.in
0a882b
+	cd $(top_builddir) && $(SHELL) ./config.status $@
0a882b
+install-udevPROGRAMS: $(udev_PROGRAMS)
0a882b
 	@$(NORMAL_INSTALL)
0a882b
-	@list='$(udevhelper_PROGRAMS)'; test -n "$(udevhelperdir)" || list=; \
0a882b
+	@list='$(udev_PROGRAMS)'; test -n "$(udevdir)" || list=; \
0a882b
 	if test -n "$$list"; then \
0a882b
-	  echo " $(MKDIR_P) '$(DESTDIR)$(udevhelperdir)'"; \
0a882b
-	  $(MKDIR_P) "$(DESTDIR)$(udevhelperdir)" || exit 1; \
0a882b
+	  echo " $(MKDIR_P) '$(DESTDIR)$(udevdir)'"; \
0a882b
+	  $(MKDIR_P) "$(DESTDIR)$(udevdir)" || exit 1; \
0a882b
 	fi; \
0a882b
 	for p in $$list; do echo "$$p $$p"; done | \
0a882b
 	sed 's/$(EXEEXT)$$//' | \
0a882b
@@ -826,24 +827,24 @@ install-udevhelperPROGRAMS: $(udevhelper
0a882b
 	while read type dir files; do \
0a882b
 	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
0a882b
 	    test -z "$$files" || { \
0a882b
-	      echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(udevhelperdir)$$dir'"; \
0a882b
-	      $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(udevhelperdir)$$dir" || exit $$?; \
0a882b
+	      echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(udevdir)$$dir'"; \
0a882b
+	      $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(udevdir)$$dir" || exit $$?; \
0a882b
 	    } \
0a882b
 	; done
0a882b
 
0a882b
-uninstall-udevhelperPROGRAMS:
0a882b
+uninstall-udevPROGRAMS:
0a882b
 	@$(NORMAL_UNINSTALL)
0a882b
-	@list='$(udevhelper_PROGRAMS)'; test -n "$(udevhelperdir)" || list=; \
0a882b
+	@list='$(udev_PROGRAMS)'; test -n "$(udevdir)" || list=; \
0a882b
 	files=`for p in $$list; do echo "$$p"; done | \
0a882b
 	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
0a882b
 	      -e 's/$$/$(EXEEXT)/' \
0a882b
 	`; \
0a882b
 	test -n "$$list" || exit 0; \
0a882b
-	echo " ( cd '$(DESTDIR)$(udevhelperdir)' && rm -f" $$files ")"; \
0a882b
-	cd "$(DESTDIR)$(udevhelperdir)" && rm -f $$files
0a882b
+	echo " ( cd '$(DESTDIR)$(udevdir)' && rm -f" $$files ")"; \
0a882b
+	cd "$(DESTDIR)$(udevdir)" && rm -f $$files
0a882b
 
0a882b
-clean-udevhelperPROGRAMS:
0a882b
-	-test -z "$(udevhelper_PROGRAMS)" || rm -f $(udevhelper_PROGRAMS)
0a882b
+clean-udevPROGRAMS:
0a882b
+	-test -z "$(udev_PROGRAMS)" || rm -f $(udev_PROGRAMS)
0a882b
 udev/$(am__dirstamp):
0a882b
 	@$(MKDIR_P) udev
0a882b
 	@: > udev/$(am__dirstamp)
0a882b
@@ -932,12 +933,12 @@ uninstall-nobase_pkgdataSCRIPTS:
0a882b
 	files=`$(am__nobase_strip) \
0a882b
 	       -e 'h;s,.*/,,;$(transform);x;s|[^/]*$$||;G;s,\n,,'`; \
0a882b
 	dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir)
0a882b
-install-udevhelperSCRIPTS: $(udevhelper_SCRIPTS)
0a882b
+install-udevSCRIPTS: $(udev_SCRIPTS)
0a882b
 	@$(NORMAL_INSTALL)
0a882b
-	@list='$(udevhelper_SCRIPTS)'; test -n "$(udevhelperdir)" || list=; \
0a882b
+	@list='$(udev_SCRIPTS)'; test -n "$(udevdir)" || list=; \
0a882b
 	if test -n "$$list"; then \
0a882b
-	  echo " $(MKDIR_P) '$(DESTDIR)$(udevhelperdir)'"; \
0a882b
-	  $(MKDIR_P) "$(DESTDIR)$(udevhelperdir)" || exit 1; \
0a882b
+	  echo " $(MKDIR_P) '$(DESTDIR)$(udevdir)'"; \
0a882b
+	  $(MKDIR_P) "$(DESTDIR)$(udevdir)" || exit 1; \
0a882b
 	fi; \
0a882b
 	for p in $$list; do \
0a882b
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
0a882b
@@ -956,17 +957,17 @@ install-udevhelperSCRIPTS: $(udevhelper_
0a882b
 	while read type dir files; do \
0a882b
 	     if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
0a882b
 	     test -z "$$files" || { \
0a882b
-	       echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(udevhelperdir)$$dir'"; \
0a882b
-	       $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(udevhelperdir)$$dir" || exit $$?; \
0a882b
+	       echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(udevdir)$$dir'"; \
0a882b
+	       $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(udevdir)$$dir" || exit $$?; \
0a882b
 	     } \
0a882b
 	; done
0a882b
 
0a882b
-uninstall-udevhelperSCRIPTS:
0a882b
+uninstall-udevSCRIPTS:
0a882b
 	@$(NORMAL_UNINSTALL)
0a882b
-	@list='$(udevhelper_SCRIPTS)'; test -n "$(udevhelperdir)" || exit 0; \
0a882b
+	@list='$(udev_SCRIPTS)'; test -n "$(udevdir)" || exit 0; \
0a882b
 	files=`for p in $$list; do echo "$$p"; done | \
0a882b
 	       sed -e 's,.*/,,;$(transform)'`; \
0a882b
-	dir='$(DESTDIR)$(udevhelperdir)'; $(am__uninstall_files_from_dir)
0a882b
+	dir='$(DESTDIR)$(udevdir)'; $(am__uninstall_files_from_dir)
0a882b
 
0a882b
 mostlyclean-compile:
0a882b
 	-rm -f *.$(OBJEXT)
0a882b
@@ -1666,7 +1667,7 @@ check: check-recursive
0a882b
 all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) all-local
0a882b
 installdirs: installdirs-recursive
0a882b
 installdirs-am:
0a882b
-	for dir in "$(DESTDIR)$(udevhelperdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(udevhelperdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(cupshelpersdir)" "$(DESTDIR)$(dbusdir)" "$(DESTDIR)$(dbusinterfacesdir)" "$(DESTDIR)$(dbusservicesdir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(systemdsystemunitdir)" "$(DESTDIR)$(udevrulesdir)"; do \
0a882b
+	for dir in "$(DESTDIR)$(udevdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(udevdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(cupshelpersdir)" "$(DESTDIR)$(dbusdir)" "$(DESTDIR)$(dbusinterfacesdir)" "$(DESTDIR)$(dbusservicesdir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(systemdsystemunitdir)" "$(DESTDIR)$(udevrulesdir)"; do \
0a882b
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
0a882b
 	done
0a882b
 install: install-recursive
0a882b
@@ -1708,8 +1709,7 @@ maintainer-clean-generic:
0a882b
 	@echo "it deletes files that may require special tools to rebuild."
0a882b
 clean: clean-recursive
0a882b
 
0a882b
-clean-am: clean-generic clean-local clean-udevhelperPROGRAMS \
0a882b
-	mostlyclean-am
0a882b
+clean-am: clean-generic clean-local clean-udevPROGRAMS mostlyclean-am
0a882b
 
0a882b
 distclean: distclean-recursive
0a882b
 	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
0a882b
@@ -1732,8 +1732,7 @@ install-data-am: install-cupshelpersDATA
0a882b
 	install-dbusinterfacesDATA install-dbusservicesDATA \
0a882b
 	install-desktopDATA install-man install-nobase_pkgdataDATA \
0a882b
 	install-nobase_pkgdataSCRIPTS install-systemdsystemunitDATA \
0a882b
-	install-udevhelperPROGRAMS install-udevhelperSCRIPTS \
0a882b
-	install-udevrulesDATA
0a882b
+	install-udevPROGRAMS install-udevSCRIPTS install-udevrulesDATA
0a882b
 
0a882b
 install-dvi: install-dvi-recursive
0a882b
 
0a882b
@@ -1785,8 +1784,8 @@ uninstall-am: uninstall-binSCRIPTS unins
0a882b
 	uninstall-dbusservicesDATA uninstall-desktopDATA \
0a882b
 	uninstall-local uninstall-man uninstall-nobase_pkgdataDATA \
0a882b
 	uninstall-nobase_pkgdataSCRIPTS \
0a882b
-	uninstall-systemdsystemunitDATA uninstall-udevhelperPROGRAMS \
0a882b
-	uninstall-udevhelperSCRIPTS uninstall-udevrulesDATA
0a882b
+	uninstall-systemdsystemunitDATA uninstall-udevPROGRAMS \
0a882b
+	uninstall-udevSCRIPTS uninstall-udevrulesDATA
0a882b
 
0a882b
 uninstall-man: uninstall-man1
0a882b
 
0a882b
@@ -1794,7 +1793,7 @@ uninstall-man: uninstall-man1
0a882b
 
0a882b
 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \
0a882b
 	am--refresh check check-TESTS check-am clean clean-cscope \
0a882b
-	clean-generic clean-local clean-udevhelperPROGRAMS cscope \
0a882b
+	clean-generic clean-local clean-udevPROGRAMS cscope \
0a882b
 	cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
0a882b
 	dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \
0a882b
 	dist-zip distcheck distclean distclean-compile \
0a882b
@@ -1809,8 +1808,8 @@ uninstall-man: uninstall-man1
0a882b
 	install-man install-man1 install-nobase_pkgdataDATA \
0a882b
 	install-nobase_pkgdataSCRIPTS install-pdf install-pdf-am \
0a882b
 	install-ps install-ps-am install-strip \
0a882b
-	install-systemdsystemunitDATA install-udevhelperPROGRAMS \
0a882b
-	install-udevhelperSCRIPTS install-udevrulesDATA installcheck \
0a882b
+	install-systemdsystemunitDATA install-udevPROGRAMS \
0a882b
+	install-udevSCRIPTS install-udevrulesDATA installcheck \
0a882b
 	installcheck-am installdirs installdirs-am maintainer-clean \
0a882b
 	maintainer-clean-generic mostlyclean mostlyclean-compile \
0a882b
 	mostlyclean-generic pdf pdf-am ps ps-am recheck tags tags-am \
0a882b
@@ -1820,8 +1819,8 @@ uninstall-man: uninstall-man1
0a882b
 	uninstall-desktopDATA uninstall-local uninstall-man \
0a882b
 	uninstall-man1 uninstall-nobase_pkgdataDATA \
0a882b
 	uninstall-nobase_pkgdataSCRIPTS \
0a882b
-	uninstall-systemdsystemunitDATA uninstall-udevhelperPROGRAMS \
0a882b
-	uninstall-udevhelperSCRIPTS uninstall-udevrulesDATA
0a882b
+	uninstall-systemdsystemunitDATA uninstall-udevPROGRAMS \
0a882b
+	uninstall-udevSCRIPTS uninstall-udevrulesDATA
0a882b
 
0a882b
 
0a882b
 ### Automake hooks for Distutils.
0a882b
@@ -1893,9 +1892,7 @@ clean-local:
0a882b
 		done;						\
0a882b
 	fi
0a882b
 	rm -f .stamp-distutils-in-builddir
0a882b
-
0a882b
-@HAVE_SYSTEMD_TRUE@@UDEV_RULES_TRUE@%.service: %.service.in
0a882b
-@HAVE_SYSTEMD_TRUE@@UDEV_RULES_TRUE@	$(AM_V_GEN)sed -e 's,@udevhelperdir\@,$(udevhelperdir),g' $< > $@
0a882b
+	rm -f .stamp-man-pages-built
0a882b
 
0a882b
 install-desktopDATA: $(desktop_DATA)
0a882b
 	mkdir -p $(DESTDIR)$(desktopdir)
0a882b
@@ -1922,8 +1919,11 @@ uninstall-desktopDATA:
0a882b
 @INTLTOOL_DESKTOP_RULE@
0a882b
 
0a882b
 # The man pages are generated from DocBook XML.
0a882b
-$(man_MANS): $(top_srcdir)/man/system-config-printer.xml
0a882b
+.stamp-man-pages-built: $(top_srcdir)/man/system-config-printer.xml
0a882b
 	xmlto man -o man $<
0a882b
+	touch .stamp-man-pages-built
0a882b
+
0a882b
+$(man_MANS): .stamp-man-pages-built
0a882b
 
0a882b
 html:	$(EXPORT_MODULES) $(EXPORT_MODULES_GEN)
0a882b
 	rm -rf html
0a882b
diff -up system-config-printer-1.4.1/configure.smp-mflags system-config-printer-1.4.1/configure
0a882b
--- system-config-printer-1.4.1/configure.smp-mflags	2013-05-09 15:22:22.000000000 +0100
0a882b
+++ system-config-printer-1.4.1/configure	2013-12-06 15:54:31.287123073 +0000
0a882b
@@ -595,6 +595,8 @@ libusb_LIBS
0a882b
 libusb_CFLAGS
0a882b
 libudev_LIBS
0a882b
 libudev_CFLAGS
0a882b
+udevrulesdir
0a882b
+udevdir
0a882b
 UDEV_RULES_FALSE
0a882b
 UDEV_RULES_TRUE
0a882b
 GLIB_LIBS
0a882b
@@ -769,6 +771,7 @@ with_libiconv_prefix
0a882b
 with_libintl_prefix
0a882b
 with_desktop_vendor
0a882b
 with_udev_rules
0a882b
+with_udevdir
0a882b
 with_systemdsystemunitdir
0a882b
 '
0a882b
       ac_precious_vars='build_alias
0a882b
@@ -1430,6 +1433,7 @@ Optional Packages:
0a882b
                           desktop-file-install [default=]
0a882b
   --with-udev-rules       Enable automatic USB print queue configuration
0a882b
                           [default=no]
0a882b
+  --with-udevdir=DIR      Directory for udev helper programs
0a882b
   --with-systemdsystemunitdir=DIR
0a882b
                           Directory for systemd service files
0a882b
 
0a882b
@@ -7081,7 +7085,22 @@ else
0a882b
 fi
0a882b
 
0a882b
 
0a882b
-if test x$with_udev_rules != xno; then
0a882b
+
0a882b
+# Check whether --with-udevdir was given.
0a882b
+if test "${with_udevdir+set}" = set; then :
0a882b
+  withval=$with_udevdir;
0a882b
+else
0a882b
+  with_udevdir=$($PKG_CONFIG --variable=udevdir udev)
0a882b
+fi
0a882b
+
0a882b
+if test "x$with_udevdir" != xno; then
0a882b
+	udevdir=$with_udevdir
0a882b
+
0a882b
+	udevrulesdir=$with_udevdir/rules.d
0a882b
+
0a882b
+fi
0a882b
+
0a882b
+if test "x$with_udev_rules" != xno -a "x$with_udevdir" != xno; then
0a882b
 
0a882b
 pkg_failed=no
0a882b
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libudev" >&5
0a882b
@@ -7225,9 +7244,10 @@ $as_echo "yes" >&6; }
0a882b
 	has_libusb=yes
0a882b
 fi
0a882b
    if test x$has_glib == xno -o \
0a882b
+           x$has_udev == xno -o \
0a882b
            x$has_libudev == xno -o \
0a882b
-           x$has_libusb == xno; then
0a882b
-      as_fn_error $? "Missing libraries" "$LINENO" 5
0a882b
+           x$has_libusb == xno ; then
0a882b
+      as_fn_error $? "Missing packages" "$LINENO" 5
0a882b
    fi
0a882b
 
0a882b
    if test "x$CC" != xcc; then
0a882b
@@ -7500,7 +7520,7 @@ fi
0a882b
 
0a882b
 
0a882b
 ALL_LINGUAS="ar as bg bn_IN bn br bs ca cs cy da de el en_GB es et fa fi fr gu he hi hr hu hy id is it ja ka kn ko lo lv mai mk ml mr ms my nb nds nl nn or pa pl pt_BR pt ro ru si sk sl sr@latin sr sv ta te th tr uk vi zh_CN zh_TW"
0a882b
-ac_config_files="$ac_config_files Makefile po/Makefile.in system-config-printer system-config-printer-applet install-printerdriver dbus/scp-dbus-service"
0a882b
+ac_config_files="$ac_config_files Makefile po/Makefile.in system-config-printer system-config-printer-applet install-printerdriver dbus/scp-dbus-service udev/configure-printer@.service"
0a882b
 
0a882b
 cat >confcache <<\_ACEOF
0a882b
 # This file is a shell script that caches the results of configure
0a882b
@@ -8270,6 +8290,7 @@ do
0a882b
     "system-config-printer-applet") CONFIG_FILES="$CONFIG_FILES system-config-printer-applet" ;;
0a882b
     "install-printerdriver") CONFIG_FILES="$CONFIG_FILES install-printerdriver" ;;
0a882b
     "dbus/scp-dbus-service") CONFIG_FILES="$CONFIG_FILES dbus/scp-dbus-service" ;;
0a882b
+    "udev/configure-printer@.service") CONFIG_FILES="$CONFIG_FILES udev/configure-printer@.service" ;;
0a882b
     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
0a882b
 
0a882b
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
0a882b
diff -up system-config-printer-1.4.1/udev/configure-printer@.service.in.smp-mflags system-config-printer-1.4.1/udev/configure-printer@.service.in
0a882b
--- system-config-printer-1.4.1/udev/configure-printer@.service.in.smp-mflags	2013-02-19 16:18:36.000000000 +0000
0a882b
+++ system-config-printer-1.4.1/udev/configure-printer@.service.in	2013-12-06 15:54:31.287123073 +0000
0a882b
@@ -4,4 +4,4 @@ Requires=cups.socket
0a882b
 After=cups.socket
0a882b
 
0a882b
 [Service]
0a882b
-ExecStart=@udevhelperdir@/udev-configure-printer add "%i"
0a882b
+ExecStart=@udevdir@/udev-configure-printer add "%i"