Projects
home:pandora:RobinOS23
openldap
_service:download_src_package:check-password-ma...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:check-password-makefile.patch of Package openldap
diff --git a/Makefile b/Makefile index 4457bad..91de40b 100644 --- a/Makefile +++ b/Makefile @@ -13,17 +13,10 @@ CRACKLIB=/usr/share/cracklib/pw_dict # CONFIG=/etc/openldap/check_password.conf - -# Where to find the OpenLDAP headers. -# -LDAP_INC=-I/usr/include/openldap/include \ - -I/usr/include/openldap/servers/slapd - -# Where to find the CrackLib headers. -# -CRACK_INC= - -INCS=$(LDAP_INC) $(CRACK_INC) +CFLAGS+=-fpic \ + -DHAVE_CRACKLIB -DCRACKLIB_DICTPATH="\"$(CRACKLIB)\"" \ + -DCONFIG_FILE="\"$(CONFIG)\"" \ + -DDEBUG LDAP_LIB=-lldap_r -llber @@ -33,27 +26,21 @@ LDAP_LIB=-lldap_r -llber # CRACKLIB_LIB=-lcrack -CC_FLAGS=-g -O2 -Wall -fpic -CRACKLIB_OPT=-DHAVE_CRACKLIB -DCRACKLIB_DICTPATH="\"$(CRACKLIB)\"" -DEBUG_OPT=-DDEBUG -CONFIG_OPT=-DCONFIG_FILE="\"$(CONFIG)\"" - -OPT=$(CC_FLAGS) $(CRACKLIB_OPT) $(CONFIG_OPT) $(DEBUG_OPT) - LIBS=$(LDAP_LIB) $(CRACKLIB_LIB) LIBDIR=/usr/lib/openldap/ + all: check_password check_password.o: - $(CC) $(OPT) -c $(INCS) check_password.c + $(CC) $(CFLAGS) -c $(LDAP_INC) check_password.c check_password: clean check_password.o - $(CC) -shared -o check_password.so check_password.o $(CRACKLIB_LIB) + $(CC) $(LDFLAGS) -shared -o check_password.so check_password.o $(CRACKLIB_LIB) install: check_password - cp -f check_password.so $(LIBDIR) + cp -f check_password.so ../../../usr/lib/openldap/modules/ clean: $(RM) check_password.o check_password.so check_password.lo
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2