View | Details | Raw Unified | Return to bug 275036 | Differences between
and this patch

Collapse All | Expand All

(-)b/Makefile (+34 lines)
Added Link Here
1
PORTNAME=	xsser
2
PORTVERSION=	1.8.4
3
CATEGORIES=	security
4
MASTER_SITES=	https://teamsloth.net/
5
6
MAINTAINER=	notmyemail@gmail.com
7
COMMENT=	XSS Exploration
8
WWW=		https://xsser.03c8.net
9
10
LICENSE=	GPLv3
11
12
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycurl>0:ftp/py-pycurl@${PY_FLAVOR} \
13
		${PYTHON_PKGNAMEPREFIX}pygeoip>0:net/py-pygeoip@${PY_FLAVOR} \
14
		${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
15
		pygobject3-common>0:devel/pygobject3-common \
16
		${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}cairocffi>0:graphics/py-cairocffi@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR}
19
20
FLAVORS=	py39
21
FLAVOR?=	py39
22
23
USES=		python desktop-file-utils
24
USE_PYTHON=	autoplist concurrent distutils allflavors
25
26
GH_ACCOUNT=	mephistolist
27
GH_PROJECT=	xsser-port
28
GH_TAGNAME=	v${PORTVERSION}
29
30
post-extract:
31
		${CP} ${PORTSDIR}/security/${PORTNAME}/files/setup.py ${WRKSRC}/
32
		${CP} ${PORTSDIR}/security/${PORTNAME}/work-${PY_FLAVOR}/${PORTNAME}-${PORTVERSION}/xsser ${LOCALBASE}/bin/xsser
33
34
.include <bsd.port.mk>
(-)b/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1699666697
2
SHA256 (xsser-1.8.4.tar.gz) = 1d73e1ffbaa38be2bccf0699f5266fb800fe4b5ba901d74edb945a11ff50bb0e
3
SIZE (xsser-1.8.4.tar.gz) = 17863589
(-)b/files/setup.py (+67 lines)
Added Link Here
1
#!/usr/local/bin/python3.9
2
# -*- coding: utf-8 -*-
3
# vim: set expandtab tabstop=4 shiftwidth=4:
4
5
from setuptools import setup, find_packages
6
from setuptools.command.install import install
7
import os
8
import shutil
9
10
config_dir = '/usr/local/etc/xsser'
11
core_dir = '/usr/local/etc/xsser/core'
12
doc_dir = '/usr/local/etc/xsser/doc'
13
gtk_dir = '/usr/local/etc/xsser/gtk'
14
15
for path in [config_dir, core_dir, doc_dir, gtk_dir]:
16
    os.makedirs(path, exist_ok=True)
17
18
dirs = ['core', 'doc', 'gtk']
19
20
for i in dirs:
21
    local_dir = i  # Assuming 'core' is in the current working directory
22
    target_dir = '/usr/local/etc/xsser/' + i
23
24
    if os.path.exists(local_dir):
25
        for item in os.listdir(local_dir):
26
            local_item = os.path.join(local_dir, item)
27
            target_item = os.path.join(target_dir, item)
28
29
            # Check if the item is a file and copy it
30
            if os.path.isfile(local_item):
31
                shutil.copy(local_item, target_item)
32
            # Check if the item is a directory and copy it recursively
33
            elif os.path.isdir(local_item):
34
                shutil.copytree(local_item, target_item, dirs_exist_ok=True)
35
36
image_files = []
37
doc_files = []
38
gtk_doc_files = []
39
40
for afile in os.listdir('doc'):
41
    if afile != '.svn':
42
        doc_files.append('doc/' + afile)
43
for afile in os.listdir('gtk/docs'):
44
    if afile != '.svn':
45
        gtk_doc_files.append('gtk/docs/' + afile)
46
data_files = ['gtk/images/world.png',
47
              'gtk/images/xsser.jpg',
48
              'gtk/images/xssericon_16x16.png',
49
              'gtk/images/xssericon_24x24.png',
50
              'gtk/map/GeoIP.dat']
51
gtk_files = ['gtk/xsser.ui']
52
gtk_app_files = ['gtk/xsser.desktop']
53
54
setup(
55
    name="xsser",
56
    version="1.8.4",
57
    packages=['core', 'core.fuzzing', 'core.post', 'core.driver', 'gtk'],  # Explicitly list the packages
58
    data_files=[('/usr/share/doc/xsser/', doc_files),
59
                ('/usr/share/xsser/gtk/images/', data_files),
60
                ('/usr/share/xsser/gtk/docs/', gtk_doc_files),
61
                ('/usr/share/applications/', gtk_app_files),
62
                ('/usr/share/xsser/gtk/', gtk_files)],
63
    entry_points={
64
        'console_scripts': ['xsser = xsser:main'],
65
    },
66
    test_suite="tests",
67
)
(-)b/pkg-descr (+2 lines)
Added Link Here
1
Cross Site Scripting Tool Made For FreeBSD.
2
An automatic framework to detect, exploit and report XSS vulnerabilities.
(-)b/pkg-plist (-1 / +6 lines)
Added Link Here
0
- 
1
@dir /usr/share/applications
2
@dir /usr/share/doc/xsser
3
@dir /usr/share/xsser/gtk/docs
4
@dir /usr/share/xsser/gtk/images
5
@dir /usr/share/xsser/gtk
6
@dir /usr/share/xsser

Return to bug 275036