File smolt-1.4.2.2-make_install.patch of Package smolt

Index: client/Makefile
===================================================================
--- client/Makefile.orig
+++ client/Makefile
@@ -1,7 +1,7 @@
 PO_FILES=$(wildcard po/*.po)
 MO_FILES=$(patsubst %.po,%.mo,$(PO_FILES))
 # echo PY_FILES=$(ls -1 *.py | grep -v '^\(create_monthly\|getLink\|haldump\|hammer_add\|makeuuid\|starhscale\).py$' | sort)
-PY_FILES=config.py deleteProfile.py fs_util.py gate.py gui.py i18n.py __init__.py MultipartPostHandler.py os_detect.py privacypolicy.py scan.py sendProfile.py smolt_config.py smoltFirstBoot.py smoltGui.py smolt_mythtv.py smolt.py software.py uuiddb.py
+PY_FILES=config.py deleteProfile.py fs_util.py gate.py gui.py i18n.py __init__.py MultipartPostHandler.py os_detect.py privacypolicy.py scan.py sendProfile.py smolt_config.py smoltFirstBoot.py smoltGui.py smolt_mythtv.py smolt.py software.py uuiddb.py devicelist.py hwdata.py
 DIRED_MO_FILES=$(patsubst po/%.mo,mo/%/LC_MESSAGES/$(NAME).mo,$(MO_FILES))
 
 
@@ -55,6 +55,7 @@ install-main: move-mo
 	install -D -m 0644 icons/smolt.png $(DATADIR)/$(NAME)/client/icons/smolt.png
 	cp -adv $(PY_FILES) $(DATADIR)/$(NAME)/client/
 	cp -adv sugar/* $(DATADIR)/sugar/extensions/cpsection/smolt/
+	cp -adv distros $(DATADIR)/$(NAME)/client/
 	
 	mkdir -p $(DATADIR)/icons/hicolor/16x16/apps/
 	mkdir -p $(DATADIR)/icons/hicolor/22x22/apps/
@@ -70,14 +71,12 @@ install-main: move-mo
 	mkdir -p $(_DOCDIR)
 	install -p -m 0644 ../doc/PrivacyPolicy $(_DOCDIR)
 	
-	gzip -c -9 man/smoltSendProfile.1 > $(_MANDIR)/man1/smoltSendProfile.1.gz
-	gzip -c -9 man/smoltDeleteProfile.1 > $(_MANDIR)/man1/smoltDeleteProfile.1.gz
-	gzip -c -9 man/smoltGui.1 > $(_MANDIR)/man1/smoltGui.1.gz
-	
-	ln -sf $(DATADIR)/$(NAME)/client/sendProfile.py $(BINDIR)/smoltSendProfile
-	ln -sf $(DATADIR)/$(NAME)/client/deleteProfile.py $(BINDIR)/smoltDeleteProfile
-	ln -sf $(DATADIR)/$(NAME)/client/smoltGui.py $(BINDIR)/smoltGui
-	ln -sf $(SMOLTCONFIGDIR)/config.py $(DATADIR)/$(NAME)/client/config.py
+	cp man/* $(DATADIR)/man/man1/
+	
+	ln -sf /usr/share/$(NAME)/client/sendProfile.py $(BINDIR)/smoltSendProfile
+	ln -sf /usr/share/$(NAME)/client/deleteProfile.py $(BINDIR)/smoltDeleteProfile
+	ln -sf /usr/share//$(NAME)/client/smoltGui.py $(BINDIR)/smoltGui
+	ln -sf /etc/smolt/config.py $(DATADIR)/$(NAME)/client/config.py
 	
 	chmod +x $(DATADIR)/$(NAME)/client/*Profile.py
 	chmod +x $(DATADIR)/$(NAME)/client/smoltGui.py
openSUSE Build Service is sponsored by