forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalien-cas.sh
More file actions
23 lines (22 loc) · 759 Bytes
/
alien-cas.sh
File metadata and controls
23 lines (22 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package: AliEn-CAs
version: v1
tag: 5fac97c4132df4bba9434a40a3f214401def20fa
source: https://github.com/alisw/alien-cas.git
build_requires:
- alibuild-recipe-tools
env:
X509_CERT_DIR: "$ALIEN_CAS_ROOT/globus/share/certificates"
---
#!/bin/bash -e
DEST="$INSTALLROOT/globus/share/certificates"
mkdir -p "$DEST"
# Make sure we ignore .git and other hidden repositories when doing the find
find "$SOURCEDIR" -not -path '*/[@.]*' -type d -maxdepth 1 -mindepth 1 -exec rsync -av {}/ "$DEST" \;
# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
alibuild-generate-module > "$MODULEFILE"
cat >> "$MODULEFILE" <<EOF
setenv X509_CERT_DIR \$::env(BASEDIR)/AliEn-CAs/\$version/globus/share/certificates
EOF