Skip to content

Commit

Permalink
updated freebsd vmaction script to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed Dec 6, 2023
1 parent cd84366 commit 3dae0c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tinydnssec-freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ on:

jobs:
testfreebsd:
runs-on: macos-12
runs-on: ubuntu-latest
name: FreeBSD
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: main
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
repository: mbhangui/libqmail
path: libqmail
- name: build tinydnssec
id: FreeBSD
uses: vmactions/freebsd-vm@v0.3.1
uses: vmactions/freebsd-vm@v1
with:
envs: 'MYTOKEN'
usesh: true
Expand Down
20 changes: 10 additions & 10 deletions tinydnssec-x/create_rpm
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ if [ -z "$release" ] ; then
release=1
fi
fi
echo -n "Build RPM for tinydnssec-"$version"-1."$release" (Y/N) - "
echo -n "Build RPM for tinydnssec-"$version"-2."$release" (Y/N) - "
read key
if [ " $key" = " Y" -o " $key" = " y" ] ; then
tmprel=`cat tinydnssec-$version/conf-release 2>/dev/null`
if [ ! " $tmprel" = " 1.$release" ] ; then
echo 1.$release > tinydnssec-x/conf-release
if [ ! " $tmprel" = " 2.$release" ] ; then
echo 2.$release > tinydnssec-x/conf-release
cd tinydnssec-x
make tinydnssec.spec
cp tinydnssec.spec /tmp
Expand All @@ -134,17 +134,17 @@ if [ " $key" = " Y" -o " $key" = " y" ] ; then
if [ $? -eq 0 ] ; then
/bin/rm -f /tmp/tinydnssec.spec
build_arch=`rpmbuild --showrc|grep "^build arch" | awk '{print $4}'`
rpm --addsign $rpmbuild/RPMS/$build_arch/tinydnssec-"$version"-"1.$release".$dist.$build_arch.rpm
rpm --addsign $rpmbuild/SRPMS/tinydnssec-"$version"-"1.$release".$dist.src.rpm
echo -n "RPM lint for tinydnssec-"$version"-1."$release" (Y/N) - "
rpm --addsign $rpmbuild/RPMS/$build_arch/tinydnssec-"$version"-"2.$release".$dist.$build_arch.rpm
rpm --addsign $rpmbuild/SRPMS/tinydnssec-"$version"-"2.$release".$dist.src.rpm
echo -n "RPM lint for tinydnssec-"$version"-2."$release" (Y/N) - "
read key
if [ " $key" = " Y" -o " $key" = " y" ] ; then
(
echo tinydnssec-"$version"-"1.$release".$dist.$build_arch
rpmlint $rpmbuild/RPMS/$build_arch/tinydnssec-"$version"-"1.$release".$dist.$build_arch.rpm
echo tinydnssec-"$version"-"2.$release".$dist.$build_arch
rpmlint $rpmbuild/RPMS/$build_arch/tinydnssec-"$version"-"2.$release".$dist.$build_arch.rpm
echo ------------------------
echo tinydnssec-"$version"-"1.$release".$dist.src.rpm
rpmlint $rpmbuild/SRPMS/tinydnssec-"$version"-"1.$release".$dist.src.rpm
echo tinydnssec-"$version"-"2.$release".$dist.src.rpm
rpmlint $rpmbuild/SRPMS/tinydnssec-"$version"-"2.$release".$dist.src.rpm
echo ------------------------
) 2>&1 | less
fi
Expand Down

0 comments on commit 3dae0c6

Please sign in to comment.