Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #7239: The solaris packaging is missing checkinstall packaging and dependencies #749

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rudder-agent/solaris/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ package: build-rudder
pkgdata=`cat $(CURDIR)/pkginfo` date=`date '+%m%d%Y'` arch=$(ARCH) version=$(RUDDER_VERSION_TO_PACKAGE) && eval "echo \"$$pkgdata\"" > $(BUILDROOT)/pkginfo

# Retreive postinst et al scripts
cp $(CURDIR)/checkinstall $(BUILDROOT)/
cp $(CURDIR)/preremove $(BUILDROOT)/
cp $(CURDIR)/postinstall $(BUILDROOT)/
cp $(CURDIR)/postremove $(BUILDROOT)/
cp $(CURDIR)/preremove $(BUILDROOT)/

# Create the package content description file
pkgmk -o -r $(PKGROOT) -d $(BUILDROOT) -f $(BUILDROOT)/Prototype
Expand Down
26 changes: 22 additions & 4 deletions rudder-agent/solaris/checkinstall
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
#!/bin/sh

if pkginfo -q CSWcurl
# Check ifthe dependencies required to run the Rudder
# agent are installed
for i in CSWpcre CSWcurl CSWlibssp0
do

if pkginfo -q $i
then
:
else
MISSING_DEPS="$i $MISSING_DEPS"
fi

done

if [ -n "$MISSING_DEPS" ]
then
:
else
echo "RudderAgent needs CSWcurl, please install it before installing RudderAgent"

echo "ERROR: RudderAgent needs the following additional packages to run:"
echo "ERROR:"
echo "ERROR: $MISSING_DEPS"
echo "ERROR:"
echo "ERROR: They can be downloaded from http://www.opencsw.org/"
exit 1

fi