Change package name to stack_blackbox

This commit is contained in:
tlimoncelli@stackexchange.com
2014-08-28 14:37:25 +00:00
parent b023e36516
commit c903bdc575
4 changed files with 10 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ all:
@echo ' make install (incomplete)
packages:
PKGRELEASE="$${PKGRELEASE}" $(BIN)/build_rpm.sh blackbox tools/manifest.txt
PKGRELEASE="$${PKGRELEASE}" $(BIN)/build_rpm.sh stack_blackbox tools/rpm_filelist.txt
install:
@echo 'To install, copy the files from bin to somewhere in your PATH.'

View File

@@ -41,17 +41,19 @@ rm -rf "$OUTPUTDIR"
mkdir -p "$OUTPUTDIR/installroot"
# Copy the files into place:
cat """$@""" | while read -a arr ; do
cat """$@""" | grep -v '^$' | while read -a arr ; do
PERM="${arr[0]}"
DEST="${arr[1]}"
SRC="${arr[2]}"
echo ========== "$PERM $DEST"
case $PERM in
\#*) continue ;; # Skip comments.
exec) PERM=0755 ;;
read) PERM=0744 ;;
*) ;;
esac
DST="$OUTPUTDIR/installroot/${arr[1]}"
SRC="${arr[2]}"
install -D -T -b -m "$PERM" -T "$SRC" "$DST"
FULLDEST="$OUTPUTDIR/installroot/${arr[1]}"
install -D -T -b -m "$PERM" -T "$SRC" "$FULLDEST"
done
# Build the RPM:

View File

@@ -0,0 +1,2 @@
# Prepend to $PATH.
pathmunge /usr/blackbox/bin

View File

@@ -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_update_all_files bin/blackbox_update_all_files.sh
exec /usr/blackbox/bin/blackbox_start bin/start
read /etc/profile.d/usrblackbox.sh tools/profile.d-usrblackbox.sh