Package: yasat
Version: 456-1

Is not a good idea to build binaries and plugin in one package.  The 
package will be easier to maintain when you add new plugins and not 
comport an upgrade of binaries in the target system. 
I suggest the following patch :


In debian directory :

debian/control :

Source: yasat
Section: admin
Priority: optional
Maintainer: Corentin LABBE <corentin.la...@geomatys.fr>
Build-Depends: debhelper (>= 7.0.50)
Standards-Version: 3.9.3
Homepage: http://yasat.sourceforge.net/

Package: yasat-bin
Architecture: all
Depends: ${misc:Depends}
Description: simple stupid audit tool
 YASAT (Yet Another Stupid Audit Tool) goal is to be as simple as possible 
with
 minimum binary dependencies (only sed, grep and cut). Second goal is to
 document each test with maximum information and links to official
 documentation. It do many tests for checking security configuration issue 
or
 others good practice. It checks many software configurations like: 
Apache,
 Bind DNS, CUPS, PHP, kernel configuration, mysql, network configuration,
 openvpn, Packages update, samba, snmpd, squid, syslog, tomcat,
 user accounting, vsftpd, xinetd.

Package: yasat-plugins-common
Architecture: all
Depends: yasat-bin
Description: simple stupid audit tool (commons plugins)
 YASAT (Yet Another Stupid Audit Tool) goal is to be as simple as possible 
with
 minimum binary dependencies (only sed, grep and cut). Second goal is to
 document each test with maximum information and links to official
 documentation. It do many tests for checking security configuration issue 
or
 others good practice. It checks many software configurations like: 
Apache,
 Bind DNS, CUPS, PHP, kernel configuration, mysql, network configuration,
 openvpn, Packages update, samba, snmpd, squid, syslog, tomcat,
 user accounting, vsftpd, xinetd.
 This package contains many commons plugins.


debian/yasat-bin.install
cat yasat-bin.install 
usr/bin/yasat 
usr/etc/yasat/yasat.conf etc/yasat/
usr/share/man/man8/*
usr/share/yasat/common
usr/share/yasat/yasat.css
usr/share/yasat/osdetection


debian/yasat-plugins-common.install 
usr/share/yasat/plugins/commons/* usr/share/yasat/plugins

debian/rules
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of 
dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1


# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)


config.status: 
        dh_testdir

build: build-stamp

build-stamp:  config.status 
        dh_testdir

        # Add here commands to compile the package.
        $(MAKE)

        touch $@



install: build
        dh_testdir
        dh_testroot
        dh_prep 
        dh_installdirs

        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp installman
        find $(CURDIR)/debian/tmp -name ".svn" -exec rm -rf {} \; || true

# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: install
        dh_testdir
        dh_testroot
        dh_installchangelogs --exclude=ChangeLog
        dh_installdocs
        dh_installexamples
        dh_install --list-missing
        dh_installman
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
        dh_makeshlibs -V
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install 

In root directory :
Makefile
2c2
< PREFIX=/usr/local/
---
> PREFIX=/usr
41,42c41,42
<       chmod +x ./tests/*.test
<       chmod +x ./plugins/*.test
---
> #     chmod +x ./tests/*.test
> #     chmod +x ./plugins/*.test
45c45
<       cp yasat.sh ${DESTDIR}/${PREFIX}/bin/yasat.sh
---
>       cp yasat.sh ${DESTDIR}/${PREFIX}/bin/yasat
58c58
<       bzip2 -f -9 ${DESTDIR}/${MANDIR}/yasat.8
---
> #     cp ${DESTDIR}/${MANDIR}/yasat.8


Best Regards

Antonio J. Russo
HPC Systems Administrator



Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à 
l'intention exclusive des destinataires et les informations qui y figurent sont 
strictement confidentielles. Toute utilisation de ce Message non conforme à sa 
destination, toute diffusion ou toute publication totale ou partielle, est 
interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le 
copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si 
vous avez reçu ce Message par erreur, merci de le supprimer de votre système, 
ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support 
que ce soit. Nous vous remercions également d'en avertir immédiatement 
l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie 
électronique arrivent en temps utile, sont sécurisées ou dénuées de toute 
erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the 
addressees. The information contained in this Message is confidential. Any use 
of information contained in this Message not in accord with its purpose, any 
dissemination or disclosure, either whole or partial, is prohibited except 
formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any 
part of it. If you have received this message in error, please delete it and 
all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or 
virus-free.

Reply via email to