File checkinstall-install_paths.patch of Package checkinstall

--- Makefile
+++ Makefile
@@ -4,8 +4,8 @@
 DESTDIR=
 PREFIX=/usr/local
 BINDIR=$(PREFIX)/sbin
-LCDIR=$(PREFIX)/lib/checkinstall/locale
-CONFDIR=$(PREFIX)/lib/checkinstall
+LCDIR=$(PREFIX)/share/locale
+CONFDIR=/etc
 
 all:
 	for file in locale/checkinstall-*.po ; do \
@@ -22,7 +22,7 @@
 	done	
 	make -C installwatch-0.7.0beta5
 	
-install: all
+install: all checkinstall checkinstallrc-dist
 	export
 	make -C installwatch-0.7.0beta5 install
 	
@@ -54,9 +54,16 @@
 		echo ======================================================== ;\
 		echo; \
 	fi
-	
+
+checkinstall: checkinstall.in
+	sed -e 's%@TEXTDOMAINDIR@%$(LCDIR)%g' -e 's%@CONFDIR@%$(CONFDIR)%g' $< > $@
+
+checkinstallrc-dist: checkinstallrc-dist.in
+	sed -e 's%@PREFIX@%$(PREFIX)%g' $< >$@
+
 clean:
 	for file in locale/checkinstall-*.mo ; do \
 		rm -f $${file} ; \
 	done
+	rm -f checkinstall checkinstallrc-dist
 	make -C installwatch-0.7.0beta5 clean
--- NLS_SUPPORT
+++ NLS_SUPPORT
@@ -39,11 +39,11 @@
 3) Now create the locale directory for your language. Remember to use the same
    ISO codes you use in your LC_ALL environment variable:
 
-mkdir -p /usr/local/lib/checkinstall/locale/es_MX/LC_MESSAGES
+mkdir -p /usr/share/locale/es_MX/LC_MESSAGES
 
 4) Next, you should generate the .mo binary message file. Run msgfmt:
 
-msgfmt -o /usr/local/lib/checkinstall/locale/es_MX/LC_MESSAGES/checkinstall.mo \
+msgfmt -o /usr/share/locale/es_MX/LC_MESSAGES/checkinstall.mo \
      checkinstall-es.po
 
 (The above goes all in one line)
--- README
+++ README
@@ -343,7 +343,7 @@
 
  The variable declaration section in the checkinstall script has been removed,
  you should now edit the checkinstallrc file, normally installed under 
- /usr/local/lib/checkinstall.
+ /etc.
 
 
  In the checkinstallrc file you will find some variables wich modify
--- RELNOTES
+++ RELNOTES
@@ -271,7 +271,7 @@
 
 * The variable definition section inside the checkinstall script is gone.
   Now you should edit the checkinstallrc file, normally installed under
-  /usr/local/lib/checkinstall
+  /etc
 
 * Added an option ("--exclude") to tell checkinstall wich directories to ignore
   while searchig for modified files.
--- doc-pak/NLS_SUPPORT
+++ doc-pak/NLS_SUPPORT
@@ -39,11 +39,11 @@
 3) Now create the locale directory for your language. Remember to use the same
    ISO codes you use in your LC_ALL environment variable:
 
-mkdir -p /usr/local/lib/checkinstall/locale/es_MX/LC_MESSAGES
+mkdir -p /usr/share/locale/es_MX/LC_MESSAGES
 
 4) Next, you should generate the .mo binary message file. Run msgfmt:
 
-msgfmt -o /usr/local/lib/checkinstall/locale/es_MX/LC_MESSAGES/checkinstall.mo \
+msgfmt -o /usr/share/locale/es_MX/LC_MESSAGES/checkinstall.mo \
      checkinstall-es.po
 
 (The above goes all in one line)
--- doc-pak/README
+++ doc-pak/README
@@ -343,7 +343,7 @@
 
  The variable declaration section in the checkinstall script has been removed,
  you should now edit the checkinstallrc file, normally installed under 
- /usr/local/lib/checkinstall.
+ /etc.
 
 
  In the checkinstallrc file you will find some variables wich modify
--- doc-pak/RELNOTES
+++ doc-pak/RELNOTES
@@ -271,7 +271,7 @@
 
 * The variable definition section inside the checkinstall script is gone.
   Now you should edit the checkinstallrc file, normally installed under
-  /usr/local/lib/checkinstall
+  /etc
 
 * Added an option ("--exclude") to tell checkinstall wich directories to ignore
   while searchig for modified files.
openSUSE Build Service is sponsored by