64cf27c85d
little bit and allows to proceed to a more recent linux_base from a stable (read as: the major bugs should be ironed out or identified and most linux ports build just fine) source. It also allows to ship 4.11 with a working linuxolator (the EOLed linux_base is marked forbidden because of a security hole). This is a major update, please read UPDATING (and CHANGES if you develop linux ports). Changes: - change the default linux_base from v7 to v8 - add a newer freetype to linux_base-8 for nicer fonts display [1] - don't let cpio use hardlinks in the linux_base-8 port to quiet some warnings in some cases [2] - fix a cut&past error in the linux_base-8 pkg-install script [3] - convert the binary knob "USE_LINUX" to a version specifier, e.g. USE_LINUX=<value> specifies a dependency upon emulators/linux_base-<value>, exceptions are a value of "7" (which does what you want and adds a dependency to linux_base) and any value without a corresponding port in PORTSDIR/emulators/linux_base-<value> (which adds a dependency to the default linux_base) - don't implicitly add USE_LINUX with the USE_LINUX_PREFIX knob, this allows us to use the USE_LINUX_PREFIX knob for linux_base and paves the way for splitting up future linux base ports into individual pieces - remove RESTRICTED from some GPL licensed ports, even when we only distribute binaries, we get them from official linux sites, so anyone can grab them there if he needs to - add a dependency upon the linux X11 bits where necessary (based upon guesswork) - don't use USE_X_PREFIX in some linux ports since it adds a dependency to the FreeBSD X11 libs, as a workaround use PREFIX?= (the clean solution would be to remove the implicit USE_XLIB from USE_X_PREFIX) - bump the portrevision of the linux ports ("better safe than sorry" algorithm) - pass maintainership of the important linux infrastructure to a mailinglist, hijack freebsd-emulation@ for this purpose (if somebody doesn't like this: tell us your bikeshed color at freebsd-emulation@, my color would be "linuxolator@" in case someone cares...) - add a pkg-install script for linux-fontconfig, but don't use it; everything should work without it (the FreeBSD fc-cache program should do all the work), but in case we need it we just need to decomment the pkg-install part in the Makefile - fix some dependencies - fix some bugs - add some static plists - unbreak the ports with dependecies to more than one linux_base This also fixes some ports which are marked BROKEN because of dependencies to v7 and v8 of linux_base at the same time. Known bugs: - the linux-mesa and linux-devtools ports install libGL*.so symlinks - some "minor" plist bugs (e.g. ld.so.{conf,cache} are modified by the linux X11 port, so linx_Base-8 moans at deinstall time) Future work (interested souls should coordinate with freebsd-emulation@): - add some kind of USE_LINUX_X11 knob to streamline the X11 dependencies, or modify the behavior of USE_XLIB in the USE_LINUX case AFAIK trevor has some patches. - make USE_XLIB and USE_X_PREFIX orthogonal to be able to get rid of the PREFIX?= workaround in some linux ports Should be discussed/coordinated on/with x11@. - move the RPM bits from x11-toolkits/linux-gtk/Makefile to PORTSDIR/Mk/ - update to a more recent linux base PR: 69997, 70539 (and maybe others) Discussed with/on: java@, x11@, trevor, portmgr Tested by: mezz, portmgr, pointyhat RPM hunted down by: Joseph Gelinas <scirocco@tasam.com> [1] Requested by: portmgr [2] Submitted by: kris [3] Approved by: portmgr
227 lines
9 KiB
Makefile
227 lines
9 KiB
Makefile
# New ports collection makefile for: linux-opengroupware.org
|
|
# Date created: 2003-07-20
|
|
# Whom: Frank Reppin
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= opengroupware
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= misc www linux
|
|
MASTER_SITES= http://download.opengroupware.org/packages/freebsd/linux-opengroupware/RPMS/:ogo \
|
|
http://download.opengroupware.org/packages/freebsd/linux-opengroupware/NGOBJWEB/:ngo \
|
|
${MASTER_SITE_REDHAT_LINUX}
|
|
MASTER_SITE_SUBDIR= updates/8.0/en/os/${MACHINE_ARCH}
|
|
PKGNAMEPREFIX= linux-
|
|
DISTFILES= ${SET1} \
|
|
${SET2} \
|
|
${SET3}
|
|
EXTRACT_ONLY= ${NGOBJWEB_ADAPTOR}
|
|
|
|
MAINTAINER= frank@opengroupware.org
|
|
COMMENT= Groupware package including mail, calendar, palm sync and much more
|
|
|
|
EXTRACT_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm
|
|
INSTALL_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2 \
|
|
${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql7 \
|
|
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash2 \
|
|
${LOCALBASE}/bin/gmake:${PORTSDIR}/devel/gmake
|
|
|
|
#BEGINSET1
|
|
|
|
SET1= opengroupware-core-4.2-ogo107.i386.rpm:ogo \
|
|
opengroupware-core-tools-4.2-ogo107.i386.rpm:ogo \
|
|
opengroupware-database-1.0-ogo022.i386.rpm:ogo \
|
|
opengroupware-docapi-1.0-ogo101.i386.rpm:ogo \
|
|
opengroupware-env-1.0-ogo016.i386.rpm:ogo \
|
|
opengroupware-epoz-0.6.1-ogo003.i386.rpm:ogo \
|
|
opengroupware-gstep-db-4.2-ogo042.i386.rpm:ogo \
|
|
opengroupware-gstep-db-postgresql72-4.2-ogo042.i386.rpm:ogo \
|
|
opengroupware-gstep-make-4.2-ogo009.i386.rpm:ogo \
|
|
opengroupware-gstep-objc-2.95.3-ogo011.i386.rpm:ogo \
|
|
opengroupware-js-1.5-ogo013.i386.rpm:ogo \
|
|
opengroupware-libfoundation-1.0.25-ogo049.i386.rpm:ogo \
|
|
opengroupware-libical-0.23.0-ogo010.i386.rpm:ogo \
|
|
opengroupware-libxml2-2.6.11-ogo002.i386.rpm:ogo \
|
|
opengroupware-libxslt-1.1.8-ogo002.i386.rpm:ogo \
|
|
opengroupware-logic-1.0-ogo112.i386.rpm:ogo \
|
|
opengroupware-nhsc-1.0-ogo001.i386.rpm:ogo \
|
|
opengroupware-pda-1.0-ogo033.i386.rpm:ogo \
|
|
opengroupware-pilot-link-0.10.99-ogo008.i386.rpm:ogo \
|
|
opengroupware-plr-1.0-ogo008.i386.rpm:ogo \
|
|
opengroupware-publisher-1.0-ogo020.i386.rpm:ogo \
|
|
opengroupware-sope-4.2-ogo163.i386.rpm:ogo \
|
|
opengroupware-theme-blue-de-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-blue-en-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-default-de-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-default-dk-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-default-en-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-default-es-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-default-it-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-kde-en-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-ooo-de-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-ooo-en-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-orange-de-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-theme-orange-en-1.0-ogo039.i386.rpm:ogo \
|
|
opengroupware-tools-account-1.0-ogo031.i386.rpm:ogo \
|
|
opengroupware-tools-aptnotify-1.0-ogo031.i386.rpm:ogo \
|
|
opengroupware-tools-bulkmessages-1.0-ogo031.i386.rpm:ogo \
|
|
opengroupware-tools-installsieve-1.0-ogo031.i386.rpm:ogo \
|
|
opengroupware-webui-admin-1.0-ogo032.i386.rpm:ogo \
|
|
opengroupware-webui-app-1.0-ogo054.i386.rpm:ogo \
|
|
opengroupware-webui-common-1.0-ogo087.i386.rpm:ogo \
|
|
opengroupware-webui-contact-1.0-ogo072.i386.rpm:ogo \
|
|
opengroupware-webui-forms-1.0-ogo016.i386.rpm:ogo \
|
|
opengroupware-webui-job-1.0-ogo037.i386.rpm:ogo \
|
|
opengroupware-webui-libs-1.0-ogo059.i386.rpm:ogo \
|
|
opengroupware-webui-mailer-1.0-ogo077.i386.rpm:ogo \
|
|
opengroupware-webui-news-1.0-ogo018.i386.rpm:ogo \
|
|
opengroupware-webui-prefs-1.0-ogo038.i386.rpm:ogo \
|
|
opengroupware-webui-project-1.0-ogo077.i386.rpm:ogo \
|
|
opengroupware-webui-resource-de-1.0-ogo132.i386.rpm:ogo \
|
|
opengroupware-webui-resource-dk-1.0-ogo132.i386.rpm:ogo \
|
|
opengroupware-webui-resource-en-1.0-ogo132.i386.rpm:ogo \
|
|
opengroupware-webui-resource-es-1.0-ogo132.i386.rpm:ogo \
|
|
opengroupware-webui-resource-fr-1.0-ogo132.i386.rpm:ogo \
|
|
opengroupware-webui-resource-it-1.0-ogo132.i386.rpm:ogo \
|
|
opengroupware-webui-resource-nl-1.0-ogo132.i386.rpm:ogo \
|
|
opengroupware-webui-resource-pt_BR-1.0-ogo132.i386.rpm:ogo \
|
|
opengroupware-webui-scheduler-1.0-ogo080.i386.rpm:ogo \
|
|
opengroupware-xml-4.2-ogo066.i386.rpm:ogo \
|
|
opengroupware-xml-STXSaxDriver-4.2-ogo066.i386.rpm:ogo \
|
|
opengroupware-xml-icalsaxdriver-4.2-ogo066.i386.rpm:ogo \
|
|
opengroupware-xml-libxmlsaxdriver-4.2-ogo066.i386.rpm:ogo \
|
|
opengroupware-xmlrpcd-1.0-ogo049.i386.rpm:ogo \
|
|
opengroupware-zidestore-1.2-ogo082.i386.rpm:ogo
|
|
#ENDSET1
|
|
|
|
SET2= ${NGOBJWEB_ADAPTOR}:ngo
|
|
SET3= postgresql-libs-7.2.4-5.80.i386.rpm \
|
|
openssl-0.9.6b-35.8.i386.rpm \
|
|
cyrus-sasl-2.1.10-1.i386.rpm \
|
|
openldap-2.0.27-2.8.0.i386.rpm \
|
|
pam-0.75-46.8.0.i386.rpm \
|
|
krb5-libs-1.2.5-15.i386.rpm
|
|
|
|
NGOBJWEB_ADAPTOR= opengroupware.org-mod_ngobjweb-200407092000.tar.gz
|
|
PATCHDIR?= ${MASTERDIR}/files
|
|
USE_LINUX= yes
|
|
USE_GMAKE= yes
|
|
MAKEFILE= ${WRKSRC}/opengroupware.org-mod_ngobjweb/GNUmakefile
|
|
BUILD_WRKSRC?= ${WRKSRC}/opengroupware.org-mod_ngobjweb
|
|
NGWEB_ADAP_DIR= opengroupware.org-mod_ngobjweb
|
|
PKGNAME_PREFIX= linux-
|
|
|
|
#CONFLICTS= ${PORTSDIR}/www/apache2 \
|
|
# ${PORTSDIR}/databases/postgresql7
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
NO_PACKAGE= We dont really build anything ...
|
|
DIST_SUBDIR= ogo
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
|
|
PREFIX= ${LINUXBASE}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
RPM2CPIO?= ${LOCALBASE}/bin/rpm2cpio
|
|
CPIOFLAGS= --extract --make-directories --no-absolute-filenames \
|
|
--preserve-modification-time --quiet
|
|
RPMDIR= ${DISTDIR}/${DIST_SUBDIR}
|
|
|
|
REMOVEFILES= .md5sum .md5sum.changes \
|
|
${NGOBJWEB_ADAPTOR} \
|
|
etc/rc.d/init.d/saslauthd \
|
|
usr/sbin/dbconverter-2 \
|
|
usr/sbin/saslauthd \
|
|
usr/sbin/sasldblistusers \
|
|
usr/sbin/sasldblistusers2 \
|
|
usr/sbin/saslpasswd \
|
|
usr/sbin/saslpasswd2 \
|
|
sbin/pam_console_apply \
|
|
sbin/pam_tally \
|
|
sbin/pam_timestamp_check \
|
|
sbin/pwdb_chkpwd \
|
|
sbin/unix_chkpwd \
|
|
etc/krb5.conf \
|
|
etc/rc.d/init.d/kdcrotate \
|
|
usr/bin/openssl
|
|
|
|
REMOVEDIRS= ${NGWEB_ADAP_DIR} \
|
|
etc/openldap \
|
|
usr/share/openldap \
|
|
usr/kerberos/share
|
|
|
|
do-extract:
|
|
@${RM} -rf ${WRKDIR}
|
|
@${MKDIR} ${WRKSRC}
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${EXTRACT_ONLY} ${WRKSRC}
|
|
@(cd ${WRKSRC} && ${TAR} xfz ${EXTRACT_ONLY})
|
|
|
|
@for myfile in ${SET1} ${SET3}; do \
|
|
ourfile=`${ECHO} $$myfile |${SED} -e 's/:ogo//'`; \
|
|
${ECHO} "Extracting for: $$ourfile"; \
|
|
(cd ${WRKSRC} && ${RPM2CPIO} ${RPMDIR}/$$ourfile | ${CPIO} ${CPIOFLAGS}); \
|
|
done
|
|
|
|
post-build:
|
|
${INSTALL} ${COPY} -m 644 ${WRKSRC}/${NGWEB_ADAP_DIR}/ngobjweb*.so ${WRKSRC}/opt/opengroupware.org
|
|
|
|
@for delfile in ${REMOVEFILES}; do \
|
|
${ECHO} "Removing unecessary file in ${WRKSRC}: $$delfile"; \
|
|
${RM} -f ${WRKSRC}/$$delfile; \
|
|
done
|
|
|
|
@for deldir in ${REMOVEDIRS}; do \
|
|
${ECHO} "Removing unecessary dir in ${WRKSRC}: $$deldir"; \
|
|
${RM} -rf ${WRKSRC}/$$deldir; \
|
|
done
|
|
|
|
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
|
|
@if [ `id -u` = 0 ]; then \
|
|
${CHMOD} -R ug-s ${WRKDIR}; \
|
|
${CHOWN} -R 0:0 ${WRKDIR}; \
|
|
fi
|
|
.endif
|
|
|
|
pre-install:
|
|
${RM} -f ${PLIST}
|
|
cd ${WRKSRC} && ${FIND} -s . -type f -o -type l | \
|
|
${CUT} -c3-999 >> ${PLIST} \
|
|
&& ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' >> ${PLIST}
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${FIND} * | ${CPIO} -dlmp ${PREFIX}
|
|
${FIND} ${PREFIX} -type d \! -ipath '${LINUXBASE}/proc*' -exec ${CHMOD} 755 \{\} \;
|
|
|
|
post-install:
|
|
@${MKDIR} ${LINUXBASE}/opt/opengroupware.org/documents
|
|
@${CHMOD} 750 ${LINUXBASE}/opt/opengroupware.org/documents
|
|
@${MKDIR} ${LINUXBASE}/opt/opengroupware.org/news
|
|
@${CHMOD} 750 ${LINUXBASE}/opt/opengroupware.org/news
|
|
@${ECHO} '/opt/skyrix/system/Libraries/ix86/linux-gnu/gnu-fd-nil' >>${LINUXBASE}/etc/ld.so.conf
|
|
@${ECHO} '/opt/opengroupware.org/Libraries/ix86/linux-gnu/gnu-fd-nil' >>${LINUXBASE}/etc/ld.so.conf
|
|
@${ECHO} '/usr/kerberos/lib' >>${LINUXBASE}/etc/ld.so.conf
|
|
@${LN} -sf ${LINUXBASE}/usr/lib/libpq.so.2 ${LINUXBASE}/usr/lib/libpq.so.3
|
|
@${PREFIX}/sbin/ldconfig
|
|
@${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
|
|
@${CHOWN} -Rh ogo:skyrix ${LINUXBASE}/opt/skyrix
|
|
@${CHOWN} -Rh ogo:skyrix ${LINUXBASE}/opt/opengroupware.org
|
|
@${INSTALL} -d -m 770 -o ogo -g skyrix /var/log/opengroupware
|
|
@${CHOWN} -Rh ogo:skyrix /var/log/opengroupware
|
|
@${INSTALL} -m 640 -o ogo -g skyrix ${FILESDIR}/OpenGroupware.org.sh.tmpl ${LINUXBASE}/opt/opengroupware.org/OpenGroupware.org.sh
|
|
@${SH} ${PKGDIR}/pkg-install ${PKGNAME} WRITE-DEFAULTS-FIRSTTIME
|
|
@${SH} ${PKGDIR}/pkg-install ${PKGNAME} COPY-TEMPLATES
|
|
@${CHOWN} -Rh ogo:skyrix ${LINUXBASE}/opt/opengroupware.org/.libFoundation
|
|
@${INSTALL} -m 500 -o root -g wheel ${FILESDIR}/ogo.sh.sample ${LOCALBASE}/etc/rc.d/ogo.sh.sample
|
|
@${INSTALL} -m 500 -o root -g wheel ${FILESDIR}/zidestore.sh.sample ${LOCALBASE}/etc/rc.d/zidestore.sh.sample
|
|
@${INSTALL} -m 500 -o root -g wheel ${FILESDIR}/xmlrpcd.sh.sample ${LOCALBASE}/etc/rc.d/xmlrpcd.sh.sample
|
|
@${INSTALL} -m 500 -o root -g wheel ${FILESDIR}/nhsd.sh.sample ${LOCALBASE}/etc/rc.d/nhsd.sh.sample
|
|
@${PERL} ${SCRIPTDIR}/patch_apache_version.pl
|
|
@${CHOWN} -Rh ogo:skyrix ${LINUXBASE}/opt/opengroupware.org/OpenGroupware.org.apacheinclude
|
|
@${INSTALL} -m 444 -o ogo -g skyrix ${FILESDIR}/INSTALL.fbsd ${LINUXBASE}/opt/opengroupware.org/INSTALL.fbsd
|
|
@${ECHO} ''
|
|
@fmt ${PKGMESSAGE}
|
|
@${ECHO} ''
|
|
|
|
.include <bsd.port.post.mk>
|