debian/rules
changeset 80 94ec1603ce3c
parent 79 bf9f2062d8f5
child 81 39b02aed056b
equal deleted inserted replaced
79:bf9f2062d8f5 80:94ec1603ce3c
     7 # This special exception was added by Craig Small in version 0.37 of dh-make.
     7 # This special exception was added by Craig Small in version 0.37 of dh-make.
     8 
     8 
     9 # Uncomment this to turn on verbose mode.
     9 # Uncomment this to turn on verbose mode.
    10 #export DH_VERBOSE=1
    10 #export DH_VERBOSE=1
    11 core=debian/littlebird-tc-core
    11 core=debian/littlebird-tc-core
       
    12 common=debian/littlebird-tc-common
       
    13 sql=debian/littlebird-tc-sql
    12 
    14 
    13 %:
    15 %:
    14 	dh $@ 
    16 	dh $@ 
    15 
    17 
    16 override_dh_install:
    18 override_dh_install:
    20 	   test -f Trustcenter_CA_LB.pem || cp -av Test_Trustcenter_CA_LB.pem Trustcenter_CA_LB.pem; \
    22 	   test -f Trustcenter_CA_LB.pem || cp -av Test_Trustcenter_CA_LB.pem Trustcenter_CA_LB.pem; \
    21 	   test -f Trustcenter_CA.pem || cp -av Test_Trustcenter_CA.pem Trustcenter_CA.pem; \
    23 	   test -f Trustcenter_CA.pem || cp -av Test_Trustcenter_CA.pem Trustcenter_CA.pem; \
    22 	   }
    24 	   }
    23 	mv ${core}/usr/lib/littlebird-tc/TrustCenter/data/logs ${core}/var/log/littlebird-tc 
    25 	mv ${core}/usr/lib/littlebird-tc/TrustCenter/data/logs ${core}/var/log/littlebird-tc 
    24 	mv ${core}/usr/lib/littlebird-tc/TrustCenter/data/* ${core}/var/lib/littlebird-tc/
    26 	mv ${core}/usr/lib/littlebird-tc/TrustCenter/data/* ${core}/var/lib/littlebird-tc/
    25 	find ${core} -type f -name \*.sh | while read p; do \
    27 	find ${core} ${common} ${sql} -type f -exec chmod a-x {} +
    26 		file "$$p" | grep -q executable && chmod +x "$$p" ;\
    28 	find ${core} ${common} ${sql} -type f \
    27 	done
    29 		\( -name '*.sh' -o -path '*/scripts/*' \) \
       
    30 		-exec ${SHELL} -c 'file {} | grep -q executable' \; -exec chmod +x {} \;
    28 
    31 
    29 override_dh_link:
    32 override_dh_link:
    30 	@dh_link
    33 	@dh_link
    31 	for dir in ${core}/var/lib/littlebird-tc/*; do \
    34 	for dir in ${core}/var/lib/littlebird-tc/*; do \
    32 	    dir=`basename $$dir`; \
    35 	    dir=`basename $$dir`; \