summaryrefslogtreecommitdiff
path: root/distfoldd
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-09-17 23:17:18 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-09-17 23:17:18 +0200
commit0a174260c5dd04d516da7a6021e681d49c312547 (patch)
tree102e0cbb5eed9ce08126eeba4f6976fafdd3312b /distfoldd
parentc3a1946675855b299a2b36550cdf2c2f69d153aa (diff)
downloaddistfold-0a174260c5dd04d516da7a6021e681d49c312547.tar.gz
distfold-0a174260c5dd04d516da7a6021e681d49c312547.zip
minor build fixes
Diffstat (limited to 'distfoldd')
-rw-r--r--distfoldd/distfoldd.pro8
-rwxr-xr-xdistfoldd/keygen.sh7
2 files changed, 13 insertions, 2 deletions
diff --git a/distfoldd/distfoldd.pro b/distfoldd/distfoldd.pro
index 3eb804e..3076068 100644
--- a/distfoldd/distfoldd.pro
+++ b/distfoldd/distfoldd.pro
@@ -30,6 +30,10 @@ HEADERS += \
compressor.h
contains(MEEGO_EDITION,harmattan) {
- target.path = /opt/distfold/bin
- INSTALLS += target
+ target.path = /opt/distfold/bin
+
+ scripts.files = keygen.sh
+ scripts.path = /opt/distfold/bin
+
+ INSTALLS += target scripts
}
diff --git a/distfoldd/keygen.sh b/distfoldd/keygen.sh
new file mode 100755
index 0000000..d271b57
--- /dev/null
+++ b/distfoldd/keygen.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Simple script to generate required SSL cert & private key.
+# Place server.* files in ~/.config/distfold/
+
+openssl req -x509 -batch -newkey rsa:2048 -keyout server.key -nodes -days 365 -out server.crt
+chmod 0400 server.key server.crt