diff options
| author | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2013-07-11 17:37:43 +0300 |
|---|---|---|
| committer | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2013-07-11 17:37:43 +0300 |
| commit | 2d0c61a39f5608fbe2180ccfd067d0858aa12092 (patch) | |
| tree | 83f6ab9e0f71af2e873083602e0673bbdb81dc50 /recipes-security/bastille | |
| parent | d54c9d7dadfddcd60ca11be23c5a2946f8a1b385 (diff) | |
| download | meta-security-2d0c61a39f5608fbe2180ccfd067d0858aa12092.tar.gz | |
meta-security-1.0-final
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Diffstat (limited to 'recipes-security/bastille')
| -rw-r--r-- | recipes-security/bastille/bastille_3.2.1.bb | 197 |
1 files changed, 88 insertions, 109 deletions
diff --git a/recipes-security/bastille/bastille_3.2.1.bb b/recipes-security/bastille/bastille_3.2.1.bb index 36c30e5..ae7fe15 100644 --- a/recipes-security/bastille/bastille_3.2.1.bb +++ b/recipes-security/bastille/bastille_3.2.1.bb | |||
| @@ -18,29 +18,14 @@ SRC_URI = "http://sourceforge.net/projects/bastille-linux/files/bastille-linux/3 | |||
| 18 | file://fix_version_parse.patch \ | 18 | file://fix_version_parse.patch \ |
| 19 | file://yocto-standard-patch.patch \ | 19 | file://yocto-standard-patch.patch \ |
| 20 | file://Curses-and-IOLoader-changes.patch \ | 20 | file://Curses-and-IOLoader-changes.patch \ |
| 21 | " | 21 | " |
| 22 | 22 | ||
| 23 | SRC_URI[md5sum] = "df803f7e38085aa5da79f85d0539f91b" | 23 | SRC_URI[md5sum] = "df803f7e38085aa5da79f85d0539f91b" |
| 24 | SRC_URI[sha256sum] = "0ea25191b1dc1c8f91e1b6f8cb5436a3aa1e57418809ef902293448efed5021a" | 24 | SRC_URI[sha256sum] = "0ea25191b1dc1c8f91e1b6f8cb5436a3aa1e57418809ef902293448efed5021a" |
| 25 | 25 | ||
| 26 | S = "${WORKDIR}/Bastille" | 26 | S = "${WORKDIR}/Bastille" |
| 27 | 27 | ||
| 28 | #CONFFILES_${PN} += "${sysconfdir}/init.d/skeleton" | ||
| 29 | # | ||
| 30 | #do_compile () { | ||
| 31 | # ${CC} ${WORKDIR}/skeleton_test.c -o ${WORKDIR}/skeleton-test | ||
| 32 | #} | ||
| 33 | # | ||
| 34 | do_install () { | 28 | do_install () { |
| 35 | # install -d ${D}${sysconfdir}/init.d | ||
| 36 | # cat ${WORKDIR}/skeleton | \ | ||
| 37 | # sed -e 's,/etc,${sysconfdir},g' \ | ||
| 38 | # -e 's,/usr/sbin,${sbindir},g' \ | ||
| 39 | # -e 's,/var,${localstatedir},g' \ | ||
| 40 | # -e 's,/usr/bin,${bindir},g' \ | ||
| 41 | # -e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/skeleton | ||
| 42 | # chmod a+x ${D}${sysconfdir}/init.d/skeleton | ||
| 43 | |||
| 44 | install -d ${D}${sbindir} | 29 | install -d ${D}${sbindir} |
| 45 | install -d ${D}${libdir}/perl/site_perl/Curses | 30 | install -d ${D}${libdir}/perl/site_perl/Curses |
| 46 | ln -sf perl ${D}/${libdir}/perl5 | 31 | ln -sf perl ${D}/${libdir}/perl5 |
| @@ -55,106 +40,100 @@ do_install () { | |||
| 55 | install -d ${D}${localstatedir}/lock/subsys/bastille | 40 | install -d ${D}${localstatedir}/lock/subsys/bastille |
| 56 | install -d ${D}${localstatedir}/log/Bastille | 41 | install -d ${D}${localstatedir}/log/Bastille |
| 57 | install -d ${D}${sysconfdir}/Bastille | 42 | install -d ${D}${sysconfdir}/Bastille |
| 58 | 43 | install -m 0755 AutomatedBastillei ${D}${sbindir} | |
| 59 | install -m 0755 AutomatedBastille ${D}${sbindir} | 44 | install -m 0755 BastilleBackEnd ${D}${sbindir} |
| 60 | install -m 0755 BastilleBackEnd ${D}${sbindir} | 45 | install -m 0755 InteractiveBastille ${D}${sbindir} |
| 61 | install -m 0755 InteractiveBastille ${D}${sbindir} | 46 | install -m 0644 Modules.txt ${D}${datadir}/Bastille |
| 62 | # Questions.txt has been replaced by Modules.txt and Questions/ | ||
| 63 | #install -m 0644 Questions.txt ${D}${datadir}/Bastille | ||
| 64 | install -m 0644 Modules.txt ${D}${datadir}/Bastille | ||
| 65 | # New Weights file(s). | 47 | # New Weights file(s). |
| 66 | install -m 0644 Weights.txt ${D}${datadir}/Bastille | 48 | install -m 0644 Weights.txt ${D}${datadir}/Bastille |
| 67 | # Castle graphic | 49 | # Castle graphic |
| 68 | install -m 0644 bastille.jpg ${D}${datadir}/Bastille/ | 50 | install -m 0644 bastille.jpg ${D}${datadir}/Bastille/ |
| 69 | # Javascript file | 51 | # Javascript file |
| 70 | install -m 0644 wz_tooltip.js ${D}${datadir}/Bastille/ | 52 | install -m 0644 wz_tooltip.js ${D}${datadir}/Bastille/ |
| 71 | install -m 0644 Credits ${D}${datadir}/Bastille | 53 | install -m 0644 Credits ${D}${datadir}/Bastille |
| 72 | install -m 0644 FKL/configs/fkl_config_redhat.cfg ${D}${datadir}/Bastille/FKL/configs/ | 54 | install -m 0644 FKL/configs/fkl_config_redhat.cfg ${D}${datadir}/Bastille/FKL/configs/ |
| 55 | install -m 0755 RevertBastille ${D}${sbindir} | ||
| 56 | install -m 0755 bin/bastille ${D}${sbindir} | ||
| 57 | install -m 0644 bastille-firewall ${D}${datadir}/Bastille | ||
| 58 | install -m 0644 bastille-firewall-reset ${D}${datadir}/Bastille | ||
| 59 | install -m 0644 bastille-firewall-schedule ${D}${datadir}/Bastille | ||
| 60 | install -m 0644 bastille-tmpdir-defense.sh ${D}${datadir}/Bastille | ||
| 61 | install -m 0644 bastille-tmpdir.csh ${D}${datadir}/Bastille | ||
| 62 | install -m 0644 bastille-tmpdir.sh ${D}${datadir}/Bastille | ||
| 63 | install -m 0644 bastille-firewall.cfg ${D}${datadir}/Bastille | ||
| 64 | install -m 0644 bastille-ipchains ${D}${datadir}/Bastille | ||
| 65 | install -m 0644 bastille-netfilter ${D}${datadir}/Bastille | ||
| 66 | install -m 0644 bastille-firewall-early.sh ${D}${datadir}/Bastille | ||
| 67 | install -m 0644 bastille-firewall-pre-audit.sh ${D}${datadir}/Bastille | ||
| 68 | install -m 0644 complete.xbm ${D}${datadir}/Bastille | ||
| 69 | install -m 0644 incomplete.xbm ${D}${datadir}/Bastille | ||
| 70 | install -m 0644 disabled.xpm ${D}${datadir}/Bastille | ||
| 71 | install -m 0644 ifup-local ${D}${datadir}/Bastille | ||
| 72 | install -m 0644 hosts.allow ${D}${datadir}/Bastille | ||
| 73 | |||
| 74 | install -m 0644 Bastille/AccountSecurity.pm ${D}${libdir}/Bastille | ||
| 75 | install -m 0644 Bastille/Apache.pm ${D}${libdir}/Bastille | ||
| 76 | install -m 0644 Bastille/API.pm ${D}${libdir}/Bastille | ||
| 77 | install -m 0644 ${WORKDIR}/AccountPermission.pm ${D}${libdir}/Bastille/API | ||
| 78 | install -m 0644 ${WORKDIR}/FileContent.pm ${D}${libdir}/Bastille/API | ||
| 79 | install -m 0644 ${WORKDIR}/HPSpecific.pm ${D}${libdir}/Bastille/API | ||
| 80 | install -m 0644 ${WORKDIR}/ServiceAdmin.pm ${D}${libdir}/Bastille/API | ||
| 81 | install -m 0644 ${WORKDIR}/Miscellaneous.pm ${D}${libdir}/Bastille/API | ||
| 82 | install -m 0644 Bastille/BootSecurity.pm ${D}${libdir}/Bastille | ||
| 83 | install -m 0644 Bastille/ConfigureMiscPAM.pm ${D}${libdir}/Bastille | ||
| 84 | install -m 0644 Bastille/DisableUserTools.pm ${D}${libdir}/Bastille | ||
| 85 | install -m 0644 Bastille/DNS.pm ${D}${libdir}/Bastille | ||
| 86 | install -m 0644 Bastille/FilePermissions.pm ${D}${libdir}/Bastille | ||
| 87 | install -m 0644 Bastille/FTP.pm ${D}${libdir}/Bastille | ||
| 88 | install -m 0644 Bastille/Firewall.pm ${D}${libdir}/Bastille | ||
| 89 | install -m 0644 Bastille/OSX_API.pm ${D}${libdir}/Bastille | ||
| 90 | install -m 0644 Bastille/LogAPI.pm ${D}${libdir}/Bastille | ||
| 91 | install -m 0644 Bastille/HP_UX.pm ${D}${libdir}/Bastille | ||
| 92 | install -m 0644 Bastille/IOLoader.pm ${D}${libdir}/Bastille | ||
| 93 | install -m 0644 Bastille/Patches.pm ${D}${libdir}/Bastille | ||
| 94 | install -m 0644 Bastille/Logging.pm ${D}${libdir}/Bastille | ||
| 95 | install -m 0644 Bastille/MiscellaneousDaemons.pm ${D}${libdir}/Bastille | ||
| 96 | install -m 0644 Bastille/PatchDownload.pm ${D}${libdir}/Bastille | ||
| 97 | install -m 0644 Bastille/Printing.pm ${D}${libdir}/Bastille | ||
| 98 | install -m 0644 Bastille/PSAD.pm ${D}${libdir}/Bastille | ||
| 99 | install -m 0644 Bastille/RemoteAccess.pm ${D}${libdir}/Bastille | ||
| 100 | install -m 0644 Bastille/SecureInetd.pm ${D}${libdir}/Bastille | ||
| 101 | install -m 0644 Bastille/Sendmail.pm ${D}${libdir}/Bastille | ||
| 102 | install -m 0644 Bastille/TestDriver.pm ${D}${libdir}/Bastille | ||
| 103 | install -m 0644 Bastille/TMPDIR.pm ${D}${libdir}/Bastille | ||
| 104 | install -m 0644 Bastille/test_AccountSecurity.pm ${D}${libdir}/Bastille | ||
| 105 | install -m 0644 Bastille/test_Apache.pm ${D}${libdir}/Bastille | ||
| 106 | install -m 0644 Bastille/test_DNS.pm ${D}${libdir}/Bastille | ||
| 107 | install -m 0644 Bastille/test_FTP.pm ${D}${libdir}/Bastille | ||
| 108 | install -m 0644 Bastille/test_HP_UX.pm ${D}${libdir}/Bastille | ||
| 109 | install -m 0644 Bastille/test_MiscellaneousDaemons.pm ${D}${libdir}/Bastille | ||
| 110 | install -m 0644 Bastille/test_Patches.pm ${D}${libdir}/Bastille | ||
| 111 | install -m 0644 Bastille/test_SecureInetd.pm ${D}${libdir}/Bastille | ||
| 112 | install -m 0644 Bastille/test_Sendmail.pm ${D}${libdir}/Bastille | ||
| 113 | install -m 0644 Bastille/test_BootSecurity.pm ${D}${libdir}/Bastille | ||
| 114 | install -m 0644 Bastille/test_DisableUserTools.pm ${D}${libdir}/Bastille | ||
| 115 | install -m 0644 Bastille/test_FilePermissions.pm ${D}${libdir}/Bastille | ||
| 116 | install -m 0644 Bastille/test_Logging.pm ${D}${libdir}/Bastille | ||
| 117 | install -m 0644 Bastille/test_Printing.pm ${D}${libdir}/Bastille | ||
| 118 | install -m 0644 Bastille/IPFilter.pm ${D}${libdir}/Bastille | ||
| 119 | install -m 0644 Bastille_Curses.pm ${D}${libdir}/perl5/site_perl | ||
| 120 | install -m 0644 Bastille_Tk.pm ${D}${libdir}/perl5/site_perl | ||
| 121 | install -m 0644 Curses/Widgets.pm ${D}${libdir}/perl5/site_perl/Curses | ||
| 73 | 122 | ||
| 74 | install -m 0755 RevertBastille ${D}${sbindir} | 123 | install -m 0644 OSMap/LINUX.bastille ${D}${datadir}/Bastille/OSMap |
| 75 | install -m 0755 bin/bastille ${D}${sbindir} | 124 | install -m 0644 OSMap/LINUX.system ${D}${datadir}/Bastille/OSMap |
| 76 | install -m 0644 bastille-firewall ${D}${datadir}/Bastille | 125 | install -m 0644 OSMap/LINUX.service ${D}${datadir}/Bastille/OSMap |
| 77 | install -m 0644 bastille-firewall-reset ${D}${datadir}/Bastille | 126 | install -m 0644 OSMap/HP-UX.bastille ${D}${datadir}/Bastille/OSMap |
| 78 | install -m 0644 bastille-firewall-schedule ${D}${datadir}/Bastille | 127 | install -m 0644 OSMap/HP-UX.system ${D}${datadir}/Bastille/OSMap |
| 79 | install -m 0644 bastille-tmpdir-defense.sh ${D}${datadir}/Bastille | 128 | install -m 0644 OSMap/HP-UX.service ${D}${datadir}/Bastille/OSMap |
| 80 | install -m 0644 bastille-tmpdir.csh ${D}${datadir}/Bastille | 129 | install -m 0644 OSMap/OSX.bastille ${D}${datadir}/Bastille/OSMap |
| 81 | install -m 0644 bastille-tmpdir.sh ${D}${datadir}/Bastille | 130 | install -m 0644 OSMap/OSX.system ${D}${datadir}/Bastille/OSMap |
| 82 | install -m 0644 bastille-firewall.cfg ${D}${datadir}/Bastille | 131 | install -m 0644 ${WORKDIR}/config ${D}${sysconfdir}/Bastille/config |
| 83 | install -m 0644 bastille-ipchains ${D}${datadir}/Bastille | ||
| 84 | install -m 0644 bastille-netfilter ${D}${datadir}/Bastille | ||
| 85 | install -m 0644 bastille-firewall-early.sh ${D}${datadir}/Bastille | ||
| 86 | install -m 0644 bastille-firewall-pre-audit.sh ${D}${datadir}/Bastille | ||
| 87 | install -m 0644 complete.xbm ${D}${datadir}/Bastille | ||
| 88 | install -m 0644 incomplete.xbm ${D}${datadir}/Bastille | ||
| 89 | install -m 0644 disabled.xpm ${D}${datadir}/Bastille | ||
| 90 | install -m 0644 ifup-local ${D}${datadir}/Bastille | ||
| 91 | install -m 0644 hosts.allow ${D}${datadir}/Bastille | ||
| 92 | 132 | ||
| 93 | install -m 0644 Bastille/AccountSecurity.pm ${D}${libdir}/Bastille | ||
| 94 | install -m 0644 Bastille/Apache.pm ${D}${libdir}/Bastille | ||
| 95 | install -m 0644 Bastille/API.pm ${D}${libdir}/Bastille | ||
| 96 | install -m 0644 ${WORKDIR}/AccountPermission.pm ${D}${libdir}/Bastille/API | ||
| 97 | install -m 0644 ${WORKDIR}/FileContent.pm ${D}${libdir}/Bastille/API | ||
| 98 | install -m 0644 ${WORKDIR}/HPSpecific.pm ${D}${libdir}/Bastille/API | ||
| 99 | install -m 0644 ${WORKDIR}/ServiceAdmin.pm ${D}${libdir}/Bastille/API | ||
| 100 | install -m 0644 ${WORKDIR}/Miscellaneous.pm ${D}${libdir}/Bastille/API | ||
| 101 | install -m 0644 Bastille/BootSecurity.pm ${D}${libdir}/Bastille | ||
| 102 | install -m 0644 Bastille/ConfigureMiscPAM.pm ${D}${libdir}/Bastille | ||
| 103 | install -m 0644 Bastille/DisableUserTools.pm ${D}${libdir}/Bastille | ||
| 104 | install -m 0644 Bastille/DNS.pm ${D}${libdir}/Bastille | ||
| 105 | install -m 0644 Bastille/FilePermissions.pm ${D}${libdir}/Bastille | ||
| 106 | install -m 0644 Bastille/FTP.pm ${D}${libdir}/Bastille | ||
| 107 | install -m 0644 Bastille/Firewall.pm ${D}${libdir}/Bastille | ||
| 108 | install -m 0644 Bastille/OSX_API.pm ${D}${libdir}/Bastille | ||
| 109 | install -m 0644 Bastille/LogAPI.pm ${D}${libdir}/Bastille | ||
| 110 | install -m 0644 Bastille/HP_UX.pm ${D}${libdir}/Bastille | ||
| 111 | install -m 0644 Bastille/IOLoader.pm ${D}${libdir}/Bastille | ||
| 112 | install -m 0644 Bastille/Patches.pm ${D}${libdir}/Bastille | ||
| 113 | install -m 0644 Bastille/Logging.pm ${D}${libdir}/Bastille | ||
| 114 | install -m 0644 Bastille/MiscellaneousDaemons.pm ${D}${libdir}/Bastille | ||
| 115 | install -m 0644 Bastille/PatchDownload.pm ${D}${libdir}/Bastille | ||
| 116 | install -m 0644 Bastille/Printing.pm ${D}${libdir}/Bastille | ||
| 117 | install -m 0644 Bastille/PSAD.pm ${D}${libdir}/Bastille | ||
| 118 | install -m 0644 Bastille/RemoteAccess.pm ${D}${libdir}/Bastille | ||
| 119 | install -m 0644 Bastille/SecureInetd.pm ${D}${libdir}/Bastille | ||
| 120 | install -m 0644 Bastille/Sendmail.pm ${D}${libdir}/Bastille | ||
| 121 | install -m 0644 Bastille/TestDriver.pm ${D}${libdir}/Bastille | ||
| 122 | install -m 0644 Bastille/TMPDIR.pm ${D}${libdir}/Bastille | ||
| 123 | install -m 0644 Bastille/test_AccountSecurity.pm ${D}${libdir}/Bastille | ||
| 124 | install -m 0644 Bastille/test_Apache.pm ${D}${libdir}/Bastille | ||
| 125 | install -m 0644 Bastille/test_DNS.pm ${D}${libdir}/Bastille | ||
| 126 | install -m 0644 Bastille/test_FTP.pm ${D}${libdir}/Bastille | ||
| 127 | install -m 0644 Bastille/test_HP_UX.pm ${D}${libdir}/Bastille | ||
| 128 | install -m 0644 Bastille/test_MiscellaneousDaemons.pm ${D}${libdir}/Bastille | ||
| 129 | install -m 0644 Bastille/test_Patches.pm ${D}${libdir}/Bastille | ||
| 130 | install -m 0644 Bastille/test_SecureInetd.pm ${D}${libdir}/Bastille | ||
| 131 | install -m 0644 Bastille/test_Sendmail.pm ${D}${libdir}/Bastille | ||
| 132 | install -m 0644 Bastille/test_BootSecurity.pm ${D}${libdir}/Bastille | ||
| 133 | install -m 0644 Bastille/test_DisableUserTools.pm ${D}${libdir}/Bastille | ||
| 134 | install -m 0644 Bastille/test_FilePermissions.pm ${D}${libdir}/Bastille | ||
| 135 | install -m 0644 Bastille/test_Logging.pm ${D}${libdir}/Bastille | ||
| 136 | install -m 0644 Bastille/test_Printing.pm ${D}${libdir}/Bastille | ||
| 137 | install -m 0644 Bastille/IPFilter.pm ${D}${libdir}/Bastille | ||
| 138 | install -m 0644 Bastille_Curses.pm ${D}${libdir}/perl5/site_perl | ||
| 139 | install -m 0644 Bastille_Tk.pm ${D}${libdir}/perl5/site_perl | ||
| 140 | install -m 0644 Curses/Widgets.pm ${D}${libdir}/perl5/site_perl/Curses | ||
| 141 | |||
| 142 | |||
| 143 | |||
| 144 | install -m 0644 OSMap/LINUX.bastille ${D}${datadir}/Bastille/OSMap | ||
| 145 | install -m 0644 OSMap/LINUX.system ${D}${datadir}/Bastille/OSMap | ||
| 146 | install -m 0644 OSMap/LINUX.service ${D}${datadir}/Bastille/OSMap | ||
| 147 | install -m 0644 OSMap/HP-UX.bastille ${D}${datadir}/Bastille/OSMap | ||
| 148 | install -m 0644 OSMap/HP-UX.system ${D}${datadir}/Bastille/OSMap | ||
| 149 | install -m 0644 OSMap/HP-UX.service ${D}${datadir}/Bastille/OSMap | ||
| 150 | install -m 0644 OSMap/OSX.bastille ${D}${datadir}/Bastille/OSMap | ||
| 151 | install -m 0644 OSMap/OSX.system ${D}${datadir}/Bastille/OSMap | ||
| 152 | install -m 0644 ${WORKDIR}/config ${D}${sysconfdir}/Bastille/config | ||
| 153 | |||
| 154 | for file in `cat Modules.txt` ; do | 133 | for file in `cat Modules.txt` ; do |
| 155 | install -m 0644 Questions/$file.txt ${D}${datadir}/Bastille/Questions | 134 | install -m 0644 Questions/$file.txt ${D}${datadir}/Bastille/Questions |
| 156 | done | 135 | done |
| 157 | 136 | ||
| 158 | ln -s ${D}${sbindir}/RevertBastille ${D}${sbindir}/UndoBastille | 137 | ln -s ${D}${sbindir}/RevertBastille ${D}${sbindir}/UndoBastille |
| 159 | } | 138 | } |
| 160 | 139 | ||
