updated ebuild for duplicati: Use provided Makefile, albeit patched to match the gentoo way of life.
TODO: ony build requested localizations. for now, everything is built.
This commit is contained in:
parent
eb8226e6f7
commit
f155878a27
4 changed files with 89 additions and 3 deletions
|
@ -0,0 +1,56 @@
|
|||
diff --git a/Installer/Makefile/Makefile b/Installer/Makefile/Makefile
|
||||
index 5528c7e..ba8e11f 100644
|
||||
--- a/Installer/Makefile/Makefile
|
||||
+++ b/Installer/Makefile/Makefile
|
||||
@@ -2,20 +2,14 @@ BUILD_TOOL=xbuild
|
||||
BUILD_ARGS=/property:Platform=Any\ CPU /property:Configuration=Release
|
||||
OUTPUT_ARGS=/property:OutputPath=bin/Release
|
||||
SOURCE_DIR=../../.
|
||||
-PACKAGE_DIR=./pkg
|
||||
+PACKAGE_DIR=${D}/.
|
||||
PKG_TARGET=$(PACKAGE_DIR)/usr/lib/duplicati
|
||||
LOCALIZATION_TOOL=mono $(SOURCE_DIR)/Duplicati/Localization/LocalizationTool.exe
|
||||
|
||||
all: package
|
||||
|
||||
-Duplicati-v1.sln:
|
||||
- patch -d "$(SOURCE_DIR)" -i patch-1-remove-scheduler -o Duplicati-v1.sln Duplicati.sln
|
||||
-
|
||||
-Duplicati-v2.sln: Duplicati-v1.sln
|
||||
- patch -d "$(SOURCE_DIR)" -i patch-2-remove-unsigned-backends -o Duplicati-v2.sln Duplicati-v1.sln
|
||||
-
|
||||
-build: Duplicati-v2.sln
|
||||
- $(BUILD_TOOL) $(BUILD_ARGS) "$(SOURCE_DIR)/Duplicati-v2.sln"
|
||||
+build:
|
||||
+ $(BUILD_TOOL) $(BUILD_ARGS) "$(SOURCE_DIR)/Duplicati.sln"
|
||||
$(BUILD_TOOL) $(BUILD_ARGS) $(OUTPUT_ARGS) "$(SOURCE_DIR)/Duplicati/Library/Backend/SSH/Duplicati.Library.Backend.SSH.csproj"
|
||||
$(BUILD_TOOL) $(BUILD_ARGS) $(OUTPUT_ARGS) "$(SOURCE_DIR)/Duplicati/Library/Backend/TahoeLAFS/Duplicati.Library.Backend.TahoeLAFS.csproj"
|
||||
$(BUILD_TOOL) $(BUILD_ARGS) "$(SOURCE_DIR)/BuildTools/LocalizationTool/LocalizationTool.sln"
|
||||
@@ -31,10 +25,6 @@ translations: build
|
||||
$(LOCALIZATION_TOOL) build
|
||||
|
||||
package:
|
||||
- if [ -e "$(PACKAGE_DIR)" ]; then \
|
||||
- rm -rf "$(PACKAGE_DIR)"; \
|
||||
- fi
|
||||
- mkdir "$(PACKAGE_DIR)"
|
||||
mkdir "$(PACKAGE_DIR)/usr"
|
||||
mkdir "$(PACKAGE_DIR)/usr/lib"
|
||||
mkdir "$(PACKAGE_DIR)/usr/bin"
|
||||
@@ -79,16 +69,6 @@ package:
|
||||
|
||||
chmod +x "$(PACKAGE_DIR)/usr/bin/duplicati"
|
||||
chmod +x "$(PACKAGE_DIR)/usr/bin/duplicati-commandline"
|
||||
-
|
||||
- if [ -e "duplicati.tar" ]; then \
|
||||
- rm -rf "duplicati.tar"; \
|
||||
- fi
|
||||
- if [ -e "duplicati.tar.gz" ]; then \
|
||||
- rm -rf "duplicati.tar.gz"; \
|
||||
- fi
|
||||
-
|
||||
- tar -C "$(PACKAGE_DIR)" -cf "duplicati.tar" .
|
||||
- gzip --best "duplicati.tar"
|
||||
|
||||
clean:
|
||||
rm -rf "$(SOURCE_DIR)/Duplicati-v1.sln"
|
Loading…
Add table
Add a link
Reference in a new issue