Skip to content

Commit

Permalink
Added override inventory for AIX to fix file ownership and permission…
Browse files Browse the repository at this point in the history
…s when packaging as a non-root user.
  • Loading branch information
aleibl committed Apr 28, 2014
1 parent 50431cc commit d03a266
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
1 change: 1 addition & 0 deletions AIX/lpp_template.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ Fileset
ROOT Part: N
ROOTFiles
EOROOTFiles
OVERRIDE_INVENTORY: /tmp/override_inventory
EOFileset

6 changes: 2 additions & 4 deletions AIX/make_AIX_package.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/ksh

echo "Creating package..."
# clean up directories of previous builds
rm -rf .info
rm -rf tmp
# create the file tree
mkdir -p opt/CertNanny/bin
mkdir -p opt/CertNanny/inst
mkdir -p usr/bin
Expand All @@ -16,6 +12,8 @@ cp AIX/sscep.pre-deinstall.sh opt/CertNanny/inst
# compute the version number (VRML)
version=$(head -n 1 VERSION)
version="$version.0"
# provide the override inventory file to file ownership and permissions
cp AIX/override_inventory /tmp
# create the template and building the package
sed "s/VERSIONINFO/$version/" < AIX/lpp_template.in | sed "s#__PACKAGINGDIR__#$PWD#" > AIX/lpp_template
mkinstallp -d . -T AIX/lpp_template
Expand Down
46 changes: 46 additions & 0 deletions AIX/override_inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/opt/CertNanny:
owner = root
group = system
mode = 755
type =
class =
size =
checksum =

/opt/CertNanny/COPYRIGHT.sscep:
owner = root
group = system
mode = 644
type =
class =
size =
checksum =

/opt/CertNanny/bin:
owner = root
group = system
mode = 755
type =
class =
size =
checksum =

/opt/CertNanny/bin/sscep_static:
owner = root
group = system
mode = 755
type =
class =
size =
checksum =

/opt/CertNanny/bin/sscep_dyn:
owner = root
group = system
mode = 755
type =
class =
size =
checksum =


0 comments on commit d03a266

Please sign in to comment.