Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=a95649894b8b92000d0f0c211278f897982a78f4
commit a95649894b8b92000d0f0c211278f897982a78f4
Author: bouleetbil <[EMAIL PROTECTED]>
Date: Wed Jun 18 21:43:37 2008 +0200
sbackup-0.10.5-3-i686
*add patch for broken makefile
*move to gnome-extra
*add new depend
*thks crazy
diff --git a/source/gnome-extra/sbackup/FrugalBuild
b/source/gnome-extra/sbackup/FrugalBuild
new file mode 100644
index 0000000..536212e
--- /dev/null
+++ b/source/gnome-extra/sbackup/FrugalBuild
@@ -0,0 +1,30 @@
+# Compiling Time: 0 SBU
+# Maintainer: bouleetbil <[EMAIL PROTECTED]>
+
+pkgname=sbackup
+pkgver=0.10.5
+pkgrel=3
+pkgdesc="SBackup is a simple backup solution intended for desktop use"
+depends=('notify-python' 'fuse' 'libglade' 'pygtk' 'gnome-python')
+rodepends=('dcron')
+backup=('etc/sbackup.conf')
+options=('scriptlet')
+groups=('gnome-extra')
+archs=('i686' 'x86_64')
+_F_sourceforge_sep="_"
+_F_sourceforge_broken_up2date="1"
+_F_gnome_desktop="y"
+Finclude sourceforge gnome-scriptlet
+source=($source Makefile.patch)
+sha1sums=('8956e900580d73c4d31ef0a116090455030f3235' \
+ '74a06269387c9f1c7d34c5a483630cd48004f8b9')
+
+build() {
+ unset MAKEFLAGS
+ Fcd
+ Fpatchall
+ Fsed "su-to-root -X -c" "gksu" sbackup.desktop srestore.desktop
+ Fmakeinstall PREFIX=/usr
+ Fmanrel *.8
+ Fbuild_gnome_scriptlet
+}
diff --git a/source/gnome-extra/sbackup/Makefile.patch
b/source/gnome-extra/sbackup/Makefile.patch
new file mode 100644
index 0000000..b5ccce2
--- /dev/null
+++ b/source/gnome-extra/sbackup/Makefile.patch
@@ -0,0 +1,72 @@
+diff -Naur sbackup-0.10.5/Makefile sbackup-0.10.5-p/Makefile
+--- sbackup-0.10.5/Makefile 2008-06-15 17:39:25.000000000 +0200
++++ sbackup-0.10.5-p/Makefile 2008-06-18 10:12:56.000000000 +0200
+@@ -4,18 +4,18 @@
+ DESTDIR = /usr/local
+ endif
+
+-PREFIX = /usr/local
+-BIN = $(DESTDIR)/sbin/
+-SUPPORT = $(DESTDIR)/share/sbackup/
+-DOC = $(DESTDIR)/share/doc/sbackup/
+-PIXDIR = $(DESTDIR)/share/pixmaps/
++PREFIX ?= /usr
++BIN = $(DESTDIR)$(PREFIX)/sbin/
++SUPPORT = $(DESTDIR)$(PREFIX)/share/sbackup/
++DOC = $(DESTDIR)$(PREFIX)/share/doc/sbackup/
++PIXDIR = $(DESTDIR)$(PREFIX)/share/pixmaps/
+
+ all:
+
+ default:
+
+ install: po-data install-po
+- install -d $(BIN) $(SUPPORT) $(DOC) $(PIXDIR)
$(DESTDIR)/share/applications $(DESTDIR)/etc
++ install -d $(BIN) $(SUPPORT) $(DOC) $(PIXDIR)
$(DESTDIR)$(PREFIX)/share/applications $(DESTDIR)/etc
+ install ./sbackupd.py $(SUPPORT)
+ ln -s ../share/sbackup/sbackupd.py $(BIN)/sbackupd
+ install ./simple-backup-config.py $(SUPPORT)
+@@ -30,15 +30,15 @@
+ install -m644 -D simple-backup-config.glade $(SUPPORT)
+ install -m644 -D sbackup-conf.png $(PIXDIR)
+ install -m644 -D sbackup-restore.png $(PIXDIR)
+- install -m644 -D sbackup.desktop $(DESTDIR)/share/applications/
+- install -m644 -D srestore.desktop $(DESTDIR)/share/applications/
++ install -m644 -D sbackup.desktop $(DESTDIR)$(PREFIX)/share/applications/
++ install -m644 -D srestore.desktop
$(DESTDIR)$(PREFIX)/share/applications/
+ install -m644 -D simple-restore.glade $(SUPPORT)
+ install ./sbackup $(SUPPORT)
+ # install -m644 -D simple-backup-tocd.glade $(SUPPORT)
+-ifeq ($(DESTDIR),/usr/local/)
+- install -b -m600 sbackup.conf.example /etc/sbackup.conf
+- @echo "[places]" >> /etc/sbackup.conf
+- @echo "prefix=$(PREFIX)" >> /etc/sbackup.conf
++ifeq ($(PREFIX),/usr)
++ install -b -m600 sbackup.conf.example $(DESTDIR)/etc/sbackup.conf
++ @echo "[places]" >> $(DESTDIR)/etc/sbackup.conf
++ @echo "prefix=$(PREFIX)" >> $(DESTDIR)/etc/sbackup.conf
+ endif
+
+ uninstall:
+@@ -49,8 +49,8 @@
+ rm -f $(BIN)/upgrade_backups.py
+ rm -rf $(SUPPORT)
+ rm -rf $(DOC)
+- rm -f $(DESTDIR)/share/applications/sbackup.desktop
+- rm -f $(DESTDIR)/share/applications/srestore.desktop
++ rm -f $(DESTDIR)$(PREFIX)/share/applications/sbackup.desktop
++ rm -f $(DESTDIR)$(PREFIX)/share/applications/srestore.desktop
+ rm -f $(DESTDIR)/etc/sbackup.conf
+
+ clean:
+@@ -61,8 +61,8 @@
+ -rm -f *~ *.bak
+
+ install-po:
+- for lang in $(PO); do install -d
$(DESTDIR)/share/locale/$$lang/LC_MESSAGES/ ; done
+- for lang in $(PO); do install -m 644 po/$$lang/LC_MESSAGES/*
$(DESTDIR)/share/locale/$$lang/LC_MESSAGES/ ; done
++ for lang in $(PO); do install -d
$(DESTDIR)$(PREFIX)/share/locale/$$lang/LC_MESSAGES/ ; done
++ for lang in $(PO); do install -m 644 po/$$lang/LC_MESSAGES/*
$(DESTDIR)$(PREFIX)/share/locale/$$lang/LC_MESSAGES/ ; done
+
+ po-dir:
+ for lang in $(PO); do mkdir -p po/$$lang/LC_MESSAGES/ ; done
\ No newline at end of file
diff --git a/source/xapps-extra/sbackup/FrugalBuild
b/source/xapps-extra/sbackup/FrugalBuild
deleted file mode 100644
index 224ec0c..0000000
--- a/source/xapps-extra/sbackup/FrugalBuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Compiling Time: 0 SBU
-# Maintainer: bouleetbil <[EMAIL PROTECTED]>
-
-pkgname=sbackup
-pkgver=0.10.5
-pkgrel=2
-pkgdesc="SBackup is a simple backup solution intended for desktop use"
-depends=('notify-python' 'fuse' 'libglade')
-rodepends=('dcron')
-options=('scriptlet')
-groups=('xapps-extra')
-archs=('i686' 'x86_64')
-_F_sourceforge_sep="_"
-_F_sourceforge_broken_up2date="1"
-Finclude sourceforge
-sha1sums=('8956e900580d73c4d31ef0a116090455030f3235')
-
-build() {
- unset MAKEFLAGS
- Fcd
- Fsed "su-to-root -X -c" "gksu" *.desktop
- Fmakeinstall DESTDIR=$Fdestdir/usr
- #delete empty dir, sbackup use /etc/sbackup.conf
- Frm usr/etc
-}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git