summaryrefslogtreecommitdiff
path: root/resource/package/Makefile
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2019-11-05 11:38:40 +0800
committerfengweihao <[email protected]>2019-11-05 11:38:40 +0800
commit7192f437e55c9141d8cc72858295d4c5c6556616 (patch)
tree95dbf9e93da30601c34af4279ac9380251ae3d86 /resource/package/Makefile
parent8b089533e9c75bc6a99917cce71bc3839dd0ab44 (diff)
* 修改编译方式为CMakev2.1.2-20191105
* 删除C++适配代码 * 修改编译告警
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
+
+