14 |
14 |
15 %: |
15 %: |
16 dh $@ |
16 dh $@ |
17 |
17 |
18 override_dh_install: |
18 override_dh_install: |
19 # @dh_install --exclude=.gitignore |
19 # BUG: find TrustCenter/ -not \( -regex '\.gitignore' \) \( -type d -and -empty \) |
20 dh_install |
20 @dh_install --fail-missing |
21 @cd ${core}/usr/share/littlebird-tc/CA/certs \ |
21 @cd ${core}/usr/share/littlebird-tc/CA/certs \ |
22 && { \ |
22 && { \ |
23 test -f Trustcenter_CA_LB.pem || cp -av Test_Trustcenter_CA_LB.pem Trustcenter_CA_LB.pem; \ |
23 test -f Trustcenter_CA_LB.pem || cp -av Test_Trustcenter_CA_LB.pem Trustcenter_CA_LB.pem; \ |
24 test -f Trustcenter_CA.pem || cp -av Test_Trustcenter_CA.pem Trustcenter_CA.pem; \ |
24 test -f Trustcenter_CA.pem || cp -av Test_Trustcenter_CA.pem Trustcenter_CA.pem; \ |
25 } |
25 } |
26 # moving logs and data to var/ |
26 |
27 mv ${core}/usr/share/littlebird-tc/TrustCenter/data/logs ${core}/var/log/littlebird-tc |
27 # move logs and data to var/ |
28 mv ${core}/usr/share/littlebird-tc/TrustCenter/data/* ${core}/var/lib/littlebird-tc/ |
28 @mv ${core}/usr/share/littlebird-tc/TrustCenter/data/logs ${core}/var/log/littlebird-tc |
|
29 @mv ${core}/usr/share/littlebird-tc/TrustCenter/data/* ${core}/var/lib/littlebird-tc/ |
|
30 |
|
31 # purge .gitignore |
|
32 @find ${core} ${common} ${sql} -type f -name .gitignore -delete |
29 |
33 |
30 # fix permissions |
34 # fix permissions |
31 chmod +x ${core}/usr/share/littlebird-tc/TrustCenter/scripts/install_update_db |
35 chmod +x ${core}/usr/share/littlebird-tc/TrustCenter/scripts/install_update_db |
32 |
|
33 # find ${core} ${common} ${sql} -type f -exec chmod a-x {} + |
|
34 # find ${core} ${common} ${sql} -type f \ |
|
35 # \( -name '*.sh' -o -path '*/scripts/*' \) \ |
|
36 # -exec ${SHELL} -c 'file {} | grep -q executable' \; -exec chmod +x {} \; |
|
37 |
36 |
38 override_dh_link: |
37 override_dh_link: |
39 @dh_link |
38 @dh_link |
40 for dir in ${core}/var/lib/littlebird-tc/*; do \ |
39 for dir in ${core}/var/lib/littlebird-tc/*; do \ |
41 dir=`basename $$dir`; \ |
40 dir=`basename $$dir`; \ |