diff options
Diffstat (limited to 'lib/perl')
-rw-r--r-- | lib/perl/COPYING | 24 | ||||
-rw-r--r-- | lib/perl/LICENSE | 24 | ||||
-rw-r--r-- | lib/perl/Makefile.PL | 19 | ||||
-rw-r--r-- | lib/perl/Makefile.am | 19 | ||||
-rw-r--r-- | lib/perl/README | 3 | ||||
-rw-r--r-- | lib/perl/lib/Thrift.pm | 21 | ||||
-rw-r--r-- | lib/perl/lib/Thrift/BinaryProtocol.pm | 21 | ||||
-rw-r--r-- | lib/perl/lib/Thrift/BufferedTransport.pm | 21 | ||||
-rw-r--r-- | lib/perl/lib/Thrift/FramedTransport.pm | 23 | ||||
-rw-r--r-- | lib/perl/lib/Thrift/HttpClient.pm | 25 | ||||
-rw-r--r-- | lib/perl/lib/Thrift/MemoryBuffer.pm | 21 | ||||
-rw-r--r-- | lib/perl/lib/Thrift/Protocol.pm | 25 | ||||
-rw-r--r-- | lib/perl/lib/Thrift/Socket.pm | 21 | ||||
-rw-r--r-- | lib/perl/lib/Thrift/Transport.pm | 25 | ||||
-rw-r--r-- | lib/perl/test.pl | 19 | ||||
-rw-r--r-- | lib/perl/test/Makefile.am | 19 | ||||
-rw-r--r-- | lib/perl/test/memory_buffer.t | 19 |
17 files changed, 228 insertions, 121 deletions
diff --git a/lib/perl/COPYING b/lib/perl/COPYING deleted file mode 100644 index 0101a7dc8..000000000 --- a/lib/perl/COPYING +++ /dev/null @@ -1,24 +0,0 @@ -Thrift Software License -Copyright (c) 2006- Facebook, Inc. - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: - -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/lib/perl/LICENSE b/lib/perl/LICENSE deleted file mode 100644 index 0101a7dc8..000000000 --- a/lib/perl/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -Thrift Software License -Copyright (c) 2006- Facebook, Inc. - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: - -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/lib/perl/Makefile.PL b/lib/perl/Makefile.PL index a860b4d5e..94ea37ce8 100644 --- a/lib/perl/Makefile.PL +++ b/lib/perl/Makefile.PL @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'Thrift', 'VERSION_FROM' => 'lib/Thrift.pm', diff --git a/lib/perl/Makefile.am b/lib/perl/Makefile.am index a83966e8c..d879636e3 100644 --- a/lib/perl/Makefile.am +++ b/lib/perl/Makefile.am @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + SUBDIRS = test Makefile-perl.mk : Makefile.PL diff --git a/lib/perl/README b/lib/perl/README index 3b95f13a1..7716c2eaa 100644 --- a/lib/perl/README +++ b/lib/perl/README @@ -1,8 +1,5 @@ Thrift Perl Software Library -Author: T Jake Luciani (jake@3.rdrail.net) -Last Modified: 2007-Sep-18 - Thrift is distributed under the Thrift open source software license. Please see the included LICENSE file. diff --git a/lib/perl/lib/Thrift.pm b/lib/perl/lib/Thrift.pm index bd0096f91..2560df7e0 100644 --- a/lib/perl/lib/Thrift.pm +++ b/lib/perl/lib/Thrift.pm @@ -1,13 +1,20 @@ # -# Copyright (c) 2006- Facebook -# Distributed under the Thrift Software License +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at # -# See accompanying file LICENSE or visit the Thrift site at: -# http://developers.facebook.com/thrift/ +# http://www.apache.org/licenses/LICENSE-2.0 # -# package - thrift -# author - T Jake Luciani <jakers@gmail.com> -# author - Mark Slee <mcslee@facebook.com> +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # our $VERSION = '0.1'; diff --git a/lib/perl/lib/Thrift/BinaryProtocol.pm b/lib/perl/lib/Thrift/BinaryProtocol.pm index 166f9a4dc..0e5d61d38 100644 --- a/lib/perl/lib/Thrift/BinaryProtocol.pm +++ b/lib/perl/lib/Thrift/BinaryProtocol.pm @@ -1,13 +1,20 @@ # -# Copyright (c) 2006- Facebook -# Distributed under the Thrift Software License +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at # -# See accompanying file LICENSE or visit the Thrift site at: -# http://developers.facebook.com/thrift/ +# http://www.apache.org/licenses/LICENSE-2.0 # -# package - thrift.protocol.binary -# author - T Jake Luciani <jakers@gmail.com> -# author - Mark Slee <mcslee@facebook.com> +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # require 5.6.0; diff --git a/lib/perl/lib/Thrift/BufferedTransport.pm b/lib/perl/lib/Thrift/BufferedTransport.pm index ecc25f3d1..bef564d67 100644 --- a/lib/perl/lib/Thrift/BufferedTransport.pm +++ b/lib/perl/lib/Thrift/BufferedTransport.pm @@ -1,13 +1,20 @@ # -# Copyright (c) 2006- Facebook -# Distributed under the Thrift Software License +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at # -# See accompanying file LICENSE or visit the Thrift site at: -# http://developers.facebook.com/thrift/ +# http://www.apache.org/licenses/LICENSE-2.0 # -# package - thrift.transport.buffered -# author - T Jake Luciani <jakers@gmail.com> -# author - Mark Slee <mcslee@facebook.com> +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # require 5.6.0; diff --git a/lib/perl/lib/Thrift/FramedTransport.pm b/lib/perl/lib/Thrift/FramedTransport.pm index ce5dc08d6..b78b1989f 100644 --- a/lib/perl/lib/Thrift/FramedTransport.pm +++ b/lib/perl/lib/Thrift/FramedTransport.pm @@ -1,15 +1,22 @@ # -# Copyright (c) 2006- Facebook -# Distributed under the Thrift Software License +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at # -# See accompanying file LICENSE or visit the Thrift site at: -# http://developers.facebook.com/thrift/ +# http://www.apache.org/licenses/LICENSE-2.0 # -# package - thrift -# author - T Jake Luciani <jakers@gmail.com> -# author - Mark Slee <mcslee@facebook.com> +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # -require 5.6.0; + use strict; use warnings; diff --git a/lib/perl/lib/Thrift/HttpClient.pm b/lib/perl/lib/Thrift/HttpClient.pm index f8a583daa..d6fc8be34 100644 --- a/lib/perl/lib/Thrift/HttpClient.pm +++ b/lib/perl/lib/Thrift/HttpClient.pm @@ -1,13 +1,20 @@ # -# Copyright (c) 2006- Facebook -# Distributed under the Thrift Software License -# -# See accompanying file LICENSE or visit the Thrift site at: -# http://developers.facebook.com/thrift/ -# -# package - thrift.transport.http -# based on socket transport implementation and java version of HttpClient -# author - Igor Afanasyev <igor.afanasyev@gmail.com> +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # require 5.6.0; diff --git a/lib/perl/lib/Thrift/MemoryBuffer.pm b/lib/perl/lib/Thrift/MemoryBuffer.pm index 62bc64ca2..32f144241 100644 --- a/lib/perl/lib/Thrift/MemoryBuffer.pm +++ b/lib/perl/lib/Thrift/MemoryBuffer.pm @@ -1,13 +1,20 @@ # -# Copyright (c) 2006- Facebook -# Distributed under the Thrift Software License +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at # -# See accompanying file LICENSE or visit the Thrift site at: -# http://developers.facebook.com/thrift/ +# http://www.apache.org/licenses/LICENSE-2.0 # -# package - thrift.transport.memorybuffer -# author - T Jake Luciani <jakers@gmail.com> -# author - Mark Slee <mcslee@facebook.com> +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # require 5.6.0; diff --git a/lib/perl/lib/Thrift/Protocol.pm b/lib/perl/lib/Thrift/Protocol.pm index d58d8b000..034711f3e 100644 --- a/lib/perl/lib/Thrift/Protocol.pm +++ b/lib/perl/lib/Thrift/Protocol.pm @@ -1,13 +1,20 @@ # -# Copyright (c) 2006- Facebook -# Distributed under the Thrift Software License -# -# See accompanying file LICENSE or visit the Thrift site at: -# http://developers.facebook.com/thrift/ -# -# package - thrift.protocol -# author - T Jake Luciani <jakers@gmail.com> -# author - Mark Slee <mcslee@facebook.com> +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # require 5.6.0; diff --git a/lib/perl/lib/Thrift/Socket.pm b/lib/perl/lib/Thrift/Socket.pm index 96f544efc..67faa5102 100644 --- a/lib/perl/lib/Thrift/Socket.pm +++ b/lib/perl/lib/Thrift/Socket.pm @@ -1,13 +1,20 @@ # -# Copyright (c) 2006- Facebook -# Distributed under the Thrift Software License +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at # -# See accompanying file LICENSE or visit the Thrift site at: -# http://developers.facebook.com/thrift/ +# http://www.apache.org/licenses/LICENSE-2.0 # -# package - thrift.socket -# author - T Jake Luciani <jakers@gmail.com> -# author - Mark Slee <mcslee@facebook.com> +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # require 5.6.0; diff --git a/lib/perl/lib/Thrift/Transport.pm b/lib/perl/lib/Thrift/Transport.pm index 989ccb688..e22592bec 100644 --- a/lib/perl/lib/Thrift/Transport.pm +++ b/lib/perl/lib/Thrift/Transport.pm @@ -1,13 +1,20 @@ # -# Copyright (c) 2006- Facebook -# Distributed under the Thrift Software License -# -# See accompanying file LICENSE or visit the Thrift site at: -# http://developers.facebook.com/thrift/ -# -# package - thrift.transport -# author - T Jake Luciani <jakers@gmail.com> -# author - Mark Slee <mcslee@facebook.com> +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. # require 5.6.0; diff --git a/lib/perl/test.pl b/lib/perl/test.pl index ff33f8ada..7e068402f 100644 --- a/lib/perl/test.pl +++ b/lib/perl/test.pl @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + use strict; use warnings; diff --git a/lib/perl/test/Makefile.am b/lib/perl/test/Makefile.am index 686b9092a..0dcb15a43 100644 --- a/lib/perl/test/Makefile.am +++ b/lib/perl/test/Makefile.am @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + THRIFT = @top_builddir@/compiler/cpp/thrift THRIFT_IF = @top_srcdir@/test/ThriftTest.thrift diff --git a/lib/perl/test/memory_buffer.t b/lib/perl/test/memory_buffer.t index 89510c5b5..8fa9fd72e 100644 --- a/lib/perl/test/memory_buffer.t +++ b/lib/perl/test/memory_buffer.t @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + use Test::More tests => 6; use strict; |