Changeset 1008 for opsi


Ignore:
Timestamp:
Jun 1, 2012, 5:12:34 PM (12 years ago)
Author:
joergs
Message:

add group wsusoffline

Location:
opsi/server/wsusoffline
Files:
1 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • opsi/server/wsusoffline/SOURCES

    r1000 r1008  
    1 wsusoffline731.zip
     1wsusoffline/
  • opsi/server/wsusoffline/wsusoffline.spec

    r1004 r1008  
    2727Source:         %{name}_%{version}.orig.tar.gz
    2828BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    29 BuildRequires:  unzip
     29BuildRequires:  unzip pwdutils
    3030Requires:       cabextract dos2unix md5deep xmlstarlet wget
    3131BuildArch:      noarch
     
    4848%define DEST_DIR "/var/lib/wsusoffline/"
    4949mkdir -p $RPM_BUILD_ROOT/var/lib/
    50 unzip %{name}%{ver}.zip -d $RPM_BUILD_ROOT/var/lib/
     50unzip wsusoffline/%{name}%{ver}.zip -d $RPM_BUILD_ROOT/var/lib/
     51chmod -R g+w $RPM_BUILD_ROOT/%{DEST_DIR}/client/
    5152chmod a+x $RPM_BUILD_ROOT/%{DEST_DIR}/sh/*
    5253mkdir -p $RPM_BUILD_ROOT/usr/bin/
     
    5758rm -rf %{buildroot}
    5859
     60%pre
     61getent group wsusoffline >/dev/null || groupadd -r wsusoffline
     62exit 0
     63
    5964%files
    6065%defattr(-,root,root)
     66/usr/bin/wsus-*.sh
    6167%{DEST_DIR}
    62 /usr/bin/wsus-*.sh
     68%defattr(-,root,wsusoffline)
     69%{DEST_DIR}/client/
     70
    6371
    6472
Note: See TracChangeset for help on using the changeset viewer.