Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2914 commits
Select commit Hold shift + click to select a range
e47704f
productUser in cron lanesync
flathat May 17, 2013
0bf5a7f
Create custReceiptMessage table on lane. "cust" here is short for
gohanman May 17, 2013
acda883
Create custReceiptMessage table on lane. "cust" here is short for
gohanman May 17, 2013
523df21
cron member-civicrm
flathat May 17, 2013
5329a38
cron member-civicrm
flathat May 17, 2013
02aef64
userSessions management
flathat May 17, 2013
41a89e2
userSessions management
flathat May 17, 2013
7c535bf
report with authentication
flathat May 17, 2013
067ebcb
report with authentication
flathat May 17, 2013
f0332e8
member edit auth_class and mod fixes
flathat May 17, 2013
7701b76
member edit auth_class and mod fixes
flathat May 17, 2013
b89310f
productUser in cron lanesync
flathat May 17, 2013
c55b16c
productUser in cron lanesync
flathat May 17, 2013
0078053
Class for generating transaction records
gohanman May 17, 2013
0ac718a
Class for generating transaction records
gohanman May 17, 2013
e2828c6
Auto-assign charge limit to paid-in-full members
gohanman May 17, 2013
e64c07d
Auto-assign charge limit to paid-in-full members
gohanman May 17, 2013
ab5c3e3
Logging fix for PDO prepared statements
gohanman May 17, 2013
1db8b3d
Logging fix for PDO prepared statements
gohanman May 17, 2013
f4c3918
Re-fetch contact info when member number changes
gohanman May 17, 2013
9f03251
Re-fetch contact info when member number changes
gohanman May 17, 2013
afc450e
Co-op Deals batch import fixes
gohanman May 17, 2013
8692b55
Co-op Deals batch import fixes
gohanman May 17, 2013
ca627e4
API bugfixes:
gohanman May 17, 2013
d0b3529
API bugfixes:
gohanman May 17, 2013
60ab0f9
BUG: unnecessary backslashes
gohanman May 17, 2013
84d6885
BUG: unnecessary backslashes
gohanman May 17, 2013
e49ad85
BUG: improper close-table tag
gohanman May 17, 2013
197f90f
BUG: improper close-table tag
gohanman May 17, 2013
8542d3c
FIX: proper prepared statement query syntax
gohanman May 17, 2013
a865cfc
FIX: proper prepared statement query syntax
gohanman May 17, 2013
e7dd419
FIX: map ISO week number to SPINS calendar
gohanman May 17, 2013
57d9f27
FIX: map ISO week number to SPINS calendar
gohanman May 17, 2013
ec0eee3
Set date_id value before rotating data (only if column exists)
gohanman May 17, 2013
9bf7f8f
Set date_id value before rotating data (only if column exists)
gohanman May 17, 2013
61ee958
Legacy changes:
gohanman May 17, 2013
5e7420f
Legacy changes:
gohanman May 17, 2013
ddd828d
Stand-in module to eliminate PHP session usage during unit tests
gohanman May 17, 2013
18e44a0
Stand-in module to eliminate PHP session usage during unit tests
gohanman May 17, 2013
735e438
Merge remote-tracking branch 'flathat/master'
gohanman May 17, 2013
2aa354a
Merge remote-tracking branch 'flathat/master'
gohanman May 17, 2013
c696c71
member editor 19May13
flathat May 20, 2013
aa9ba8b
auth tweak and fix 19May13
flathat May 20, 2013
ed8e08b
FIX: define FANNIE_URL for auth management pages
gohanman May 20, 2013
6cfd41e
Error message on integrated card over-tender
gohanman May 21, 2013
bffd3da
FIX: reset terminal state when transaction changes
gohanman May 21, 2013
2a3351a
Bugs in Notes.php
flathat May 23, 2013
57c5fdc
Alternate scanning interface for inventory counting tool. Has javascript
gohanman May 24, 2013
b98ecbb
Merge remote-tracking branch 'origin/master'
gohanman May 24, 2013
49ff327
No "void" option on non-credit transactions
gohanman May 24, 2013
510c3d1
Web updates
gohanman May 28, 2013
0033d4b
Merge remote-tracking branch 'origin/master'
gohanman May 28, 2013
e8af770
Catchup so I can cleanup
gohanman May 28, 2013
52e76a7
Merging my live lanes with upstream version.
gohanman May 29, 2013
34b18f6
Merge pull request #191 from CORE-POS/upstream-merge-2013-05-29
gohanman May 29, 2013
25282bd
A bunch of lane-side unit tests
gohanman May 30, 2013
9c89c06
Expanded tests to include TransRecord
gohanman May 31, 2013
356ed8c
I started revising the lane install to be more like Fannie with
gohanman Jun 5, 2013
e910e9a
Forgot a file in unit testing commits
gohanman Jun 5, 2013
eaf7462
Merge remote-tracking branch 'origin/akt-master' into akt-master
gohanman Jun 5, 2013
723071c
Revised translog table/view creation to match opdata & fannie
gohanman Jun 11, 2013
73dc50d
Ideas for eliminiating subtotals view from tax calculations
gohanman Jun 11, 2013
5e0bf0a
Move WFC's "MAD Coupon" into a dedicated plugin. It was one of three
gohanman Jun 12, 2013
1ec10e4
Validate cashback selections
gohanman Jun 17, 2013
5c6fac8
Proper primary key on efsnetTokens
gohanman Jun 17, 2013
76382f6
sync CiviCRM1
flathat Jun 19, 2013
7d7f7d6
fix TransferMemberEquity header
flathat Jun 19, 2013
a0d17d2
Fannie Install with Authentication
flathat Jun 19, 2013
9270254
WEFC product load 20Jun13
flathat Jun 20, 2013
10657e6
WEFC product load 20Jun13b
flathat Jun 20, 2013
490f771
Alternate handheld invetory-counting interface. Touch-oriented.
gohanman Jun 20, 2013
e1432b7
WEFC product load 20Jun13c
flathat Jun 21, 2013
9f1e6bd
Legacy: billing changes to support dtrans date_id & store_id columns
gohanman Jun 21, 2013
fda2534
Merge remote-tracking branch 'flathat/master'
gohanman Jun 21, 2013
3f6ec2a
Restore css_files loop
flathat Jun 24, 2013
1deddeb
FannieAPI is similar to AutoLoader on the lane. It exposes everyting
gohanman Jun 24, 2013
49a47bb
Refactor to including FannieAPI. Solves some double-includes and
gohanman Jun 24, 2013
6504272
Remove +/-0 buttons when case qty is unknown
gohanman Jun 25, 2013
4ee6425
Field type changes so iOS keyboard defaults to numbers
gohanman Jun 25, 2013
cad6144
FIX: 0xFF cashback bug
gohanman Jun 26, 2013
49256eb
Unit testing lane w/ PDO
gohanman Jun 26, 2013
f911938
Forgot table definition file
gohanman Jun 27, 2013
a01c9b5
TR testing rig
gohanman Jun 27, 2013
e5d8e8d
Receipt snippet on integrated debit
gohanman Jun 28, 2013
8901d95
ORM experiments
gohanman Jul 1, 2013
3c7038b
BUGFIX: record memType and staff correctly when adding/removing
gohanman Jul 2, 2013
cde315d
BUGFIX: repeated calls should switch default/selected database
gohanman Jul 3, 2013
f8cdd4f
Don't use sessions if loaded via CLI
gohanman Jul 3, 2013
fd7a15b
New "normalize" function in BasicController that compares
gohanman Jul 3, 2013
247cb0d
More ORM experimentation
gohanman Jul 3, 2013
aae21e4
Working CLI table normalization. Still safe to run. Lists proposed
gohanman Jul 5, 2013
9d37eef
BUGFIX: missing global keyword
gohanman Jul 5, 2013
4278b63
I added the new BasicController functionality to some pre-existing
gohanman Jul 5, 2013
d7ce28b
Data warehouse plugin
gohanman Jul 5, 2013
ab652ca
BUGFIX: return False on bad row request
gohanman Jul 5, 2013
261a7fc
BUGFIX: bad query on memberCardsView
gohanman Jul 5, 2013
1305949
Better handling when ini.php missing on lane install page
gohanman Jul 5, 2013
6fd5c52
Legacy bugfix. Variable no longer exists.
gohanman Jul 8, 2013
55bcdd6
BUGFIX: tender refund to gift card correctly
gohanman Jul 8, 2013
e258f05
Better error detection on missing or unwritable files
gohanman Jul 8, 2013
ed84b4c
Better status checking for Fannie's log files.
gohanman Jul 8, 2013
bdebe5d
Refactor to let FannieAPI search plugins for class definitions
gohanman Jul 8, 2013
e553426
Re-working legacy WFC tools as plugins
gohanman Jul 9, 2013
fb9a414
BUGFIX: path detection issue
gohanman Jul 9, 2013
149bab4
Most cashier overshort tools done. More testing needed.
gohanman Jul 9, 2013
bfb7cdc
FIX: $6 cashback
gohanman Jul 10, 2013
467d7ba
Refactoring "Controller" to "Model". Even if Fannie isn't MVC
gohanman Jul 10, 2013
319ed53
More model classes
gohanman Jul 10, 2013
ff7b225
Detect more upload errors
gohanman Jul 11, 2013
fa4f21a
Log admin logins/attempts
gohanman Jul 12, 2013
518248f
Store Xfer requires custdata.chargeOk
gohanman Jul 12, 2013
e83a53e
Use SpecialDept modules on regular items as well as open rings
gohanman Jul 12, 2013
e35a039
Re-written versions of select_dlog() and selec_dtrans(). Besides being
gohanman Jul 12, 2013
0396056
Subclass function signature didn't match
gohanman Jul 12, 2013
11c0bd5
Legacy WFC member management rewrite as plugin
gohanman Jul 12, 2013
a745007
Preserve localtemptrans.percentDiscount for consistency
gohanman Jul 15, 2013
8c61770
Remove tax entry ambiguity
gohanman Jul 15, 2013
ef10da4
Overlapping error messages on lane install
gohanman Jul 15, 2013
8db5df4
Auto-add opening PHP tags
gohanman Jul 15, 2013
d9be755
PI plugin revised with controller and view methods
gohanman Jul 19, 2013
99377ea
Fixed column count in sample data for products and custdata
gohanman Jul 19, 2013
75cf2f8
BUGFIX: Bad AJAX url on super department editor
gohanman Jul 19, 2013
d949812
API Addition: POS module for calculating transaction discount
gohanman Jul 19, 2013
b2f8e1c
Hide tenders where MaxAmount=0
gohanman Jul 19, 2013
04afccd
New handheld tool for applying pending price changes
gohanman Jul 23, 2013
03f2dd5
Constructor should only *increase* the security. If the page itself
gohanman Jul 23, 2013
020675f
Bugfixes for AB Group pricing
gohanman Jul 23, 2013
a132602
BUGFIX: Always insert into tables with no unique row constraint
gohanman Jul 24, 2013
edff331
Link Suspenions management page into new PI. Add option for
gohanman Jul 24, 2013
7edc141
Local purchase w/ bar graph. Maybe. Printout needs testing.
gohanman Jul 25, 2013
3df870f
Receipt bar graph, tested & functional
gohanman Jul 26, 2013
f2929a6
API module for searching memberships at POS
gohanman Jul 30, 2013
163d7f3
Scanning fix
gohanman Jul 30, 2013
b8b566d
member lookup by phone number plugin
joelbrock Jul 30, 2013
81b69ef
bugfix: added dbl-quotes to lookup_by_text
joelbrock Jul 30, 2013
85eb561
bugfix: added dbl-quotes to lookup_by_text
joelbrock Jul 30, 2013
036fc11
Bugfix: simulated prepared statements for mysql needs
gohanman Jul 30, 2013
bd0c4d0
Merge remote-tracking branch 'origin/master'
gohanman Jul 30, 2013
8e60688
Fannie API functions for moving data to & from lanes
gohanman Jul 31, 2013
76c707b
Set age on login
gohanman Aug 1, 2013
dd6c20c
Revised & Simplified configuration management via lane_config
gohanman Aug 2, 2013
8a49119
Show both older-style updates and new, model-based updates
gohanman Aug 2, 2013
ce76069
Pass CC-terminal input directly
gohanman Aug 5, 2013
b14221c
WEFC_Toronto lanesync tweaks
flathat Aug 6, 2013
827be03
BUGFIX: Extraneous old authentication call
gohanman Aug 6, 2013
1d0637e
GeneralDayReport: tax output formatted to 2 decimal places
gohanman Aug 6, 2013
fd331d6
Internal WFC stuff
gohanman Aug 6, 2013
c0c7c4c
WFC CC tender drawer behavior. If the CC tender module is called,
gohanman Aug 6, 2013
1654033
SEMIBUG: Removed unnecessary database connect function
gohanman Aug 6, 2013
b38eea1
Regenerate image if cache version exists but is empty. Can occur
gohanman Aug 6, 2013
f2a5006
BUGFIX: Ensure member discount is rounded. Edge case occurs with
gohanman Aug 6, 2013
e13615f
Removed old comment
gohanman Aug 6, 2013
820b424
Use jQuery for keypress events in QuickMenus plugin. Attempts to
gohanman Aug 6, 2013
4cf21ed
PrehLib::classic_tender really isn't supported. This just relates
gohanman Aug 6, 2013
4a2054c
Store-specific ini File shouldn't be here
gohanman Aug 6, 2013
2c1145a
Check over purchase amount limited to once per day (WFC-only)
gohanman Aug 6, 2013
4a84dbe
Ignore non-open-source files for Linea iPhone attachment
gohanman Aug 6, 2013
732459a
BUGFIX: need to calculate trans_no earlier
gohanman Aug 6, 2013
1bf7d4d
Don't say owner & member on newer style receipts
gohanman Aug 6, 2013
a538d86
Simplify code paths on receipt header
gohanman Aug 6, 2013
5307939
Removed WFC-specific receiptHeader code
gohanman Aug 7, 2013
d9865ad
Reload the POS session on each signout.
gohanman Aug 7, 2013
106a616
New testing interface for receipt output
gohanman Aug 8, 2013
c2b0122
Receipt changes: reprints, refactor, maybe a bugfix
gohanman Aug 8, 2013
caa4396
WEFC_Toronto DataModelling bits 1
flathat Aug 8, 2013
b5df03e
Normalization bugfixes for DTransactionsModel
gohanman Aug 8, 2013
f5e2256
Missing semicolon on endline
gohanman Aug 8, 2013
2f13409
Plugin for WFC annual meeting registration
gohanman Aug 8, 2013
580b15e
Different method of calculating bitmap padding
gohanman Aug 9, 2013
af455eb
Typo LastName, -> LastName(),
flathat Aug 10, 2013
6c48ab7
Typo LastName, -> LastName(),
flathat Aug 10, 2013
d800733
Merge remote-tracking branch 'origin/master'
gohanman Aug 12, 2013
db1abd2
Merge remote-tracking branch 'origin/member-lookup-api-change'
gohanman Aug 12, 2013
248506f
Cleanup old session variables
gohanman Aug 12, 2013
76138c7
Move some authentication logic out of lib/Authenticate.php and
gohanman Aug 13, 2013
955c873
Cleanup old session variables
gohanman Aug 12, 2013
1cec0bb
Merge remote-tracking branch 'origin/reduced-session-usage' into redu…
gohanman Aug 13, 2013
32fe266
Refactor of gui-modules requestInfo.php and adminlogin.php.
gohanman Aug 13, 2013
8dccf64
Separating scale input from CC terminal input, take 2
gohanman Aug 13, 2013
743d099
BUGFIX: Refund PreParser should not decide whether the rest of the
gohanman Aug 13, 2013
6a21ead
BUGFIX: parser output in all cases
gohanman Aug 13, 2013
4acc6fe
Refactor to get rid of endorse-related session variables.
gohanman Aug 13, 2013
188bdf8
Bugfix of initial startstamp assignment in select_struct()
flathat Aug 14, 2013
0c09895
BUGFIX: Driver checks for multiple modules attached to the same device
gohanman Aug 14, 2013
d86757d
Merge remote-tracking branch 'origin/master'
gohanman Aug 14, 2013
2eb5818
Session state cleanup & standardization
gohanman Aug 14, 2013
4c1dea9
BUGFIX: Patronage report refers to unknown table
gohanman Aug 14, 2013
6758d28
Cleanup old session variables
gohanman Aug 12, 2013
20663b4
Refactor of gui-modules requestInfo.php and adminlogin.php.
gohanman Aug 13, 2013
c1ffcb2
Refactor to get rid of endorse-related session variables.
gohanman Aug 13, 2013
edf9033
Session state cleanup & standardization
gohanman Aug 14, 2013
48e114a
Merge remote-tracking branch 'origin/reduced-session-usage' into redu…
gohanman Aug 14, 2013
55b82a1
BUGFIX: if PluginList is modifying while POS is running this check
gohanman Aug 15, 2013
a80314f
WFC Annual Meeting Plugin
gohanman Aug 15, 2013
13e3078
Merging from live testing. Two extraneous session variables.
gohanman Aug 15, 2013
54b2d44
Merge from live: WFC_Kicker condition
gohanman Aug 15, 2013
c09b044
Remove call to deprecated, WFC-specific function
gohanman Aug 15, 2013
a335954
Unlock session before writing to printer
gohanman Aug 15, 2013
9e07016
Merge live testing: more extraneous session variables
gohanman Aug 15, 2013
59ee70d
After ~2 months beta testing line-item taxes are live.
gohanman Aug 15, 2013
457b54e
Merge from live: deprecated variable "troutd"
gohanman Aug 15, 2013
714569b
Merge from live: removed deprecated ReceipLib::printCCFooter()
gohanman Aug 15, 2013
397f730
BUGFIX: session_id is a function
gohanman Aug 15, 2013
ddcb4ca
Receipt status flags should match on screen flags
gohanman Aug 16, 2013
b31610a
set ini flag for check franking
joelbrock Aug 16, 2013
7a13294
Merge remote-tracking branch 'origin/master'
gohanman Aug 16, 2013
57a7e0f
Draft data model for ordering from vendors
gohanman Aug 15, 2013
bfe17a8
BUGFIX: reload screen on NR so icon updates
gohanman Aug 17, 2013
db958bb
Need-based discount plugin
gohanman Aug 17, 2013
6b5c8a1
Footer box that's aware of need based discount
gohanman Aug 17, 2013
9d4329d
Update footer box correctly for need discount
gohanman Aug 19, 2013
32cc5d5
Tax & Coupon setting on lane's scanning tab
gohanman Aug 19, 2013
f8ddecb
Move background image from body's css to separate css class
gohanman Aug 19, 2013
2ef5e4f
CSS! I put most of the colors POS uses into one set of
gohanman Aug 19, 2013
6cd5c96
BUGFIX: syntax error in javascript
gohanman Aug 19, 2013
5d3790b
BUGFIX: missed one CSS class re-name
gohanman Aug 19, 2013
62a2d57
Minor CSS patch left out of yesterday's commit
gohanman Aug 20, 2013
1ecfdfc
BUGFIX: color code 408080 should be 004080
gohanman Aug 20, 2013
b022615
Use ReceiptLib:printReceipt() for regular receipts and reprints
gohanman Aug 20, 2013
0dd575d
BUGFIX: some idiot reversed the function args
gohanman Aug 20, 2013
a39e26c
No drawer kick on training mode
gohanman Aug 20, 2013
7d69904
Merge branch 'reduced-session-usage'
gohanman Aug 21, 2013
0b3edba
BUGFIX: wrong argument to functions during reprint
gohanman Aug 22, 2013
9f819f4
Default tender should include tax
gohanman Aug 22, 2013
4bb211e
Parser is disabled, but updated to work with new endorse url params
gohanman Aug 22, 2013
b3f0a4d
Reprints of current-day receipts via Fannie
gohanman Aug 22, 2013
21180a6
BUG(SEMI)FIX: bad variable reference removed
gohanman Aug 22, 2013
7887f9e
Multi-line comments at POS
gohanman Aug 22, 2013
4f1c4ef
BUGFIX: missing "quiet" URL param
gohanman Aug 22, 2013
efb5b7d
BUGFIX: check endorse prompt needs to append default amount to
gohanman Aug 23, 2013
2f79ebf
Merge remote-tracking branch 'origin/phonelookup-plugin'
gohanman Aug 23, 2013
e5b5305
Merge branch 'akt-master'
gohanman Aug 23, 2013
288f16d
Merge remote-tracking branch 'origin/WEFC_Toronto_reports'
gohanman Aug 23, 2013
1aa4b72
No drawer kick at all on training
gohanman Aug 23, 2013
38157c3
No drawer kick at all on training
gohanman Aug 23, 2013
7e1ff87
BUGFIX: clearing training at every login attempt is unnecessary.
gohanman Aug 23, 2013
3e8cc88
BUGFIX: clearing training at every login attempt is unnecessary.
gohanman Aug 23, 2013
a360b91
Check for new or relocated files when autoloading classes.
gohanman Aug 23, 2013
4a94ed3
Merge branch 'hotfix-training-kick'
gohanman Aug 23, 2013
1cd11c6
Merge branch 'better-autoloading'
gohanman Aug 23, 2013
0063cc7
BUGFIX: 'name' should be $name
gohanman Aug 23, 2013
5c9af70
Enable scanner-scale polling on login pages
gohanman Aug 23, 2013
98f1d31
Enable scanner-scale polling on login pages
gohanman Aug 23, 2013
3f3a552
BUGFIX: 'name' should be $name
gohanman Aug 23, 2013
8fcde54
Merge branch 'better-autoloading' into develop
gohanman Aug 23, 2013
c30d18f
Merge branch 'better-autoloading'
gohanman Aug 23, 2013
1bc5012
Price Check plugin: beep on read
gohanman Aug 23, 2013
6e84860
Price Check plugin: beep on read
gohanman Aug 23, 2013
1c53df7
Make key icon transparent
joelbrock Aug 24, 2013
ddd0c4f
Merge branch 'develop' of https://github.com/CORE-POS/IS4C into jb-tr…
joelbrock Aug 24, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
35 changes: 32 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
*.pyc
pos/is4c/ini/ini.php
*~
*.pyc
pos/is4c/ini/ini.php
*~
pos/is4c-nf/log/*.log
pos/is4c-nf/ini.php
pos/is4c-web/ini.php
pos/is4c-web/lib/pp-api-credentials.php
fannie/reports/cash_report/image_area/*
fannie/config.php
fannie/logs/*.log
fannie/logs/*.txt
pos/is4c-nf/scale-drivers/drivers/rs232/ssd
*/tmp/*
fannie/item/images/done/*
fannie/item/images/new/*
fannie/legacy/FE/overshort/acct
fannie/cache/cachefiles
fannie/inventory/archive/*
fannie/reports/Store-Specific/WFC/CCSettle/xmlcache/*.xml
fannie/auth/shadowread/shadowread
fannie/src/Credentials/*
dist/deb/DEBS/*.deb
dist/rpm/BUILD/*
dist/rpm/RPMS/*
dist/rpm/SOURCES/*
dist/rpm/SRPMS/*
fannie/pi_food_net
fannie/pi_food_net/scalesDistro
*.dll
*.exe
fannie/INSTALL
README
12 changes: 2 additions & 10 deletions INSTALL
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
Installing the software
----------------------------------------

TODO: Someone else should really write this section...
See documentation/IS4C & documentation/Fannie

Installing the database
----------------------------------------

(Note that the following instructions only work with MySQL.)

To install the server databases and account:

$ python pos/installation/install_server.py

To install the lane databases and account:

$ python pos/installation/install_lane.py
Same as above
2 changes: 1 addition & 1 deletion README
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IS4C - The POS, the backend, the movie, the book, reporting system

This is intended to act as the destination for the IS4C v2 project which is currently available at http://is4c.coop
This is development branch is based off WFC's release. Up to date code can be found on github.

Whereas the FLOSS-POS project is a fork of this project, the reposity here should aim to complete the currently available code. The feature set may be more limited, but hopefully robust enough to have a clear upgrade path to any future versions of IS4C/FLOSS-POS/???

Expand Down
File renamed without changes.
28 changes: 28 additions & 0 deletions dist/deb/README.CentOS
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Deb packages are generated using alien. To get alien set up
on CentOS:

1. Install some pre-requisites from official repos
$ yum install fakeroot dpkg-devel

2. Install Getopt from rpmforge. If done via yum, this conflicts
(just on a manpage; can be safely ignored).
$ yum install perl-Getopt-Long
$ rpm -Uvh --force /var/cache/yum/rpmforge/packages/perl-Getopt-Long*

3. Get debhelper (source version) from debian. It's just a bunch of perl
scripts.
$ tar xzf debhelper*
$ cd debhelper*
$ make install

4. Get alien (source version and .deb version) from debian. Use alien to
convert itself.
$ tar xzf alien*.tar.gz
$ cd alien
$ mv ../alien*.deb .
$ ./alien.pl -r alien*.deb
$ rpm -Uvh alien*.rpm

Everything's now installed. Alien installs to an odd path though, so
you have to correct for it in the shell before using the alien command.
$ export PERL5LIB="/usr/share/perl5"
100 changes: 100 additions & 0 deletions dist/deb/make-debs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
#!/bin/sh

if [ $# -ne 2 ]; then
echo "Usage: $0 <version> <build>"
exit 1
fi

# Base package:
# Add dependencies
# Adjust /etc path to apache2
if [ -f ../rpm/RPMS/noarch/it-core-$1-$2.noarch.rpm ]; then
echo "Building it-core base package"
alien --keep-version --generate --scripts ../rpm/RPMS/noarch/it-core-$1-$2.noarch.rpm
cd it-core-$1/
sed -e "s/Depends:.*/Depends: php5, php5-mysql, libapache2-mod-php5, mysql-server (>=5.0)/g" --in-place="" debian/control
mv etc/httpd etc/apache2
dpkg-buildpackage -d -b
cd ..
rm -rf it-core-$1/
rm -rf it-core-$1.orig/
else
echo "File not found: it-core-$1-$2.noarch.rpm"
fi

if [ -f ../rpm/RPMS/noarch/it-core-doc-$1-$2.noarch.rpm ]; then
echo "Building it-core doc package"
alien --keep-version --generate --scripts ../rpm/RPMS/noarch/it-core-doc-$1-$2.noarch.rpm
cd it-core-doc-$1/
sed -e "s/Depends:.*/Depends: it-core (=$1-$2)/g" --in-place="" debian/control
dpkg-buildpackage -d -b
cd ..
rm -rf it-core-doc-$1/
rm -rf it-core-doc-$1.orig/
else
echo "File not found: it-core-doc-$1-$2.noarch.rpm"
fi

# Fannie package:
# Change apache user to www-data
if [ -f ../rpm/RPMS/noarch/it-core-fannie-$1-$2.noarch.rpm ]; then
echo "Building it-core fannie package"
alien --keep-version --generate --scripts ../rpm/RPMS/noarch/it-core-fannie-$1-$2.noarch.rpm
cd it-core-fannie-$1/
sed -e "s/Depends:.*/Depends: it-core (=$1-$2)/g" --in-place="" debian/control
sed -e "s/apache/www-data/g" --in-place="" debian/postinst
sed -e "s/apache/www-data/g" --in-place="" debian/preinst
dpkg-buildpackage -d -b
cd ..
rm -rf it-core-fannie-$1/
rm -rf it-core-fannie-$1.orig/
else
echo "File not found: it-core-fannie-$1-$2.noarch.rpm"
fi

# IS4C-nf package:
# Change apache user to www-data
if [ -f ../rpm/RPMS/noarch/it-core-is4c-nf-$1-$2.noarch.rpm ]; then
echo "Building it-core is4c-nf package"
alien --keep-version --generate --scripts ../rpm/RPMS/noarch/it-core-is4c-nf-$1-$2.noarch.rpm
cd it-core-is4c-nf-$1/
sed -e "s/Depends:.*/Depends: it-core (=$1-$2)/g" --in-place="" debian/control
sed -e "s/apache/www-data/g" --in-place="" debian/postinst
dpkg-buildpackage -d -b
cd ..
rm -rf it-core-is4c-nf-$1/
rm -rf it-core-is4c-nf-$1.orig/
else
echo "File not found: it-core-is4c-nf-$1-$2.noarch.rpm"
fi

# mono scale driver
# Change apache user to www-data
if [ -f ../rpm/RPMS/noarch/it-core-posdriver-sph-$1-$2.noarch.rpm ]; then
echo "Building it-core posdriver-sph package"
alien --keep-version --generate --scripts ../rpm/RPMS/noarch/it-core-posdriver-sph-$1-$2.noarch.rpm
cd it-core-posdriver-sph-$1/
sed -e "s/apache/www-data/g" --in-place="" debian/postinst
dpkg-buildpackage -d -b
cd ..
rm -rf it-core-posdriver-sph-$1/
rm -rf it-core-posdriver-sph-$1.orig/
else
echo "File not found: it-core-posdriver-sph-$1-$2.noarch.rpm"
fi

# ssd scale driver
if [ -f ../rpm/RPMS/noarch/it-core-posdriver-ssd-$1-$2.noarch.rpm ]; then
echo "Building it-core posdriver-ssd package"
alien --keep-version --generate --scripts ../rpm/RPMS/noarch/it-core-posdriver-ssd-$1-$2.noarch.rpm
cd it-core-posdriver-ssd-$1/
dpkg-buildpackage -d -b
cd ..
rm -rf it-core-posdriver-ssd-$1/
rm -rf it-core-posdriver-ssd-$1.orig/
else
echo "File not found: it-core-posdriver-sph-$1-$2.noarch.rpm"
fi

rm *.changes
mv *.deb DEBS/
24 changes: 24 additions & 0 deletions dist/nightlies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

VERSION=1.0.0
RELEASE=`date +%Y.%m.%d`

git pull

# build RPMs
cd rpm
./setup-here.sh $VERSION
cd SPECS
sed -e "s/Release:.*/Release: $RELEASE/g" --in-place="" it-core.spec
cd ..
rpmbuild -ba SPECS/it-core.spec

# build DEBs
cd ../deb
export PERL5LIB="/usr/share/perl5/"
./make-debs.sh $VERSION $RELEASE

# remove old binaries
cd ..
find . -name '*.rpm' -mtime +7 | xargs rm
find . -name '*.deb' -mtime +7 | xargs rm
File renamed without changes.
File renamed without changes.
Empty file added dist/rpm/SOURCES/.dummyfile
Empty file.
Loading