Initial checkin

Package-Manager: portage-2.2.0_alpha166
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2013-04-18 17:49:09 +02:00
parent 614fd627bc
commit dff9ccf8a6
7 changed files with 122 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# ChangeLog for app-admin/wsusoffline
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*wsusoffline-8.3 (18 Apr 2013)
18 Apr 2013; Mario Fetka <mario.fetka@gmail.com> +files/wsusoffline.bin,
+files/wsusoffline.confd, +files/wsusoffline.cron, +metadata.xml,
+wsusoffline-8.3.ebuild:
Initial checkin

View File

@ -0,0 +1,7 @@
AUX wsusoffline.bin 735 SHA256 4e9820df3470f55496c69b2027fe01819b6232a1de711da0706d6ca5ef6de142 SHA512 7f1fe8daa9fd87d7cdec8e224b88c0bc94e68de0459a3755c072b7ff3ecc0dc09797d7d3b0f61e66a15d9cc1d0425955730c6b33454281e6b117b915c6fa8bf8 WHIRLPOOL 1313d47860b7f4b5ed4e3ee690c8cd5b1f153c263ba779d49104d700f1d0dbc66083446a81ecfa03187b7aa270832aa8b7cfa27a3aa726e71c6ecec61ac68b4e
AUX wsusoffline.confd 374 SHA256 a8d5b0c3b4eaff2048ada6d555f53f253a34f497985e0bd957fa56dc6cdba425 SHA512 2004e60ffb0f2a7459d4b9aa0a05796802cf89d3b057b1bbb47671e7b129e443ae809742da74b4082703d2f170ff8793623a2151ef68bf6c6dbfe610ac184b85 WHIRLPOOL 4d5cab875264ac12467862db1986536e18bc41e867de747e703f5f8b5e80d88cce92cc5d0d7b7b463fde126f93d2d613d0c8a96eddea0aef3bca190d073197ad
AUX wsusoffline.cron 131 SHA256 eb21f02fd31197adc1dc81fa79667742aa26cb9f43b012bd8850e5a29a0fea78 SHA512 7e989228a4a0e50a3338d92a481116504be2bf1a34cf1e4a0316bd70bb66c8b8420d4a0d4bacc25730b344b3baf939a18c257b77b411fcc663ac7ad99a6a4758 WHIRLPOOL 7394b5268f1dce4a759af12538b48c81b0c0a43cefd30e744ae5a4c65dd7d45e7238f04e3528de1e0b995b663cb1a58200efcb0458224c54719674a05e05e48e
DIST wsusoffline83.zip 1946780 SHA256 c23043664fbe799d5b73c809261dd25cb117359a5563f397dff16db8ad154256 SHA512 594a67150436fc6fc02258cf124e75fc3b7b0aa272178e032f1c6d3088f8066e58a1cd06c5c71d18e7600efd6aeac868b672d91f8f4723f73139390024288cbb WHIRLPOOL a5467afa11c848a6ad28797818af7b4761f713adb9e98ccae727653bd1aa16f5a0f38dee2aef2e5f38905c79572961aebac66e3ef4b4ce9e221948e683655c92
EBUILD wsusoffline-8.3.ebuild 1039 SHA256 565291b5775641fcd0cc98a35b8d16df10769a36dde67bd3859970cf6d6e2033 SHA512 d5000476b2111394edbb2fc85660335498b068eb78fdfe4d5a7448b97fa05eedfb978ee9027fbddd3bc0635f9f50de6cf8d9a7d4b270bd1a5caa80a7a9846d9b WHIRLPOOL eff3ee336914cf88cae92b227f69dc0ba1a6628caf42890e6ca3716b9becb7ab6c3842f0ce9d73f393d9abd85811cf33f13e38a48b22d34e7d6b4e1673c3b0a2
MISC ChangeLog 342 SHA256 e1ded887ce4d02ce331f1f470b742f4f33a27b67c14c5e1c5081a4d842dcd9f5 SHA512 ec48b50a4369f52be76e09625cb10674f5351120ddfc3b916c49a7c9e7a892da1ebdb9670c6f6817b4246f9ba3f0fcd9570ec2efe9a4a2968d2ffce1a2ce60fa WHIRLPOOL 0abdb659e002ba4faa68070d6f12ff38035040cdaba560da091523dcbeefa4ec441d22c7e33d426fcddaf5f1fe528b4be41def0001d4e5a040f5b442ecb48d3d
MISC metadata.xml 226 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2 SHA512 5912920d8f6e9ee5126fb0aaa5717a562feb009cc59b759c6a6eaa909900b19e95e51e3aa7f32fdf2e77073b19878830b97947148e3adeff3b49e7555cfe29e9 WHIRLPOOL c07e2ddb648893f1e9c422e07b0b73a6d0f7e1c9501200b6fcc9d25fe68c3b05fe4f3523e6844067eeca6969973a44004e1ba8a6fa725591a1916648bd2d4834

View File

@ -0,0 +1,33 @@
#!/bin/bash
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
WSUSOFFLINEPROGRAM=/opt/wsusoffline/sh/DownloadUpdates.sh
WSUSOFFLINECONFIG=/etc/conf.d/wsusoffline
if [ ! -f $WSUSOFFLINEPROGRAM ]
then
echo "the Downloader $WSUSOFFLINEPROGRAM is not present."
exit 0
fi
if [ -f $WSUSOFFLINECONFIG ]
then
echo "source"
source $WSUSOFFLINECONFIG
fi
#[ ! -z $WSUSOFFLINEOPTIONS ] || exit 0
echo $WSUSOFFLINEOPTIONS
pushd /opt/wsusoffline/sh
for i in $WSUSOFFLINEOPTIONS
do
# process
echo $(echo $i|sed 's/;/ /g')
$WSUSOFFLINEPROGRAM $(echo $i|sed 's/;/ /g')
done
popd
echo "setting rights to the wsus user and group"
chown -R wsus:wsus /opt/wsusoffline

View File

@ -0,0 +1,10 @@
# /etc/conf.d/wsusoffline: config file for /etc/init.d/wsusoffline
# Options to pass to the DownloadUpdates.sh script of wsusoffline.
# you need to combine OS/Product with language.
# all-x64 w2k3-x64 w60-x64 w61-x64 w62-x64
# all-x86 w2k3 wxp w60 w61 w62
# ofc o2k3 o2k7 o2k10 o2k13
# for ex. wxp;deu o2k3;deu all-x86;deu ...
WSUSOFFLINE_OPTIONS=""

View File

@ -0,0 +1,2 @@
# every 8 day of month to follow the Microsoft patch day, 00:00
0 0 8 * * root [ -x /usr/bin/wsusoffline ] && /usr/bin/wsusoffline

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>mario.fetka@gmail.com</email>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1,52 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils versionator
MY_PV=$(replace_all_version_separators '' )
DESCRIPTION="Update Microsoft Windows and Office without an Internet connection"
HOMEPAGE="http://foo.example.org/"
SRC_URI="http://download.wsusoffline.net/wsusoffline${MY_PV}.zip"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~arm"
IUSE=""
RESTRICT="strip"
DEPEND="app-text/xmlstarlet
net-misc/wget
app-arch/cabextract
app-crypt/md5deep"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
pkg_setup() {
enewgroup wsus
enewuser wsus -1 /bin/bash /opt/wsusoffline wsus
}
#src_configure() {
#}
#src_compile() {
#}
src_install() {
insinto /opt/wsusoffline
doins -r *
newbin "${FILESDIR}"/wsusoffline.bin wsusoffline
newconfd "${FILESDIR}"/wsusoffline.confd wsusoffline
insinto /etc/cron.d
newins "${FILESDIR}"/wsusoffline.cron wsusoffline
fowners wsus:wsus /opt/wsusoffline
fperms +x /opt/wsusoffline/sh/DownloadUpdates.sh
}