Re: puzzled, gives file but does not make files/directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- ed <ed@xxxxxxxxxx> wrote:

> Goodday all.
> 
> I do not get it. Here is my spec file, which does do
> a
> proper build.
> Well at least, so it seems. But why the files and
> directories are
> not made from this rpm is puzzling me for weeks now.
> The
> build
> on the system goes well, but the rpm install on the
> target
> does nothing
> except the requested configuration file, but there
> is more.
> 
> System RH EL5   and there is of course a buildroot,
> and the
> build enviroment
> seems to be proper ( rpmbuild -ba -bb etc does not
> complain
> )
> 
> Anyone has a pointer or hint to put me in the right
> direction ?
> 
>  regards, and best wishes for 2008,  Ed de la Rie
> 
> xxxxx.spec
> 
> Name:           xxxxx
> Version:        0.4
> Release:        0%
> Source0:        xxxxx.tar
> BuildRoot:     
> /var/tmp/buildroot-%{name}-%{version}
> 
> %description
> This does something usefull
> 
> %prep
> 
> %setup -q -c
> 
> %build
> 
> %install
> 
>  mkdir -p       $RPM_BUILD_ROOT/var/lib/xxxxx
>  mkdir -p       $RPM_BUILD_ROOT/var/log/xxxxx
>  touch         
> $RPM_BUILD_ROOT/var/log/xxxxx-configure.log
>  chmod 600      $RPM_BUILD_ROOT/var/log/xxxxx
>  chmod 640     
> $RPM_BUILD_ROOT/var/log/xxxxx-configure.log
> 
>  mkdir -p       $RPM_BUILD_ROOT/etc/xxxxx/confs
>  mkdir -p       $RPM_BUILD_ROOT/etc/xxxxx/ca.d
>  mkdir -p       $RPM_BUILD_ROOT/etc/xxxxx/key.d
>  mkdir -p       $RPM_BUILD_ROOT/etc/xxxxx/cert.d
> 
>  cp /etc/pki/tls/private/*.key /etc/xxxxx/key.d
>  cp /etc/pki/tls/certs/*.crt /etc/xxxxx/cert.d
>  cp /etc/pki/certs/cacert.crt /etc/xxxxx/cert.d
> 
> openssl x509 -noout -hash -in
> /etc/xxxxx/cert.d/cacert.crt >
> /etc/xxxxx/hash.txt
> echo $(cat /etc/xxxxx/hash.txt).0 >
> /etc/xxxxx/hash.0.txt
> ln -s /etc/xxxxx/cert.d/cacert.pem $(cat
> /etc/xxxxx/hash.0.txt)
> 
> 
>  cat            $RPM_SOURCE_DIR/xxxxx.tar | tar xvvf
> -
> 
> cp -r * $RPM_BUILD_ROOT
>  install -m644 %{SOURCE0} -D %{buildroot}/xxxxx.conf
> %files
> %attr(-,root,root)
>    /etc/xxxxx/xxxxx.conf

Files section specified which files should be packed.
You specify only one file, so it's only file in your
rpm.

Valery

> 
> %post
> 
>   sh /etc/init.d/xxxxx reload || true
> 
> %check
> /bin/true
> 
> %clean
> 
> cat << EOF
> 
> System installed
> 
> EOF
> 
> %changelog
> * Tue Dec 04 2007 Ed 
> - Version 0.3 prelimenary
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux