|
Lines 26-34
shebangonefile() {
Link Here
|
| 26 |
f="$@" |
26 |
f="$@" |
| 27 |
rc=0 |
27 |
rc=0 |
| 28 |
|
28 |
|
| 29 |
# blacklist of files which are not intended to be runnable |
29 |
# whitelist some files |
| 30 |
case "${f##*/}" in |
30 |
case "${f}" in |
| 31 |
*.pm|*.pod|*.txt) |
31 |
*.pm|*.pod|*.txt|${STAGEDIR}${LINUXBASE}/*) |
| 32 |
return 0 |
32 |
return 0 |
| 33 |
;; |
33 |
;; |
| 34 |
esac |
34 |
esac |
|
Lines 306-312
libperl() {
Link Here
|
| 306 |
} |
306 |
} |
| 307 |
|
307 |
|
| 308 |
prefixvar() { |
308 |
prefixvar() { |
| 309 |
if test -d ${STAGEDIR}${PREFIX}/var; then |
309 |
if [ ${PREFIX} != ${LINUXBASE} -a -d ${STAGEDIR}${PREFIX}/var ]; then |
| 310 |
warn "port uses ${PREFIX}/var instead of /var" |
310 |
warn "port uses ${PREFIX}/var instead of /var" |
| 311 |
fi |
311 |
fi |
| 312 |
} |
312 |
} |
|
Lines 662-668
proxydeps() {
Link Here
|
| 662 |
done <<-EOT |
662 |
done <<-EOT |
| 663 |
$(cd ${STAGEDIR} && find -s . -type f \( -perm +111 -o -name '*.so*' \) | \ |
663 |
$(cd ${STAGEDIR} && find -s . -type f \( -perm +111 -o -name '*.so*' \) | \ |
| 664 |
file -F $'\1' -f - | \ |
664 |
file -F $'\1' -f - | \ |
| 665 |
grep -a 'ELF.*dynamically linked' | \ |
665 |
grep -a 'ELF.*FreeBSD.*dynamically linked' | \ |
| 666 |
cut -f 1 -d $'\1'| \ |
666 |
cut -f 1 -d $'\1'| \ |
| 667 |
sed -e 's/^\.//') |
667 |
sed -e 's/^\.//') |
| 668 |
EOT |
668 |
EOT |