summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEntrouvert <admin@entrouvert.com>2014-05-12 13:46:34 (GMT)
committerEntrouvert <admin@entrouvert.com>2014-05-12 13:47:59 (GMT)
commit8913349d6464b9a14d72f7888d5a0878a63b944e (patch)
treef1a8fb80172e2354b457041f013eab403b329583
parentb04937174280587ceb39c598125f468cf0d88911 (diff)
downloadpam-django-8913349d6464b9a14d72f7888d5a0878a63b944e.zip
pam-django-8913349d6464b9a14d72f7888d5a0878a63b944e.tar.gz
pam-django-8913349d6464b9a14d72f7888d5a0878a63b944e.tar.bz2
add MakefileHEADmaster
- do make install to install - do make generate to regenerate proftpd configuration
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ff1fb77
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+all:
+ true
+
+TARGET=/usr/local/lib/pam-django
+
+install:
+ @echo Installing into /usr/local/lib/pam-django/ ..
+ install -o root -T pam.conf /etc/pam.d/proftpd
+ install -o root -d /usr/local/lib/pam-django/
+ install -o root check-password settings.py $(TARGET)
+ . /etc/authentic2/db.conf; sed -i "s/{PASSWORD}/$$DATABASE_PASSWORD/" $(TARGET)/settings.py
+ @echo Please edit /usr/local/lib/pam-django/settings.py to set the authentic2 database password
+ @make generate
+
+generate:
+ @echo Generating proftpd configuration...
+ @. /etc/docbow/db;. /etc/docbow/secret; sudo -E -u docbow python generate-ftp-passwd.py /etc/proftpd/ftpd.passwd /etc/proftpd/ftpd.group /etc/proftpd/conf.d/docbow.conf && /etc/init.d/proftpd restart