summaryrefslogtreecommitdiff
path: root/cmake/preInstall.sh
blob: ccce91485c05172a9d05d65265cb7404480349fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
DST=${RPM_INSTALL_PREFIX}
mkdir -p ${DST}/plug/protocol/
mkdir -p ${DST}/etc/
touch ${DST}/plug/conflist.inf
touch ${DST}/etc/entrylist.conf
touch ${DST}/etc/project_list.conf

if [[ -z `grep -rn 'ssl.inf' ${DST}/plug/conflist.inf` ]];then
	sed -i '/\[protocol\]/a\./plug/protocol/ssl/ssl.inf' ${DST}/plug/conflist.inf
fi
if [[ -z `grep -rn 'SSL' ${DST}/etc/entrylist.conf` ]];then
	echo "SSL" >>  ${DST}/etc/entrylist.conf
fi
if [[ -z `grep -rn 'JA3_FINGERPRINT_LABEL' ${DST}/etc/project_list.conf` ]];then
	echo "JA3_FINGERPRINT_LABEL	struct" >>  ${DST}/etc/project_list.conf
fi