Skip to content

Commit fd63986

Browse files
committed
Base native plugins for Alpine linux #1262
For now these contain placeholder empty .so/.exe Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent d4d10ac commit fd63986

File tree

35 files changed

+1439
-0
lines changed

35 files changed

+1439
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/build/
2+
/dist/
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
7-Zip Copyright (C) 1999-2010 Igor Pavlov.
2+
3+
Licenses for files are:
4+
5+
1) CPP/7zip/Compress/Rar* files: LGPL-2.1 and unRAR restriction
6+
2) the file in CPP/7zip/Crypto/AES files are under LGPL-2.1 and the
7+
Brian Gladman 3-Clause License
8+
3) All other files: LGPL-2.1
9+
10+
The LGPL-2.1 and unRAR restriction means that you must follow both
11+
LGPL-2.1 rules and unRAR restriction rules.
12+
13+
GNU LGPL information
14+
--------------------
15+
16+
This library is free software; you can redistribute it and/or
17+
modify it under the terms of the GNU Lesser General Public
18+
License as published by the Free Software Foundation; either
19+
version 2.1 of the License, or (at your option) any later version.
20+
21+
This library is distributed in the hope that it will be useful,
22+
but WITHOUT ANY WARRANTY; without even the implied warranty of
23+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24+
Lesser General Public License for more details.
25+
26+
You should have received a copy of the GNU Lesser General Public
27+
License along with this library; if not, write to the Free Software
28+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29+
30+
31+
unRAR restriction
32+
-----------------
33+
34+
The decompression engine for RAR archives was developed using source
35+
code of unRAR program.
36+
All copyrights to original unRAR code are owned by Alexander Roshal.
37+
38+
The license for original unRAR code has the following restriction:
39+
40+
The unRAR sources cannot be used to re-create the RAR compression
41+
algorithm, which is proprietary. Distribution of modified unRAR sources
42+
in separate form or as a part of other software is permitted, provided
43+
that it is clearly stated in the documentation and source comments that
44+
the code may not be used to develop a RAR (WinRAR) compatible archiver.
45+
46+
47+
Brian Gladman 3-Clause License
48+
------------------------------
49+
50+
Copyright (c) 2001, Dr Brian Gladman
51+
52+
LICENSE TERMS
53+
54+
The free distribution and use of this software in both source and binary
55+
form is allowed (with or without changes) provided that:
56+
57+
1. distributions of this source code include the above copyright
58+
notice, this list of conditions and the following disclaimer;
59+
60+
2. distributions in binary form include the above copyright
61+
notice, this list of conditions and the following disclaimer
62+
in the documentation and/or other associated materials;
63+
64+
3. the copyright holder's name is not used to endorse products
65+
built using this software without specific written permission.
66+
67+
DISCLAIMER
68+
69+
This software is provided 'as is' with no explicit or implied warranties
70+
in respect of its properties, including, but not limited to, correctness
71+
and fitness for purpose.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
graft src
2+
3+
include setup.py
4+
include setup.cfg
5+
include .gitignore
6+
include README.md
7+
include MANIFEST.in
8+
9+
global-exclude *.py[co] __pycache__ *.*~
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A scanCode plugin to provide pre-built binary libraries and utilities and their locations
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[metadata]
2+
license_file = LICENSE.txt
3+
4+
[aliases]
5+
release = clean --all bdist_wheel --plat-name manylinux1_x86_64
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env python
2+
# -*- encoding: utf-8 -*-
3+
4+
from __future__ import absolute_import
5+
from __future__ import print_function
6+
7+
from glob import glob
8+
from os.path import basename
9+
from os.path import join
10+
from os.path import splitext
11+
12+
from setuptools import find_packages
13+
from setuptools import setup
14+
15+
16+
desc = '''A ScanCode path provider plugin to provide a prebuilt native sevenzip binary.'''
17+
18+
setup(
19+
name='extractcode-7z',
20+
version='9.38.1',
21+
license='lgpl-2.1 and unrar and brian-gladman-3-clause',
22+
description=desc,
23+
long_description=desc,
24+
author='nexB',
25+
author_email='[email protected]',
26+
url='https://github.com/nexB/scancode-toolkit',
27+
packages=find_packages('src'),
28+
package_dir={'': 'src'},
29+
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
30+
include_package_data=True,
31+
zip_safe=False,
32+
classifiers=[
33+
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
34+
'Development Status :: 5 - Production/Stable',
35+
'Intended Audience :: Developers',
36+
'Topic :: Utilities',
37+
],
38+
keywords=[
39+
'open source', 'extractcode', 'libarchive'
40+
],
41+
install_requires=[
42+
'scancode-toolkit',
43+
],
44+
entry_points={
45+
'scancode_location_provider': [
46+
'extractcode-7zip = extractcode_7z:SevenzipPaths',
47+
],
48+
},
49+
)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Copyright (c) 2018 nexB Inc. and others. All rights reserved.
3+
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
4+
# The ScanCode software is licensed under the Apache License version 2.0.
5+
# Data generated with ScanCode require an acknowledgment.
6+
# ScanCode is a trademark of nexB Inc.
7+
#
8+
# You may not use this software except in compliance with the License.
9+
# You may obtain a copy of the License at: http://apache.org/licenses/LICENSE-2.0
10+
# Unless required by applicable law or agreed to in writing, software distributed
11+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
13+
# specific language governing permissions and limitations under the License.
14+
#
15+
# When you publish or redistribute any data created with ScanCode or any ScanCode
16+
# derivative work, you must accompany this data with the following acknowledgment:
17+
#
18+
# Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
19+
# OR CONDITIONS OF ANY KIND, either express or implied. No content created from
20+
# ScanCode should be considered or used as legal advice. Consult an Attorney
21+
# for any legal advice.
22+
# ScanCode is a free software code scanning tool from nexB Inc. and others.
23+
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.
24+
25+
from __future__ import absolute_import
26+
from __future__ import unicode_literals
27+
28+
from os.path import abspath
29+
from os.path import dirname
30+
from os.path import join
31+
32+
from plugincode.location_provider import LocationProviderPlugin
33+
from plugincode.location_provider import location_provider_impl
34+
35+
36+
class SevenzipPaths(LocationProviderPlugin):
37+
def get_locations(self):
38+
curr_dir = dirname(abspath(__file__))
39+
lib_dir = join(curr_dir, 'bin')
40+
locations = {
41+
'extractcode.sevenzip.libdir': lib_dir,
42+
'extractcode.sevenzip.exe': join(lib_dir, '7z'),
43+
}
44+
return locations

plugins/alpine/extractcode-7z-linux_x86_64/src/extractcode_7z/bin/7z

Whitespace-only changes.

plugins/alpine/extractcode-7z-linux_x86_64/src/extractcode_7z/bin/7z.so

Whitespace-only changes.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
7-Zip Copyright (C) 1999-2010 Igor Pavlov.
2+
3+
Licenses for files are:
4+
5+
1) CPP/7zip/Compress/Rar* files: LGPL-2.1 and unRAR restriction
6+
2) the file in CPP/7zip/Crypto/AES files are under LGPL-2.1 and the
7+
Brian Gladman 3-Clause License
8+
3) All other files: LGPL-2.1
9+
10+
The LGPL-2.1 and unRAR restriction means that you must follow both
11+
LGPL-2.1 rules and unRAR restriction rules.
12+
13+
GNU LGPL information
14+
--------------------
15+
16+
This library is free software; you can redistribute it and/or
17+
modify it under the terms of the GNU Lesser General Public
18+
License as published by the Free Software Foundation; either
19+
version 2.1 of the License, or (at your option) any later version.
20+
21+
This library is distributed in the hope that it will be useful,
22+
but WITHOUT ANY WARRANTY; without even the implied warranty of
23+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24+
Lesser General Public License for more details.
25+
26+
You should have received a copy of the GNU Lesser General Public
27+
License along with this library; if not, write to the Free Software
28+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29+
30+
31+
unRAR restriction
32+
-----------------
33+
34+
The decompression engine for RAR archives was developed using source
35+
code of unRAR program.
36+
All copyrights to original unRAR code are owned by Alexander Roshal.
37+
38+
The license for original unRAR code has the following restriction:
39+
40+
The unRAR sources cannot be used to re-create the RAR compression
41+
algorithm, which is proprietary. Distribution of modified unRAR sources
42+
in separate form or as a part of other software is permitted, provided
43+
that it is clearly stated in the documentation and source comments that
44+
the code may not be used to develop a RAR (WinRAR) compatible archiver.
45+
46+
47+
Brian Gladman 3-Clause License
48+
------------------------------
49+
50+
Copyright (c) 2001, Dr Brian Gladman
51+
52+
LICENSE TERMS
53+
54+
The free distribution and use of this software in both source and binary
55+
form is allowed (with or without changes) provided that:
56+
57+
1. distributions of this source code include the above copyright
58+
notice, this list of conditions and the following disclaimer;
59+
60+
2. distributions in binary form include the above copyright
61+
notice, this list of conditions and the following disclaimer
62+
in the documentation and/or other associated materials;
63+
64+
3. the copyright holder's name is not used to endorse products
65+
built using this software without specific written permission.
66+
67+
DISCLAIMER
68+
69+
This software is provided 'as is' with no explicit or implied warranties
70+
in respect of its properties, including, but not limited to, correctness
71+
and fitness for purpose.

0 commit comments

Comments
 (0)