2016-10-19 16:50:26 +02:00
|
|
|
# Created by: Piotr Kubaj <pkubaj@anongoth.pl>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openldap
|
2017-10-26 21:23:18 +02:00
|
|
|
PORTVERSION= 2.4.44
|
2016-10-19 16:50:26 +02:00
|
|
|
CATEGORIES= net linux
|
|
|
|
|
|
|
|
MAINTAINER= emulation@FreeBSD.org
|
|
|
|
COMMENT= LDAP libraries (Linux CentOS ${LINUX_DIST_VER})
|
|
|
|
|
2017-01-19 16:44:53 +01:00
|
|
|
CONFLICTS= linux-c6-${PORTNAME}-[0-9]*
|
2016-10-19 16:50:26 +02:00
|
|
|
|
- Autodetect the installed linux_base port and use LINUX_DEFAULT only as
a last resort.
- Construct a list of DISTFILES for every architecture (amd64, i386).
Select one list for regular make and all lists for make makesum so linux
ports can have one combined distinfo file.
- Set DIST_SUBDIR?=centos so there's only one copy of common distfiles.
- Use MASTER_SITES and DISTFILES groups so make fetch is a bit smarter.
- Regenerate all distinfo files.
- For linux_base-c6 (just like linux_base-c7 already does) turn bin, lib,
lib64 and sbin into symbolic links to the same directory under usr.
This fixes the problem where some programs/libraries exist under / on
FreeBSD and /usr on Linux or vice versa and then depending on the order
of search paths Linux programs may run/load FreeBSD programs/libraries
and fail.
- Turn usr/share/icons into a symbolic link to LOCALBASE/share/icons so
Linux programs can find desktop theme icons. This eliminates the need
for x11-themes/linux*-hicolor-icon-theme.
- Rename pkg-plist.x86_64 to pkg-plist.amd64.
- Regenerate all pkg-plist files.
- Add @preexec to linux_base pkg-plist that moves existing files in bin,
lib, lib64, sbin and icons to the new destination before the directories
are turned into symbolic links.
- Remove several empty directories from linux_base ports.
- Sweep over all linux ports: use consistent style, remove old CONFLICTS,
remove unused pkg-descr files, add NLS option,...
- Remove old linux arts, esound and openssl-compat ports.
2017-01-31 17:54:21 +01:00
|
|
|
DESCR= ${.CURDIR}/../${PORTNAME}24-server/pkg-descr
|
2017-10-26 21:23:18 +02:00
|
|
|
RPMVERSION= 5.el7
|
2016-10-19 16:50:26 +02:00
|
|
|
USES= linux:c7
|
|
|
|
USE_LDCONFIG= yes
|
2016-11-03 15:52:21 +01:00
|
|
|
USE_LINUX= cyrus-sasl2 nspr nss
|
2016-10-19 16:50:26 +02:00
|
|
|
USE_LINUX_RPM= yes
|
|
|
|
|
|
|
|
# do not install any openldap configuration directories/files
|
|
|
|
post-patch:
|
- Autodetect the installed linux_base port and use LINUX_DEFAULT only as
a last resort.
- Construct a list of DISTFILES for every architecture (amd64, i386).
Select one list for regular make and all lists for make makesum so linux
ports can have one combined distinfo file.
- Set DIST_SUBDIR?=centos so there's only one copy of common distfiles.
- Use MASTER_SITES and DISTFILES groups so make fetch is a bit smarter.
- Regenerate all distinfo files.
- For linux_base-c6 (just like linux_base-c7 already does) turn bin, lib,
lib64 and sbin into symbolic links to the same directory under usr.
This fixes the problem where some programs/libraries exist under / on
FreeBSD and /usr on Linux or vice versa and then depending on the order
of search paths Linux programs may run/load FreeBSD programs/libraries
and fail.
- Turn usr/share/icons into a symbolic link to LOCALBASE/share/icons so
Linux programs can find desktop theme icons. This eliminates the need
for x11-themes/linux*-hicolor-icon-theme.
- Rename pkg-plist.x86_64 to pkg-plist.amd64.
- Regenerate all pkg-plist files.
- Add @preexec to linux_base pkg-plist that moves existing files in bin,
lib, lib64, sbin and icons to the new destination before the directories
are turned into symbolic links.
- Remove several empty directories from linux_base ports.
- Sweep over all linux ports: use consistent style, remove old CONFLICTS,
remove unused pkg-descr files, add NLS option,...
- Remove old linux arts, esound and openssl-compat ports.
2017-01-31 17:54:21 +01:00
|
|
|
@${RM} -r ${WRKSRC}/etc
|
2016-10-19 16:50:26 +02:00
|
|
|
|
|
|
|
# use a native openldap configuration directories/files
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc
|
|
|
|
${LN} -sf ${LOCALBASE}/etc/openldap ${STAGEDIR}${PREFIX}/etc/openldap
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|