Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0525ddc3
Commit
0525ddc3
authored
Aug 23, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring chkpass build process into sync with other contrib modules;
make it use Makefile.shlib, etc.
parent
119fd795
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
28 deletions
+31
-28
contrib/chkpass/Makefile
contrib/chkpass/Makefile
+24
-19
contrib/chkpass/chkpass.sql.in
contrib/chkpass/chkpass.sql.in
+7
-9
No files found.
contrib/chkpass/Makefile
View file @
0525ddc3
#
# $Header: /cvsroot/pgsql/contrib/chkpass/Makefile,v 1.
1 2001/05/03 12:32:13 darcy
Exp $
# $Header: /cvsroot/pgsql/contrib/chkpass/Makefile,v 1.
2 2001/08/23 16:50:33 tgl
Exp $
#
subdir
=
contrib/chkpass
top_builddir
=
../..
include
$(top_builddir)/src/Makefile.global
NAME
:=
chkpass
SONAME
:=
$(NAME)$(DLSUFFIX)
# override libdir to install shlib in contrib not main directory
libdir
:=
$(libdir)
/contrib
SQLS
=
$(NAME)
.sql
MODS
=
$(NAME)$(DLSUFFIX)
# shared library parameters
NAME
=
chkpass
SO_MAJOR_VERSION
=
1
SO_MINOR_VERSION
=
0
override CPPFLAGS
:
= -I$(srcdir) $(CPPFLAGS)
override
CFLAGS
+=
$(CFLAGS_SL)
ifdef
REFINT_VERBOSE
override
CPPFLAGS
+=
-DREFINT_VERBOSE
endif
all
:
$(SONAME) $(NAME).sql
OBJS
=
chkpass.o
all
:
all-lib $(NAME).sql
# Shared library stuff
include
$(top_srcdir)/src/Makefile.shlib
$(NAME).sql
:
$(NAME).sql.in
sed
-e
's:MODULE_PATHNAME:
$(libdir)
/
contrib/
$(SONAME
)
:g'
<
$<
>
$@
sed
-e
's:MODULE_PATHNAME:
$(libdir)
/
$(shlib
)
:g'
<
$<
>
$@
install
:
all installdirs
$(INSTALL_SHLIB)
$(SONAME)
$(libdir)
/contrib
$(INSTALL_DATA)
README.
$(NAME)
$(docdir)
/contrib
sed
"s+%%PGDIR%%+
$(libdir)
+g"
< chkpass.sql
>
$(datadir)
/contrib
install
:
all installdirs install-lib
$(INSTALL_DATA)
$(srcdir)
/README.
$(NAME)
$(docdir)
/contrib
$(INSTALL_DATA)
$(NAME)
.sql
$(datadir)
/contrib
installdirs
:
$(mkinstalldirs)
$(
libdir)
/contrib
$(docdir)
/contrib
$(datadir)
/contrib
$(mkinstalldirs)
$(
docdir)
/contrib
$(datadir)
/contrib
$(libdir)
uninstall
:
rm
-f
$(libdir)
/contrib/
$(SONAME)
$(docdir)
/contrib/README.
$(NAME)
\
$(
addprefix
$(datadir)
/contrib/,
$(NAME)
.sql
)
uninstall
:
uninstall-lib
rm
-f
$(docdir)
/contrib/README.
$(NAME)
$(datadir)
/contrib/
$(NAME)
.sql
clean distclean maintainer-clean
:
rm
-f
$(
SONAME
)
$(NAME)
.sql
clean distclean maintainer-clean
:
clean-lib
rm
-f
$(
OBJS
)
$(NAME)
.sql
depend dep
:
$(CC)
-MM
-MG
$(CFLAGS)
*
.c
>
depend
$(CC)
-MM
-MG
$(CFLAGS)
*
.c
>
depend
ifeq
(depend,$(wildcard depend))
include
depend
...
...
contrib/chkpass/chkpass.sql
→
contrib/chkpass/chkpass.sql
.in
View file @
0525ddc3
...
...
@@ -4,25 +4,23 @@
-- darcy@druid.net
-- http://www.druid.net/darcy/
--
-- $Header: /cvsroot/pgsql/contrib/chkpass/Attic/chkpass.sql,v 1.2 2001/08/10 18:57:32 tgl Exp $
-- $Header: /cvsroot/pgsql/contrib/chkpass/chkpass.sql.in,v 1.1 2001/08/23 16:50:33 tgl Exp $
--
-- best viewed with tabs set to 4
-- %%PGDIR%% changed to your local directory where modules is
--
load
'%%PGDIR%%/modules/chkpass.so'
;
--
-- Input and output functions and the type itself:
--
create function chkpass_in(opaque)
returns opaque
as
'
%%PGDIR%%/modules/chkpass.so
'
as '
MODULE_PATHNAME
'
language 'c';
create function chkpass_out(opaque)
returns opaque
as
'
%%PGDIR%%/modules/chkpass.so
'
as '
MODULE_PATHNAME
'
language 'c';
create type chkpass (
...
...
@@ -34,7 +32,7 @@ create type chkpass (
create function raw(chkpass)
returns text
as
'
%%PGDIR%%/modules/chkpass.so
'
,
'chkpass_rout'
as '
MODULE_PATHNAME
', 'chkpass_rout'
language 'c';
--
...
...
@@ -43,12 +41,12 @@ create function raw(chkpass)
create function eq(chkpass, text)
returns bool
as
'
%%PGDIR%%/modules/chkpass.so
'
,
'chkpass_eq'
as '
MODULE_PATHNAME
', 'chkpass_eq'
language 'c';
create function ne(chkpass, text)
returns bool
as
'
%%PGDIR%%/modules/chkpass.so
'
,
'chkpass_ne'
as '
MODULE_PATHNAME
', 'chkpass_ne'
language 'c';
--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment