summaryrefslogtreecommitdiff
path: root/resource/package/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'resource/package/Makefile')
-rw-r--r--resource/package/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/resource/package/Makefile b/resource/package/Makefile
new file mode 100644
index 0000000..f1b5d91
--- /dev/null
+++ b/resource/package/Makefile
@@ -0,0 +1,32 @@
+SUBDIRS := cert certstore conf r2_certstore r3_certstore rule tool
+
+install:
+# if [ ! -d "/usr/local/bin" ]; then mkdir -p "/usr/local/bin"; fi
+# if [ ! -d "/usr/local/lib" ]; then mkdir -p "/usr/local/lib"; fi
+#
+# cp -f etc/cert_store.ini /usr/local/etc/
+#
+# cp -f bin/cert_store /usr/local/bin/
+# chmod +x certstore1.0
+#
+# cp -f lib/* /usr/local/lib/
+# sudo ldconfig
+ if [ ! -d "/home/tsg/certstore" ]; then mkdir -p "/home/tsg/certstore"; fi
+
+ chmod +x certstore r2_certstore r3_certstore
+ chmod +x tool/signssl.sh tool/x509
+
+ for d in $(SUBDIRS); do \
+ cp -rf $$d /home/tsg/certstore; \
+ done
+
+update:
+ chmod +x certstore
+ cp -f certstore /home/tsg/certstore
+
+# cp -f bin/cert_server /usr/local/bin/
+
+uninstall:
+ rm -rf /home/tsg/certstore
+
+