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

Collapse All | Expand All

(-)math/mprime/Makefile (-18 / +37 lines)
Lines 1-31 Link Here
1
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
1
# Created by: Rozhuk Ivan <rozhuk.im@gmail.com>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	mprime
4
PORTNAME=		mprime
5
PORTVERSION=	26.6
5
PORTVERSION=		28.10
6
CATEGORIES=	math benchmarks net
6
CATEGORIES=		math benchmarks net
7
MASTER_SITES=	http://www.mersenne.org/ftp_root/gimps/
7
MASTER_SITES=		http://www.mersenne.org/ftp_root/gimps/ \
8
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}-${OPSYS}
8
			ftp://mersenne.org/gimps/
9
DISTNAME=		p95v${PORTVERSION:R}${PORTVERSION:E}.source
9
10
10
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=		rozhuk.im@gmail.com
11
COMMENT=	mersenne.org distributed Great Internet Mersenne Prime Search
12
COMMENT=		mersenne.org distributed Great Internet Mersenne Prime Search
12
13
13
LIB_DEPENDS=	libcrypto.so.6:misc/compat9x
14
LICENSE=		EULA
15
LICENSE_NAME=		EULA
16
LICENSE_FILE=		${FILESDIR}/LICENSE
17
LICENSE_PERMS=		dist-mirror pkg-mirror auto-accept
14
18
15
ONLY_FOR_ARCHS=	i386
19
LIB_DEPENDS=		libcurl.so:ftp/curl
16
NO_BUILD=	yes
17
NO_WRKSUBDIR=	yes
18
20
19
SUB_FILES=	pkg-message wrapper.sh
21
ONLY_FOR_ARCHS=		amd64 i386
22
USES=			zip
23
USE_LDCONFIG=		yes
24
NO_WRKSUBDIR=		yes
25
WRKSRC=			${WRKDIR}/${PORTNAME}-${PORTVERSION}
26
ALL_TARGET=		mprime
20
27
21
OPTIONS_DEFINE=	DOCS
28
SUB_FILES=		wrapper.sh
22
29
30
PLIST_FILES+=\
31
			bin/mprime \
32
			bin/mprime-real
33
34
post-patch:
35
	@${REINPLACE_CMD} -e 's| abs (| labs (|g ; \
36
			s|(abs (|(labs (|g ; \
37
			s| abs(| labs(|g ; \
38
			s|(abs(|(labs(|g' \
39
				${WRKSRC}/../gwnum/gwnum.c \
40
				${WRKSRC}/../commonc.c \
41
				${WRKSRC}/../ecm.c \
42
				${WRKSRC}/../gwtest.c
43
	@${REINPLACE_CMD} -e 's|__APPLE__|__FreeBSD__|g' \
44
				${WRKSRC}/../gwnum/gwutil.c
45
23
do-install:
46
do-install:
24
	${INSTALL_PROGRAM} ${WRKSRC}/mprime ${STAGEDIR}${PREFIX}/bin/mprime-real
47
	${INSTALL_PROGRAM} ${WRKSRC}/mprime ${STAGEDIR}${PREFIX}/bin/mprime-real
25
	${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/mprime
48
	${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/mprime
26
49
27
do-install-DOCS-on:
28
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
29
	${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}
30
31
.include <bsd.port.mk>
50
.include <bsd.port.mk>
(-)math/mprime/Makefile.amd64 (+17 lines)
Line 0 Link Here
1
# Created by: Rozhuk Ivan <rozhuk.im@gmail.com>
2
# $FreeBSD$
3
4
WRKSRC_SUBDIR=		linux64
5
6
post-extract:
7
	@${RM} ${WRKSRC}/makefile
8
	@${MV} ${WRKSRC}/makebsd ${WRKSRC}/Makefile
9
10
pre-build:
11
	@${REINPLACE_CMD} -e 's|-ldl||g ; \
12
			s|-lstdc++||g ; \
13
			s|gcc|${CC}|g ; \
14
			s|cc|${CC}| ; \
15
			s|-malign-double||' \
16
				${WRKSRC}/Makefile
17
	@(cd ${WRKSRC}/../gwnum/ && ${MAKE} -f makebsd64)
(-)math/mprime/Makefile.i386 (+26 lines)
Line 0 Link Here
1
# Created by: Rozhuk Ivan <rozhuk.im@gmail.com>
2
# $FreeBSD$
3
4
WRKSRC_SUBDIR=		linux
5
6
post-extract:
7
	@${RM} ${WRKSRC}/makefile
8
	@${MV} ${WRKSRC}/makebsd ${WRKSRC}/Makefile
9
10
pre-build:
11
	@${REINPLACE_CMD} -e 's|-ldl||g ; \
12
			s|-lstdc++||g ; \
13
			s|gcc|${CC}|g ; \
14
			s|cc|${CC}| ; \
15
			s|-lz|| ; \
16
			s|LFLAGS = -Wl,-M|LFLAGS = -L/usr/local/lib -Wl,-M| ; \
17
			s|-Bstatic /usr/local/lib/libcurl.a|-lcurl| ; \
18
			s|-Bdynamic -lssl|| ; \
19
			s|-malign-double||' \
20
				${WRKSRC}/Makefile
21
	@${REINPLACE_CMD} -e 's|gcc|${CC}|g ; \
22
			s|g++|${CC}| ; \
23
			s|cc|${CC}| ; \
24
			s|-malign-double||' \
25
				${WRKSRC}/../gwnum/makemsys
26
	@(cd ${WRKSRC}/../gwnum/ && ${MAKE} -f makemsys)
(-)math/mprime/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1302303090
1
TIMESTAMP = 1495315765
2
SHA256 (mprime266-FreeBSD.tar.gz) = d4c2c044cfa45311dd7f2c41574f59a0519c989fd6e0ca723505dea12b2ff1fd
2
SHA256 (p95v2810.source.zip) = fdde4652ea12a66487245fbef7980237b2707c595f613cac013e97a489301060
3
SIZE (mprime266-FreeBSD.tar.gz) = 4233056
3
SIZE (p95v2810.source.zip) = 44979437
(-)math/mprime/files/LICENSE (+202 lines)
Line 0 Link Here
1
2
Terms and Conditions of Use ("TCU")
3
4
 - GIMPS participation is free of charge and open to the public
5
   internationally.
6
 - Web Site. The GIMPS "Web Site" is understood to include all
7
   Mersenne.org Internet web site domains, web content and services,
8
   PrimeNet APIs, data, downloads, etc., regardless of means of access.
9
 - Non-Participants. Viewing the Web Site does not necessarily make you
10
   a Participant; non-Participants are not bound by this TCU.
11
 - Participation Constitutes Agreement. "Participant" is understood to
12
   be an individual person, or a single individual person designated as
13
   the authorized representative of any group, team, organization or
14
   legal entity, who personally, or whose computer(s), accesses and/or
15
   communicates with the Web Site to perform, or cause to perform,
16
   mathematical calculations that are, or typically, systematically
17
   organized by GIMPS. This includes, but is not restricted to, use of
18
   Prime95, MPrime, GLucas, or similar software, automatically over the
19
   Internet or using the Web Site (manual testing forms, reports, APIs,
20
   etc.), to get data or work assignments or to upload results or other
21
   data. Participation constitutes agreement with the TCU by that
22
   individual and any group, team, organization or legal entity the
23
   Participant represents.
24
 - Participant Identifiers. Participant's user ID, password and email
25
   address are the primary unique identifiers used by GIMPS to
26
   communicate and confirm Participant's identity. Secondary
27
   identifiers may include unique computer identifiers known as a
28
   "GUID". The "Anonymous" or "ANONYMOUS" user ID is owned by GIMPS,
29
   but may be used by Participants who do not wish to be publically
30
   identified.
31
 - Award Rules. Participant agrees to the Research Discovery Award Rules.
32
 - Award Refusal. Participant may at their option decline any award.
33
   Research Discovery Award Rules apply even if an award is unclaimed
34
   or optionally declined by the Participant.
35
 - Data Ownership and Privacy. GIMPS owns all collected data, and may
36
   publish or make available certain limited subset(s) of that data for
37
   public reference, excluding personally identifiable data according
38
   to the Privacy Policy. Examples of published data are stats,
39
   standings, charts and other derived charts or tables.
40
 - Disclaimer. GIMPS is not responsible for any losses due to Web Site
41
   errors, electronic transmission errors, omissions or unauthorized
42
   disclosures, failure of any software to correctly find and timely
43
   report a new prime number, or any other research discovery, or for
44
   someone "poaching" or "stealing" your assignment (performing work on
45
   it without it being assigned to them by GIMPS) and subsequently
46
   making a discovery.
47
 - Terms and Conditions of Use Changes. GIMPS reserves the right to
48
   change this TCU without notice. Last updated 15 October 2008.
49
 - Jurisdiction. Jurisdiction of law shall be the State of California
50
   and the United States of America. Participant agrees to settle all
51
   disputes through a good faith effort directly with GIMPS officers
52
   and directors, or as a last resort, by third-party binding
53
   arbitration through a certified arbitrator of GIMPS' choosing.
54
55
56
Research Discovery Award Rules ("Rules")
57
1) General Award Rules
58
59
 - Participants. "Participant" is understood as defined in the Terms
60
   and Conditions of Use ("TCU").
61
 - Award Eligibility. All GIMPS Participants are automatically eligible
62
   for Research Discovery Awards. GIMPS-interested parties, including
63
   its officers, directors, their immediate family members or
64
   directly-contracted agents, are ineligible for any award.
65
 - Awardees. "Awardee" is understood to be the Participant, or the
66
   group, team, organization or legal entity the Participant represents,
67
   and whose computer achieves a research discovery for which an award
68
   exists and all Rules in effect at the time of the discovery comply.
69
 - Award Payee. Awards are payable to a single Awardee, except if the
70
   Awardee designates a single charity to receive all or part of the
71
   award, for which GIMPS will make reasonable effort but does not
72
   guarantee to accommodate. Awardee is responsible for all applicable
73
   taxes and fees.
74
 - Awardee Information. Certain information about the Awardee, and where
75
   designated information about a selected charity, may be collected by
76
   GIMPS where lawfully required.
77
 - Discovery Evidence. As proof of discovery, Participant agrees to
78
   email to GIMPS at woltman@alum.mit.edu and/or primenet@mersenne.org
79
   certain data files generated by any software program used to make the
80
   discovery, along with their name, post mailing address, phone number,
81
   and GIMPS user ID if not anonymous. If proof is not satisfactory, it
82
   will be treated as an unclaimed award.
83
 - Discovery Non-Disclosure Period. Participants and Awardees agree to a
84
   reasonable immediate period of non-disclosure communications silence,
85
   not to exceed 90 days, about any discovery, alleged or verified,
86
   until GIMPS announces the discovery to the academia and press.
87
   Non-compliance may result in award disqualification.
88
 - Evidence of Authority. A Participant who does not own a computer on
89
   which a research discovery is found must produce written evidence
90
   satisfactory to the GIMPS board of directors of their status as a
91
   designated authorized representative with authority over that
92
   computer and to bind the TCU, before they, or whom they represent,
93
   can be considered an Awardee. If proof is not satisfactory, it will
94
   be treated as an unclaimed prize.
95
 - Award Notification. Participant is responsible for maintaining and
96
   monitoring the email address registered in their GIMPS user ID
97
   account. GIMPS is not responsible for ensuring email notification
98
   delivery or receipt by Participants. Anonymous Participants will not
99
   be notified. It is not necessary to receive an email notification
100
   from GIMPS to qualify for a Research Discovery Award.
101
 - Award Claims and Release Waivers. Participant and Awardee is/are
102
   responsible for claiming any applicable Research Discovery Award, and
103
   agree to execute a GIMPS award claim and release waiver and/or
104
   release waiver, as appropriate, satisfactory to the GIMPS board of
105
   directors.
106
 - Unclaimed, Expired, Disqualified and Refused Awards. Unclaimed awards
107
   expire one year from the date of the qualifying discovery. Expired,
108
   refused or disqualified awards will be donated by GIMPS to a
109
   501(c)(3) charity or retained by GIMPS to fund awards or cover its
110
   expenses.
111
 - Other Disqualifications. GIMPS reserves the right to deny award
112
   payment if the Awardee is determined by the GIMPS board of directors
113
   to be personally, or affiliated with, or organized under, a charter
114
   or entity, practicing or promoting interests counter to humanitarian
115
   good or public benefit. GIMPS may require Awardee to execute an
116
   affidavit of eligibility according to these Rules.
117
 - Assignment of Specific Interest. Whereas GIMPS has undertaken an
118
   organized and systematic attempt to earn the $150,000 (USD)
119
   Electronic Frontier Foundation ("EFF") Cooperative Computing Award,
120
   all Participants and Awardees agree to the Rules and release their
121
   entire interest in the EFF award to GIMPS (see Research Discovery
122
   Awards).
123
 - Final Authority. Decisions of the GIMPS board of directors in
124
   applying the TCU and Rules, and in granting awards, are final.
125
 - Rule Changes. These Rules, as in effect at the date and time of a
126
   discovery, shall apply. GIMPS reserves the right to change these
127
   Rules without notice. Last updated 06 January 2010.
128
129
2) Research Discovery Awards
130
131
Mersenne Prime Award of USD $3,000.00
132
Awarded to a GIMPS Participant for each new Mersenne prime discovered
133
after August 23, 2008 and having fewer than 100,000,000 (decimal) digits.
134
Rules in addition to the General Award Rules:
135
136
 - The award is presently $3,000. A maximum of $5,000 USD and minimum
137
   of $1,000 will be awarded, as determined by the GIMPS board of
138
   directors from actual and forecast award funds availability.
139
   GIMPS may, at its sole discretion and without notice, change the
140
   award amount or retroactively increase certain previously-awarded
141
   Research Discovery Awards up to the maximum amount.
142
 - Verification may take several weeks. No money will be awarded until
143
   the discovery is independently verified, and the award money is
144
   available after GIMPS annual operating expenses.
145
 - In the unlikely event that an identical qualifying prime is
146
   discovered at about the same time by two or more Participants, then
147
   the winner will be the first to either send their result to the
148
   GIMPS PrimeNet server or to email their results to GIMPS.
149
150
100 Million Digit Prime Award of USD $50,000.00
151
Awarded to a GIMPS Participant for the first prime discovered having at
152
least 100,000,000 (decimal) digits. Rules in addition to the General
153
Award Rules:
154
155
 - GIMPS has undertaken an organized and systematic attempt to earn the
156
   $150,000 (USD) Electronic Frontier Foundation ("EFF") Cooperative
157
   Computing Award such that each Participant assigns all interest in
158
   this award entirely to GIMPS. Note that this Award may at current
159
   participation rates require an estimated 12-15 years of calculations
160
   before a qualifying discovery is made.
161
 - No money will be awarded unless and until a GIMPS Participant's
162
   computer discovers a 100,000,000 digit prime, it is independently
163
   verified, EFF validates GIMPS' claim according to their rules, and
164
   pays GIMPS the award.
165
 - Verification may take several weeks and publication in a suitable
166
   academic refereed journal as required by EFF rules will likely take
167
   several more months.
168
 - GIMPS will redistribute the EFF award money into thirds as follows:
169
 -- $50,000 will be awarded to the discoverer Awardee of the
170
    100,000,000 digit prime.
171
 -- $50,000 will be awarded to a 501(c)(3) mathematics-related charity
172
    selected by GIMPS.
173
 -- $50,000 will be retained by GIMPS to cover expenses and/or fund
174
    future or past awards.
175
 - In the unlikely event that more than one qualifying prime is
176
   discovered at about the same time, then the winner will be the first
177
   to either send their result to the GIMPS PrimeNet server or to email
178
   their results to GIMPS.
179
180
Privacy Policy
181
182
Thank you for investing your trust. Since 1996, we never have and never
183
will sell, distribute or release your email address or any other
184
information you provide us for the administration and operation of this
185
amazing public participation research project, except in the unlikely
186
requirement to comply with law. Last updated 15 October 2008.
187
Software End User License Agreement ("EULA")
188
189
 - This EULA applies to all versions of GIMPS Prime95 and MPrime
190
   software and source code ("Software").
191
 - Software is free to download and use indefinitely on any computer(s)
192
   you own or for which you have permission and authority to install and
193
   run Software. Software is not export-restricted.
194
 - To use the Software you agree to be bound by this EULA and the Terms
195
   and Conditions of Use.
196
 - GIMPS reserves the right to change this EULA without notice and with
197
   reasonable retroactive effect. Last updated 15 October 2008.
198
 - GIMPS not responsible for any damages or losses arising from use of
199
   Software. SOFTWARE AND INFORMATION IS PROVIDED "AS IS" WITHOUT
200
   WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
201
   LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
202
   FOR A PARTICULAR PURPOSE.
(-)math/mprime/files/pkg-message.in (-10 lines)
Lines 1-10 Link Here
1
	ATTENTIONATTENTION:
2
3
Please, make sure that you read
4
%%DOCSDIR%%/license.txt
5
and agree to the licensing terms before running this application.
6
7
Furthermore, read
8
%%DOCSDIR%%/readme.txt
9
It contains important information about both configuring and running
10
mprime.  You will have problems running it if you do not read it.
(-)math/mprime/pkg-plist (-7 lines)
Lines 1-7 Link Here
1
bin/mprime
2
bin/mprime-real
3
%%PORTDOCS%%%%DOCSDIR%%/license.txt
4
%%PORTDOCS%%%%DOCSDIR%%/readme.txt
5
%%PORTDOCS%%%%DOCSDIR%%/stress.txt
6
%%PORTDOCS%%%%DOCSDIR%%/undoc.txt
7
%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt

Return to bug 219432