Agni Purāṇa

100 - Rites of consecration of doors of a temple

The Lord said: 

1. Then Ishall describe the mode of consecrating the doors (of a temple). After having washed the door frames with decoctions of herbs, theyshould be laid on the bed. 

2-3. The three fundamental principles—the soul etc. together with their lordsshould be located in the lower, middle and upper parts. After having offered oblations, and repeated the rūpa mantras, the vastu (the presiding spirit of the place)should be worshipped there itself with the mantra of Ananta (an important serpent chief). After having placed the five things gem etc., the rite of appeasementshould be done. 

4-5. Barley, white mustard, kranta, siddhi, vruddhi, mahatila, gomrut, mustard, rajendra, mohani, lakṣmana, amruta, rochana, rug, vacha, durvå and patalishould be placed on the threshold under the temple in their natural form for the sake of protection after the recitation of (the syllable) om. 

6. The northern doorshould be consecrated after sprinkling water. The fundamental principle of the soulshould be located under that and the principle of knowledge on the sides. 

7. The principle of bliss (should be located) in the region of the sky as permeating the entire region. Then (lord) Maheśhanatha (Shivá)should be installed with the recitation of) the principal mantra. 

8. The turrets etc. resting on the door (should be located) with their respective names appended. Oblation to fireshould be made hundred times or half the number of times or twice that or according to one's ability. 

9. One hundred oblationsshould be made with the mantra of the weapons to ward off defects of omission etc. After having offered oblations for the quarters, the fees etc.should be paid.