#!/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 if [[ -z `grep -rn 'ssl_defer.inf' ${DST}/plug/conflist.inf` ]];then sed -i '$a ./plug/protocol/ssl/ssl_defer.inf' ${DST}/plug/conflist.inf fi