[cpp-linbuild] branch main updated: Update package mgmt script.

Scott Cantor cantor.2 at osu.edu
Fri Oct 18 13:06:34 UTC 2024


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository cpp-linbuild.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-linbuild.git;a=commit;h=2000aa6a52bd97afabd665df621e287cd47753f4

The following commit(s) were added to refs/heads/main by this push:
     new 2000aa6  Update package mgmt script.
2000aa6 is described below

commit 2000aa6a52bd97afabd665df621e287cd47753f4
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Oct 18 09:06:27 2024 -0400

    Update package mgmt script.
---
 bin/eds_upload.sh    | 25 -------------------------
 bin/sign-and-copy.sh | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 25 deletions(-)

diff --git a/bin/eds_upload.sh b/bin/eds_upload.sh
deleted file mode 100755
index a4fac63..0000000
--- a/bin/eds_upload.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-SRC=.
-DEST=shibwww at shibboleth.net:mirror/yum
-COMP=shibboleth-embedded-ds
-VER=1.3.0
-
-scp $SRC/os/amazonlinux2/products/SRPMS/${COMP}*${VER}* $DEST/amazonlinux2/src/
-scp $SRC/os/amazonlinux2/products/RPMS/noarch/${COMP}*${VER}* $DEST/amazonlinux2/noarch/
-
-scp $SRC/os/amazonlinux2023/products/SRPMS/${COMP}*${VER}* $DEST/amazonlinux2023/src/
-scp $SRC/os/amazonlinux2023/products/RPMS/noarch/${COMP}*${VER}* $DEST/amazonlinux2023/noarch/
-
-scp $SRC/os/centos7/products/SRPMS/${COMP}*${VER}* $DEST/CentOS_7/src/
-scp $SRC/os/centos7/products/RPMS/noarch/${COMP}*${VER}* $DEST/CentOS_7/noarch/
-
-scp $SRC/os/centos8/products/SRPMS/${COMP}*${VER}* $DEST/CentOS_8/src/
-scp $SRC/os/centos8/products/RPMS/noarch/${COMP}*${VER}* $DEST/CentOS_8/noarch/
-
-scp $SRC/os/rockylinux8/products/SRPMS/${COMP}*${VER}* $DEST/rockylinux8/src/
-scp $SRC/os/rockylinux8/products/RPMS/noarch/${COMP}*${VER}* $DEST/rockylinux8/noarch/
-
-scp $SRC/os/rockylinux9/products/SRPMS/${COMP}*${VER}* $DEST/rockylinux9/src/
-scp $SRC/os/rockylinux9/products/RPMS/noarch/${COMP}*${VER}* $DEST/rockylinux9/noarch/
-
diff --git a/bin/sign-and-copy.sh b/bin/sign-and-copy.sh
new file mode 100755
index 0000000..58f8287
--- /dev/null
+++ b/bin/sign-and-copy.sh
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+SRC=.
+DEST=/efs/shibwww/mirror/yum
+COMP=shibresolver
+VER=3.5.0
+CP="cp -av"
+
+SIGN=1
+COPY=1
+
+ARCH=aarch64
+#ARCH=i686
+#ARCH=noarch
+
+if [ $SIGN == 1 ] ; then
+find $SRC/os -name "*${COMP}*${VER}*" | xargs rpmsign --addsign
+fi
+
+if [ $COPY == 1 ] ; then
+
+$CP $SRC/os/amazonlinux2/products/SRPMS/*${COMP}*${VER}* $DEST/amazonlinux2/src/
+$CP $SRC/os/amazonlinux2/products/RPMS/$ARCH/*${COMP}*${VER}* $DEST/amazonlinux2/$ARCH/
+
+$CP $SRC/os/amazonlinux2023/products/SRPMS/*${COMP}*${VER}* $DEST/amazonlinux2023/src/
+$CP $SRC/os/amazonlinux2023/products/RPMS/$ARCH/*${COMP}*${VER}* $DEST/amazonlinux2023/$ARCH/
+
+$CP $SRC/os/centos7/products/SRPMS/*${COMP}*${VER}* $DEST/CentOS_7/src/
+$CP $SRC/os/centos7/products/RPMS/$ARCH/*${COMP}*${VER}* $DEST/CentOS_7/$ARCH/
+
+$CP $SRC/os/centos8/products/SRPMS/*${COMP}*${VER}* $DEST/CentOS_8/src/
+$CP $SRC/os/centos8/products/RPMS/$ARCH/*${COMP}*${VER}* $DEST/CentOS_8/$ARCH/
+
+$CP $SRC/os/rockylinux8/products/SRPMS/*${COMP}*${VER}* $DEST/rockylinux8/src/
+$CP $SRC/os/rockylinux8/products/RPMS/$ARCH/*${COMP}*${VER}* $DEST/rockylinux8/$ARCH/
+
+$CP $SRC/os/rockylinux9/products/SRPMS/*${COMP}*${VER}* $DEST/rockylinux9/src/
+$CP $SRC/os/rockylinux9/products/RPMS/$ARCH/*${COMP}*${VER}* $DEST/rockylinux9/$ARCH/
+
+fi

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list