Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2003 02:33:05 +0200 (CEST)
From:      "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" <giffunip@yahoo.com>
To:        freebsd-ports@FreeBSD.org
Subject:   Small clean for spice port
Message-ID:  <20030411003305.69557.qmail@web13409.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
--0-1475092076-1050021185=:68393
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Id: 
Content-Disposition: inline

Hi!

I was preparing to do some major update to the spice
port and then became busy with other ports and real
life :).

JIC someone is interested, here is a first attempt to
clean the port. The next step would be to include the
Macquarie University patches in the "files" directory
and apply them.

cheers,

    Pedro.

______________________________________________________________________
Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino
http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html
--0-1475092076-1050021185=:68393
Content-Type: application/octet-stream; name="spice.diff"
Content-Transfer-Encoding: base64
Content-Description: spice.diff
Content-Disposition: attachment; filename="spice.diff"

ZGlmZiAtdU5yIHNwaWNlLm9yaWcvTWFrZWZpbGUgc3BpY2UvTWFrZWZpbGUK
LS0tIHNwaWNlLm9yaWcvTWFrZWZpbGUJVGh1IEphbiAzMCAxNjoyNDozNCAy
MDAzCisrKyBzcGljZS9NYWtlZmlsZQlTYXQgRmViICAxIDE3OjM2OjA1IDIw
MDMKQEAgLTEyLDEzICsxMiwxNCBAQAogRElTVE5BTUU9CXNwM2Y0LmtpdAog
RVhUUkFDVF9TVUZYPQkudGFyLloKIAotTUFJTlRBSU5FUj0Ja2F2ZW1hbkBt
YWduYS5jb20uYXUKK01BSU5UQUlORVI9CXBvcnRzQEZyZWVCU0Qub3JnCiAK
LSMgZG9jdW1lbnRhdGlvbiBpbiBmdHA6Ly9pYy5lZWNzLmJlcmtlbGV5LmVk
dS9wdWIvU3BpY2UzL3VtLjNmMy5wcworRElTVF9TVUJESVI9CXNwaWNlCiAK
LSMJCV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YmxlICooKmlmX2dldHBhcmFt
KSggKTsKKyAgCisgICNpZmRlZiBCQVRDSAorKioqKioqKioqKioqKioqCisq
KiogMTgxLDE4NiAqKioqCistLS0gMTk0LDI4MiAtLS0tCisgIAorICAjZW5k
aWYKKyAgCisrICNpZmRlZiBIQVNfR05VUkVBRExJTkUKKysgLyogQWRhcHRl
ZCAuLi9saWIvY3AvbGV4aWNhbC5jOnByb21wdCgpIGZvciBHTlUgUmVhZGxp
bmUgLS0gQW5kcmV3IFZlbGlhdGggPHZlbGlhYUBycGkuZWR1PiAqLworKyBz
dGF0aWMgY2hhciAqCisrIHByb21wdCgpCisrIHsKKysgICAgIHN0YXRpYyBj
aGFyIHBidWZbMTI4XTsKKysgICAgIGNoYXIgKnAgPSBwYnVmLCAqczsKKysg
CisrICAgICBpZiAoY3BfaW50ZXJhY3RpdmUgPT0gZmFsc2UpCisrICAgICAg
ICAgcmV0dXJuOworKyAgICAgaWYgKGNwX3Byb21wdHN0cmluZyA9PSBOVUxM
KQorKyAgICAgICAgIHMgPSAiLT4gIjsKKysgICAgIGVsc2UKKysgICAgICAg
ICBzID0gY3BfcHJvbXB0c3RyaW5nOworKyAgICAgaWYgKGNwX2FsdHByb21w
dCkKKysgICAgICAgICBzID0gY3BfYWx0cHJvbXB0OworKyAgICAgd2hpbGUg
KCpzKSB7CisrICAgICAgICAgc3dpdGNoIChzdHJpcCgqcykpIHsKKysgCWNh
c2UgJyEnOgorKyAJICAgIHAgKz0gc3ByaW50ZihwLCAiJWQiLCB3aGVyZV9o
aXN0b3J5KCkgKyAxKTsKKysgCSAgICBicmVhazsKKysgCWNhc2UgJ1xcJzoK
KysgCSAgICBpZiAoKihzICsgMSkpIAorKyAJCXAgKz0gc3ByaW50ZihwLCAi
JWMiLCBzdHJpcCgqKytzKSk7CisrIAlkZWZhdWx0OgorKyAJICAgICpwID0g
c3RyaXAoKnMpOyArK3A7CisrIAkgICAgYnJlYWs7CisrICAgICAgICAgfQor
KyAgICAgICAgIHM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nVuYzsKKysgCQorKyAgICAg
d2hpbGUgKDEpIHsKKysgCWhpc3Rvcnlfc2V0X3BvcyhoaXN0b3J5X2xlbmd0
aCk7CisrIAlsaW5lID0gcmVhZGxpbmUocHJvbXB0KCkpOworKyAJaWYgKGxp
bmUgJiYgKmxpbmUpIHsKKysgCSAgICBpbnQgcyA9IGhpc3RvcnlfZXhwYW5k
KGxpbmUsICZleHBhbmRlZF9saW5lKTsKKysgCQkgICAgCisrIAkgICAgaWYg
KHMgPT0gMikgeworKyAJCWZwcmludGYoc3RkZXJyLCAiLT4gJXNcbiIsIGV4
cGFuZGVkX2xpbmUpOworKyAJICAgIH0gZWxzZSBpZiAocyA9PSAtMSkgewor
KyAJCWZwcmludGYoc3RkZXJyLCAicmVhZGxpbmU6ICVzXG4iLCBleHBhbmRl
ZF9saW5lKTsKKysgCSAgICB9IGVsc2UgeworKyAJCWNwX2V2bG9vcChleHBh
bmRlZF9saW5lKTsKKysgCQlhZGRfaGlzdG9yeShleHBhbmRlZF9saW5lKTsK
KysgCSAgICB9CisrIAkgICAgZnJlZShleHBhbmRlZF9saW5lKTsKKysgCX0K
KysgCWlmIChsaW5lKSBmcmVlKGxpbmUpOworKyAgICAgfQorKyAgICAgLyog
SGlzdG9yeSBnZXRzIHdyaXR0ZW4gaW4gLi4vZnRlL21pc2Njb21zLmMgY29t
X3F1aXQgKi8KKysgfQorKyAjZW5kaWYgLyogSEFTX0dOVVJFQURMSU5FICov
CisrIAorICBjaGFyICpobHBfZmlsZWxpc3RbXSA9IHsgInNwaWNlIiwgMCB9
OworICAKKyAgdm9pZAorKioqKioqKioqKioqKioqCisqKiogMjE3LDIyMiAq
KioqCistLS0gMzEzLDMyNSAtLS0tCisgICAgICB9CisgICAgICBzdGFydGVk
ID0gdHJ1ZTsKKyAgCisrICNpZmRlZiBIQVNfR05VUkVBRExJTkUKKysgICAg
IGlmICghKGFwcGxpY2F0aW9uX25hbWUgPSBzdHJyY2hyKGF2WzBdLCcvJykp
KQorK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5vcmlnL3BrZy1jb21tZW50CVRodSBKYW4gMzAgMTY6MjQ6
MzQgMjAwMworKysgc3BpY2UvcGtnLWNvbW1lbnQJRnJpIEphbiAzMSAxNToz
ODo1NiAyMDAzCkBAIC0xICsxIEBACi1BIGdlbmVyYWwtcHVycG9zZSBjaXJj
dWl0IHNpbXVsYXRpb24gcHJvZ3JhbQorQ2xhc3NpYyBTaW11bGF0aW9uIFBy
b2dyYW0gZm9yIEludGVncmF0ZWQgQ2lyY3VpdCBFbGVjdHJvbmljcyAoQyBW
ZXJzaW9uKQo=

--0-1475092076-1050021185=:68393--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030411003305.69557.qmail>