Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 61247 Details for
Bug 83679
New ebuild for quasar - an accounting package
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
quasar-1.4.6.ebuild
quasar-1.4.6.ebuild (text/plain), 6.41 KB, created by
Jaco Kroon
on 2005-06-14 23:08:08 UTC
(
hide
)
Description:
quasar-1.4.6.ebuild
Filename:
MIME Type:
Creator:
Jaco Kroon
Created:
2005-06-14 23:08:08 UTC
Size:
6.41 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils > >DESCRIPTION="Quasar is a full function, stand-along business accountaing package" >HOMEPAGE="http://www.linuxcanada.com/quasar.shtml" >SRC_URI="ftp://ftp.linuxcanada.com/pub/Quasar/${PV}/source/${P}_GPL.tgz > doc? ( > ftp://ftp.linuxcanada.com/pub/Quasar/${PV}/manuals/quasar_install-${PV}.pdf > ftp://ftp.linuxcanada.com/pub/Quasar/${PV}/manuals/quasar_guide-${PV}.pdf > ftp://ftp.linuxcanada.com/pub/Quasar/${PV}/manuals/quasar_reference-${PV}.pdf > ftp://ftp.linuxcanada.com/pub/Quasar/${PV}/manuals/quasar_features-${PV}.pdf > )" >LICENSE="GPL-1" >SLOT="0" >KEYWORDS="~x86 ~amd64" > >IUSE="postgres firebird doc" >DEPEND=">=dev-lang/tcl-8.3 > >=dev-lang/tk-8.3 > >=x11-libs/qt-3.0 > >=dev-libs/icu-3.2" >RDEPEND="${DEPEND} > postgres? ( >=dev-db/postgresql-7.4 ) > firebird? ( dev-db/firebird )" > ># Where should stuff go? The install script has more of these, but we don't ># really care as the Gentoo ebuild system provide us with more advanced ways ># of handling these. >CONFIG_DIR=/etc/${PN} >PROGRAM_DIR=/usr/bin >SERVER_DIR=/usr/sbin >SHARE_DIR=/usr/share/${PN} >VARLIB_DIR=/var/lib/${PN} >LOCALE_DIR="${SHARE_DIR}/locales" >SETUP_DIR="${SHARE_DIR}/setup" >DATA_DIR="${VARLIB_DIR}/data" >IMPORT_DIR="${VARLIB_DIR}/import" >DB_DIR="${VARLIB_DIR}/databases" >BACKUP_DIR="/var/backups/${PN}" # I don't like this one! >DRIVER_DIR="/usr/lib/${PN}" > ># Source directory; the dir where the sources can be found (automatically ># unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P}, ># unfortunately quasar appends _GPL to this (There is also a retail version). >S="${WORKDIR}/${P}_GPL" > >src_compile() { > # Check that at least one of the DBs is in USE > use postgres || use firebird || die "You must have at least one of postgres or firebird in your USE flags" > > epatch "${FILESDIR}/quasar.fpic.patch" > #epatch "${FILESDIR}/quasar.printing.patch" > > einfo "Disabling the xinetd record by default" > sed -i -e 's/disable = no/disable = yes/' setup/quasar.xinetd > > econf || die "econf failed" > emake || die "emake failed" >} > >function data_install() { > dodir "${DATA_DIR}/${1}" > insinto "${DATA_DIR}/${1}" > doins "data/${1}/"${2} >} > >function dolocale() { > insinto "${LOCALE_DIR}/${1}" > doins "locales/${1}/messages.qm" > doins "locales/${1}/messages.ts" > insinto "${LOCALE_DIR}/${1}/help" > doins "locales/${1}/help/"*.html > insinto "${LOCALE_DIR}/${1}/help/images" > doins "locales/${1}/help/images/"*.png >} > >src_install() { > # Run the install script, we'll clean up after it > # when it is done. > #make PREFIX=${D} install || die > > # Ok, the install script is going to take some work to fix... > # for now I'm much rather going to clone the entire script into > # the ebuild and make it work the way I want. The scripts wants > # add users etc... unless those things become optional we are going > # to have our days... > > dodir /usr > dosbin bin/quasar_setup > dosbin bin/quasard > dosbin bin/quasar_clientd > dosbin bin/quasar_import > dobin bin/quasar > dobin bin/quasar_report > > dodir "${SHARE_DIR}" > dodir "${VARLIB_DIR}" > > dolocale en_CA > > # These files are to be used by the server, running as quasar:quasar, > # The ownership of these files will be modified to root:quasar _post_install_ > diropts -m 0750 > insopts -m 0640 > data_install "cheque_fmts" "*.xml" > data_install "handheld" "handheld.hex" > data_install "models" "*.xml" > data_install "reports" "*.xml" > data_install "screens" "*.xml" > data_install "shelf_labels" "*.xml" > > keepdir "${DATA_DIR}/companies" > keepdir "${BACKUP_DIR}" > > insinto "${IMPORT_DIR}" > doins "import/"*.xml > > # Need a better way of handling these, perhaps a wildcard? > dodoc "Readme.txt" > dodoc "Release_143.txt" > dodoc "Release_144.txt" > dodoc "Release_145.txt" > dodoc "Release_146.txt" > > # Default config files. These are generated in the install script. > # The optional postgres and firebird drivers are also installed here. > dodir $CONFIG_DIR > cat > "${D}${CONFIG_DIR}/client.cfg" <<EOCONFIG ><?xml version="1.0" encoding="UTF-8"?> ><!DOCTYPE ClientConfig> ><ClientConfig> > <localeDir>$LOCALE_DIR</localeDir> > <stationNumber>1</stationNumber> ></ClientConfig> >EOCONFIG > chmod 644 "${D}${CONFIG_DIR}/client.cfg" > > cat > "${D}${CONFIG_DIR}/server.cfg" <<EOCONFIG ><?xml version="1.0" encoding="UTF-8"?> ><!DOCTYPE ServerConfig> ><ServerConfig> > <port>0</port> > <systemId>0</systemId> > <dataDir>$DATA_DIR</dataDir> > <driverDir>$DRIVER_DIR</driverDir> > <backupDir>$BACKUP_DIR</backupDir> > <importDir>$IMPORT_DIR</importDir> > <adminPassword>admin</adminPassword> ></ServerConfig> >EOCONFIG > chmod 640 "${D}${CONFIG_DIR}/server.cfg" > > insinto "${DRIVER_DIR}" > insopts -m 755 > > if use postgres; then > doins drivers/libpostgresql_driver.so > cat > "${D}${CONFIG_DIR}/postgresql.cfg" <<EOCONFIG ><?xml version="1.0" encoding="UTF-8"?> ><!DOCTYPE PostgresqlConfig> ><PostgresqlConfig> > <hostname>localhost</hostname> > <port>5432</port> > <library></library> > <dbaUsername>quasar_dba</dbaUsername> > <dbaPassword></dbaPassword> > <username>quasar</username> > <password></password> > <charSet>UNICODE</charSet> ></PostgresqlConfig> >EOCONFIG > chmod 640 "${D}${CONFIG_DIR}/postgresql.cfg" > fi > > if use firebird; then > doins drivers/libfirebird_driver.so > cat > "${D}${CONFIG_DIR}/firebird.cfg" <<EOCONFIG ><?xml version="1.0" encoding="UTF-8"?> ><!DOCTYPE FirebirdConfig> ><FirebirdConfig> > <hostname>localhost</hostname> > <port>3050</port> > <library></library> > <installDir>/usr</installDir> > <dbaPassword></dbaPassword> > <username></username> > <password></password> > <databaseDir>$DB_DIR</databaseDir> > <blockSize>4096</blockSize> > <charSet>ISO8859_1</charSet> ></FirebirdConfig> >EOCONFIG > chmod 640 "${D}${CONFIG_DIR}/firebird.cfg" > fi > > # Where logs are kept. > diropts -m0700 -o quasar > keepdir /var/log/quasar > > doinitd ${FILESDIR}/quasar > > if use doc; then > dodoc "${DISTDIR}/quasar_install-${PV}.pdf" > dodoc "${DISTDIR}/quasar_guide-${PV}.pdf" > dodoc "${DISTDIR}/quasar_reference-${PV}.pdf" > dodoc "${DISTDIR}/quasar_features-${PV}.pdf" > fi > > if use firebird; then > ewarn > ewarn "The author of this ebuild was unable to check that the default" > ewarn "config file for firebird is a working one - please confirm." > ewarn > fi >} > >pkg_postinst() { > enewgroup quasar || die "Error adding quasar group" > enewuser quasar -1 /bin/false /dev/null quasar || die "Error adding quasar user" > > einfo "Fixing ownership of files" > chown -R root:quasar "${CONFIG_DIR}" > chown -R root:quasar "${DATA_DIR}" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 83679
:
52381
|
52382
|
52383
|
54364
|
54367
|
54368
|
55139
|
55205
|
55207
|
55314
|
55315
|
55588
|
55589
|
55591
|
55979
|
55980
|
55992
|
56031
|
56703
|
56704
|
56705
|
56960
|
58668
|
58678
|
61247
|
61248
|
61249
|
61513
|
61514
|
61515
|
63293
|
63294
|
63295
|
63464
|
78845
|
78846
|
112487
|
112491
|
112533
|
112534
|
112536
|
112537
|
112538
|
112540
|
112542
|
112543
|
112547
|
114498