Change package name to stack_blackbox
This commit is contained in:
2
Makefile
2
Makefile
@@ -7,7 +7,7 @@ all:
|
|||||||
@echo ' make install (incomplete)
|
@echo ' make install (incomplete)
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
PKGRELEASE="$${PKGRELEASE}" $(BIN)/build_rpm.sh blackbox tools/manifest.txt
|
PKGRELEASE="$${PKGRELEASE}" $(BIN)/build_rpm.sh stack_blackbox tools/rpm_filelist.txt
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo 'To install, copy the files from bin to somewhere in your PATH.'
|
@echo 'To install, copy the files from bin to somewhere in your PATH.'
|
||||||
|
|||||||
@@ -41,17 +41,19 @@ rm -rf "$OUTPUTDIR"
|
|||||||
mkdir -p "$OUTPUTDIR/installroot"
|
mkdir -p "$OUTPUTDIR/installroot"
|
||||||
|
|
||||||
# Copy the files into place:
|
# Copy the files into place:
|
||||||
cat """$@""" | while read -a arr ; do
|
cat """$@""" | grep -v '^$' | while read -a arr ; do
|
||||||
PERM="${arr[0]}"
|
PERM="${arr[0]}"
|
||||||
|
DEST="${arr[1]}"
|
||||||
|
SRC="${arr[2]}"
|
||||||
|
echo ========== "$PERM $DEST"
|
||||||
case $PERM in
|
case $PERM in
|
||||||
\#*) continue ;; # Skip comments.
|
\#*) continue ;; # Skip comments.
|
||||||
exec) PERM=0755 ;;
|
exec) PERM=0755 ;;
|
||||||
read) PERM=0744 ;;
|
read) PERM=0744 ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
DST="$OUTPUTDIR/installroot/${arr[1]}"
|
FULLDEST="$OUTPUTDIR/installroot/${arr[1]}"
|
||||||
SRC="${arr[2]}"
|
install -D -T -b -m "$PERM" -T "$SRC" "$FULLDEST"
|
||||||
install -D -T -b -m "$PERM" -T "$SRC" "$DST"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Build the RPM:
|
# Build the RPM:
|
||||||
|
|||||||
2
tools/profile.d-usrblackbox.sh
Normal file
2
tools/profile.d-usrblackbox.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Prepend to $PATH.
|
||||||
|
pathmunge /usr/blackbox/bin
|
||||||
@@ -6,3 +6,4 @@ exec /usr/blackbox/bin/blackbox_postdeploy bin/blackbox_postdeploy.sh
|
|||||||
exec /usr/blackbox/bin/blackbox_register_new_file bin/blackbox_register_new_file.sh
|
exec /usr/blackbox/bin/blackbox_register_new_file bin/blackbox_register_new_file.sh
|
||||||
exec /usr/blackbox/bin/blackbox_update_all_files bin/blackbox_update_all_files.sh
|
exec /usr/blackbox/bin/blackbox_update_all_files bin/blackbox_update_all_files.sh
|
||||||
exec /usr/blackbox/bin/blackbox_start bin/start
|
exec /usr/blackbox/bin/blackbox_start bin/start
|
||||||
|
read /etc/profile.d/usrblackbox.sh tools/profile.d-usrblackbox.sh
|
||||||
Reference in New Issue
Block a user